* Humpfff. A typo in my previous commit.
[vlc.git] / configure
blob98719bdfc35ddbd175220e6b5302a6fd9a4c60c4
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 --enable-ffmpeg ffmpeg codec (default disabled)"
65 ac_help="$ac_help
66 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
67 ac_help="$ac_help
68 --enable-a52 AC3 support with liba52 (default enabled)"
69 ac_help="$ac_help
70 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
71 ac_help="$ac_help
72 Video plugins:"
73 ac_help="$ac_help
74 --enable-x11 X11 support (default enabled)"
75 ac_help="$ac_help
76 --enable-xvideo XVideo support (default enabled)"
77 ac_help="$ac_help
78 --enable-sdl SDL support (default enabled)"
79 ac_help="$ac_help
80 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
81 ac_help="$ac_help
82 --enable-directx Win32 DirectX support (default enabled on Win32)"
83 ac_help="$ac_help
84 --with-directx=PATH Win32 DirectX headers and libraries"
85 ac_help="$ac_help
86 --enable-fb Linux framebuffer support (default enabled on Linux)"
87 ac_help="$ac_help
88 --enable-mga Linux kernel Matrox support (default disabled)"
89 ac_help="$ac_help
90 --enable-ggi GGI support (default disabled)"
91 ac_help="$ac_help
92 --with-ggi=PATH path to libggi"
93 ac_help="$ac_help
94 --enable-glide Glide (3dfx) support (default disabled)"
95 ac_help="$ac_help
96 --with-glide=PATH path to libglide"
97 ac_help="$ac_help
98 --enable-aa aalib output (default disabled)"
99 ac_help="$ac_help
100 Audio plugins:"
101 ac_help="$ac_help
102 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
103 ac_help="$ac_help
104 --enable-esd Esound library support (default disabled)"
105 ac_help="$ac_help
106 --enable-arts aRts sound server (default disabled)"
107 ac_help="$ac_help
108 --enable-alsa ALSA sound support for Linux (default disabled)"
109 ac_help="$ac_help
110 --enable-waveout Win32 waveOut module (default enabled on Win32)"
111 ac_help="$ac_help
112 Interface plugins:"
113 ac_help="$ac_help
114 --enable-gtk Gtk+ support (default enabled)"
115 ac_help="$ac_help
116 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
117 ac_help="$ac_help
118 --enable-gnome Gnome interface support (default disabled)"
119 ac_help="$ac_help
120 --enable-qt Qt interface support (default disabled)"
121 ac_help="$ac_help
122 --enable-kde KDE interface support (default disabled)"
123 ac_help="$ac_help
124 --enable-macosx MacOS X support (default enabled on MacOS X)"
125 ac_help="$ac_help
126 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
127 ac_help="$ac_help
128 --enable-intfwin Win32 interface support (default disabled)"
129 ac_help="$ac_help
130 --with-bcbuilder=PATH Borland C++ Builder installation path"
131 ac_help="$ac_help
132 --enable-ncurses ncurses interface support (default disabled)"
133 ac_help="$ac_help
134 --enable-lirc lirc support (default disabled)"
135 ac_help="$ac_help
136 Misc options:"
137 ac_help="$ac_help
138 --with-words=endianness set endianness (big or little)"
139 ac_help="$ac_help
140 --enable-gprof gprof profiling (default disabled)"
141 ac_help="$ac_help
142 --enable-cprof cprof profiling (default disabled)"
143 ac_help="$ac_help
144 --enable-pth GNU Pth support (default disabled)"
145 ac_help="$ac_help
146 --enable-st State Threads (default disabled)"
147 ac_help="$ac_help
148 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
150 # Initialize some variables set by options.
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
153 build=NONE
154 cache_file=./config.cache
155 exec_prefix=NONE
156 host=NONE
157 no_create=
158 nonopt=NONE
159 no_recursion=
160 prefix=NONE
161 program_prefix=NONE
162 program_suffix=NONE
163 program_transform_name=s,x,x,
164 silent=
165 site=
166 srcdir=
167 target=NONE
168 verbose=
169 x_includes=NONE
170 x_libraries=NONE
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Initialize some other variables.
185 subdirs=
186 MFLAGS= MAKEFLAGS=
187 SHELL=${CONFIG_SHELL-/bin/sh}
188 # Maximum number of lines to put in a shell here document.
189 ac_max_here_lines=12
191 ac_prev=
192 for ac_option
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
198 ac_prev=
199 continue
202 case "$ac_option" in
203 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
204 *) ac_optarg= ;;
205 esac
207 # Accept the important Cygnus configure options, so we can diagnose typos.
209 case "$ac_option" in
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
212 ac_prev=bindir ;;
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 bindir="$ac_optarg" ;;
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build="$ac_optarg" ;;
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file="$ac_optarg" ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 ac_prev=datadir ;;
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 | --da=*)
232 datadir="$ac_optarg" ;;
234 -disable-* | --disable-*)
235 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
236 # Reject names that are not valid shell variable names.
237 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
238 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
240 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
241 eval "enable_${ac_feature}=no" ;;
243 -enable-* | --enable-*)
244 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
245 # Reject names that are not valid shell variable names.
246 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
247 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
249 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
250 case "$ac_option" in
251 *=*) ;;
252 *) ac_optarg=yes ;;
253 esac
254 eval "enable_${ac_feature}='$ac_optarg'" ;;
256 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
257 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
258 | --exec | --exe | --ex)
259 ac_prev=exec_prefix ;;
260 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
261 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
262 | --exec=* | --exe=* | --ex=*)
263 exec_prefix="$ac_optarg" ;;
265 -gas | --gas | --ga | --g)
266 # Obsolete; use --with-gas.
267 with_gas=yes ;;
269 -help | --help | --hel | --he)
270 # Omit some internal or obsolete options to make the list less imposing.
271 # This message is too long to be a string in the A/UX 3.1 sh.
272 cat << EOF
273 Usage: configure [options] [host]
274 Options: [defaults in brackets after descriptions]
275 Configuration:
276 --cache-file=FILE cache test results in FILE
277 --help print this message
278 --no-create do not create output files
279 --quiet, --silent do not print \`checking...' messages
280 --version print the version of autoconf that created configure
281 Directory and file names:
282 --prefix=PREFIX install architecture-independent files in PREFIX
283 [$ac_default_prefix]
284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
285 [same as prefix]
286 --bindir=DIR user executables in DIR [EPREFIX/bin]
287 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
288 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
289 --datadir=DIR read-only architecture-independent data in DIR
290 [PREFIX/share]
291 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
292 --sharedstatedir=DIR modifiable architecture-independent data in DIR
293 [PREFIX/com]
294 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
295 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
296 --includedir=DIR C header files in DIR [PREFIX/include]
297 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
298 --infodir=DIR info documentation in DIR [PREFIX/info]
299 --mandir=DIR man documentation in DIR [PREFIX/man]
300 --srcdir=DIR find the sources in DIR [configure dir or ..]
301 --program-prefix=PREFIX prepend PREFIX to installed program names
302 --program-suffix=SUFFIX append SUFFIX to installed program names
303 --program-transform-name=PROGRAM
304 run sed PROGRAM on installed program names
306 cat << EOF
307 Host type:
308 --build=BUILD configure for building on BUILD [BUILD=HOST]
309 --host=HOST configure for HOST [guessed]
310 --target=TARGET configure for TARGET [TARGET=HOST]
311 Features and packages:
312 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
313 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
314 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
315 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
316 --x-includes=DIR X include files are in DIR
317 --x-libraries=DIR X library files are in DIR
319 if test -n "$ac_help"; then
320 echo "--enable and --with options recognized:$ac_help"
322 exit 0 ;;
324 -host | --host | --hos | --ho)
325 ac_prev=host ;;
326 -host=* | --host=* | --hos=* | --ho=*)
327 host="$ac_optarg" ;;
329 -includedir | --includedir | --includedi | --included | --include \
330 | --includ | --inclu | --incl | --inc)
331 ac_prev=includedir ;;
332 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
333 | --includ=* | --inclu=* | --incl=* | --inc=*)
334 includedir="$ac_optarg" ;;
336 -infodir | --infodir | --infodi | --infod | --info | --inf)
337 ac_prev=infodir ;;
338 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
339 infodir="$ac_optarg" ;;
341 -libdir | --libdir | --libdi | --libd)
342 ac_prev=libdir ;;
343 -libdir=* | --libdir=* | --libdi=* | --libd=*)
344 libdir="$ac_optarg" ;;
346 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
347 | --libexe | --libex | --libe)
348 ac_prev=libexecdir ;;
349 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
350 | --libexe=* | --libex=* | --libe=*)
351 libexecdir="$ac_optarg" ;;
353 -localstatedir | --localstatedir | --localstatedi | --localstated \
354 | --localstate | --localstat | --localsta | --localst \
355 | --locals | --local | --loca | --loc | --lo)
356 ac_prev=localstatedir ;;
357 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
358 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
359 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
360 localstatedir="$ac_optarg" ;;
362 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
363 ac_prev=mandir ;;
364 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
365 mandir="$ac_optarg" ;;
367 -nfp | --nfp | --nf)
368 # Obsolete; use --without-fp.
369 with_fp=no ;;
371 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
372 | --no-cr | --no-c)
373 no_create=yes ;;
375 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
376 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
377 no_recursion=yes ;;
379 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
380 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
381 | --oldin | --oldi | --old | --ol | --o)
382 ac_prev=oldincludedir ;;
383 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
384 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
385 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
386 oldincludedir="$ac_optarg" ;;
388 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
389 ac_prev=prefix ;;
390 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
391 prefix="$ac_optarg" ;;
393 -program-prefix | --program-prefix | --program-prefi | --program-pref \
394 | --program-pre | --program-pr | --program-p)
395 ac_prev=program_prefix ;;
396 -program-prefix=* | --program-prefix=* | --program-prefi=* \
397 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
398 program_prefix="$ac_optarg" ;;
400 -program-suffix | --program-suffix | --program-suffi | --program-suff \
401 | --program-suf | --program-su | --program-s)
402 ac_prev=program_suffix ;;
403 -program-suffix=* | --program-suffix=* | --program-suffi=* \
404 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
405 program_suffix="$ac_optarg" ;;
407 -program-transform-name | --program-transform-name \
408 | --program-transform-nam | --program-transform-na \
409 | --program-transform-n | --program-transform- \
410 | --program-transform | --program-transfor \
411 | --program-transfo | --program-transf \
412 | --program-trans | --program-tran \
413 | --progr-tra | --program-tr | --program-t)
414 ac_prev=program_transform_name ;;
415 -program-transform-name=* | --program-transform-name=* \
416 | --program-transform-nam=* | --program-transform-na=* \
417 | --program-transform-n=* | --program-transform-=* \
418 | --program-transform=* | --program-transfor=* \
419 | --program-transfo=* | --program-transf=* \
420 | --program-trans=* | --program-tran=* \
421 | --progr-tra=* | --program-tr=* | --program-t=*)
422 program_transform_name="$ac_optarg" ;;
424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
425 | -silent | --silent | --silen | --sile | --sil)
426 silent=yes ;;
428 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
429 ac_prev=sbindir ;;
430 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
431 | --sbi=* | --sb=*)
432 sbindir="$ac_optarg" ;;
434 -sharedstatedir | --sharedstatedir | --sharedstatedi \
435 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
436 | --sharedst | --shareds | --shared | --share | --shar \
437 | --sha | --sh)
438 ac_prev=sharedstatedir ;;
439 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
440 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
441 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
442 | --sha=* | --sh=*)
443 sharedstatedir="$ac_optarg" ;;
445 -site | --site | --sit)
446 ac_prev=site ;;
447 -site=* | --site=* | --sit=*)
448 site="$ac_optarg" ;;
450 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
451 ac_prev=srcdir ;;
452 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
453 srcdir="$ac_optarg" ;;
455 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
456 | --syscon | --sysco | --sysc | --sys | --sy)
457 ac_prev=sysconfdir ;;
458 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
459 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
460 sysconfdir="$ac_optarg" ;;
462 -target | --target | --targe | --targ | --tar | --ta | --t)
463 ac_prev=target ;;
464 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
465 target="$ac_optarg" ;;
467 -v | -verbose | --verbose | --verbos | --verbo | --verb)
468 verbose=yes ;;
470 -version | --version | --versio | --versi | --vers)
471 echo "configure generated by autoconf version 2.13"
472 exit 0 ;;
474 -with-* | --with-*)
475 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
476 # Reject names that are not valid shell variable names.
477 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
478 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
480 ac_package=`echo $ac_package| sed 's/-/_/g'`
481 case "$ac_option" in
482 *=*) ;;
483 *) ac_optarg=yes ;;
484 esac
485 eval "with_${ac_package}='$ac_optarg'" ;;
487 -without-* | --without-*)
488 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
489 # Reject names that are not valid shell variable names.
490 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
491 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
493 ac_package=`echo $ac_package| sed 's/-/_/g'`
494 eval "with_${ac_package}=no" ;;
496 --x)
497 # Obsolete; use --with-x.
498 with_x=yes ;;
500 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
501 | --x-incl | --x-inc | --x-in | --x-i)
502 ac_prev=x_includes ;;
503 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
504 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
505 x_includes="$ac_optarg" ;;
507 -x-libraries | --x-libraries | --x-librarie | --x-librari \
508 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
509 ac_prev=x_libraries ;;
510 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
511 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
512 x_libraries="$ac_optarg" ;;
514 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
518 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
519 echo "configure: warning: $ac_option: invalid host type" 1>&2
521 if test "x$nonopt" != xNONE; then
522 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
524 nonopt="$ac_option"
527 esac
528 done
530 if test -n "$ac_prev"; then
531 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
534 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
536 # File descriptor usage:
537 # 0 standard input
538 # 1 file creation
539 # 2 errors and warnings
540 # 3 some systems may open it to /dev/tty
541 # 4 used on the Kubota Titan
542 # 6 checking for... messages and results
543 # 5 compiler messages saved in config.log
544 if test "$silent" = yes; then
545 exec 6>/dev/null
546 else
547 exec 6>&1
549 exec 5>./config.log
551 echo "\
552 This file contains any messages produced by compilers while
553 running configure, to aid debugging if configure makes a mistake.
554 " 1>&5
556 # Strip out --no-create and --no-recursion so they do not pile up.
557 # Also quote any args containing shell metacharacters.
558 ac_configure_args=
559 for ac_arg
561 case "$ac_arg" in
562 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
563 | --no-cr | --no-c) ;;
564 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
565 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
566 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
567 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
568 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
569 esac
570 done
572 # NLS nuisances.
573 # Only set these to C if already set. These must not be set unconditionally
574 # because not all systems understand e.g. LANG=C (notably SCO).
575 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
576 # Non-C LC_CTYPE values break the ctype check.
577 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
578 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
579 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
580 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
582 # confdefs.h avoids OS command line length limits that DEFS can exceed.
583 rm -rf conftest* confdefs.h
584 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
585 echo > confdefs.h
587 # A filename unique to this package, relative to the directory that
588 # configure is in, which we can look for to find out if srcdir is correct.
589 ac_unique_file=include/main.h
591 # Find the source files, if location was not specified.
592 if test -z "$srcdir"; then
593 ac_srcdir_defaulted=yes
594 # Try the directory containing this script, then its parent.
595 ac_prog=$0
596 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
597 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
598 srcdir=$ac_confdir
599 if test ! -r $srcdir/$ac_unique_file; then
600 srcdir=..
602 else
603 ac_srcdir_defaulted=no
605 if test ! -r $srcdir/$ac_unique_file; then
606 if test "$ac_srcdir_defaulted" = yes; then
607 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
608 else
609 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
612 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
614 # Prefer explicitly selected file to automatically selected ones.
615 if test -z "$CONFIG_SITE"; then
616 if test "x$prefix" != xNONE; then
617 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
618 else
619 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
622 for ac_site_file in $CONFIG_SITE; do
623 if test -r "$ac_site_file"; then
624 echo "loading site script $ac_site_file"
625 . "$ac_site_file"
627 done
629 if test -r "$cache_file"; then
630 echo "loading cache $cache_file"
631 . $cache_file
632 else
633 echo "creating cache $cache_file"
634 > $cache_file
637 ac_ext=c
638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
639 ac_cpp='$CPP $CPPFLAGS'
640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
642 cross_compiling=$ac_cv_prog_cc_cross
644 ac_exeext=
645 ac_objext=o
646 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
647 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
648 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
649 ac_n= ac_c='
650 ' ac_t=' '
651 else
652 ac_n=-n ac_c= ac_t=
654 else
655 ac_n= ac_c='\c' ac_t=
660 ac_aux_dir=
661 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
662 if test -f $ac_dir/install-sh; then
663 ac_aux_dir=$ac_dir
664 ac_install_sh="$ac_aux_dir/install-sh -c"
665 break
666 elif test -f $ac_dir/install.sh; then
667 ac_aux_dir=$ac_dir
668 ac_install_sh="$ac_aux_dir/install.sh -c"
669 break
671 done
672 if test -z "$ac_aux_dir"; then
673 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
675 ac_config_guess=$ac_aux_dir/config.guess
676 ac_config_sub=$ac_aux_dir/config.sub
677 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
680 # Do some error checking and defaulting for the host and target type.
681 # The inputs are:
682 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
684 # The rules are:
685 # 1. You are not allowed to specify --host, --target, and nonopt at the
686 # same time.
687 # 2. Host defaults to nonopt.
688 # 3. If nonopt is not specified, then host defaults to the current host,
689 # as determined by config.guess.
690 # 4. Target and build default to nonopt.
691 # 5. If nonopt is not specified, then target and build default to host.
693 # The aliases save the names the user supplied, while $host etc.
694 # will get canonicalized.
695 case $host---$target---$nonopt in
696 NONE---*---* | *---NONE---* | *---*---NONE) ;;
697 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
698 esac
701 # Make sure we can run config.sub.
702 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
703 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
706 echo $ac_n "checking host system type""... $ac_c" 1>&6
707 echo "configure:708: checking host system type" >&5
709 host_alias=$host
710 case "$host_alias" in
711 NONE)
712 case $nonopt in
713 NONE)
714 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
715 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
716 fi ;;
717 *) host_alias=$nonopt ;;
718 esac ;;
719 esac
721 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
722 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
723 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
724 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
725 echo "$ac_t""$host" 1>&6
727 echo $ac_n "checking target system type""... $ac_c" 1>&6
728 echo "configure:729: checking target system type" >&5
730 target_alias=$target
731 case "$target_alias" in
732 NONE)
733 case $nonopt in
734 NONE) target_alias=$host_alias ;;
735 *) target_alias=$nonopt ;;
736 esac ;;
737 esac
739 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
740 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
741 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
742 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
743 echo "$ac_t""$target" 1>&6
745 echo $ac_n "checking build system type""... $ac_c" 1>&6
746 echo "configure:747: checking build system type" >&5
748 build_alias=$build
749 case "$build_alias" in
750 NONE)
751 case $nonopt in
752 NONE) build_alias=$host_alias ;;
753 *) build_alias=$nonopt ;;
754 esac ;;
755 esac
757 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
758 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
759 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
760 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
761 echo "$ac_t""$build" 1>&6
763 test "$host_alias" != "$target_alias" &&
764 test "$program_prefix$program_suffix$program_transform_name" = \
765 NONENONEs,x,x, &&
766 program_prefix=${target_alias}-
769 PACKAGE="vlc"
770 VERSION="0.3.1"
771 CODENAME=Ourumov
773 save_CFLAGS="${CFLAGS}"
774 save_CPPFLAGS="${CPPFLAGS}"
775 save_LDFLAGS="${LDFLAGS}"
777 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
778 echo "configure:779: checking whether ${MAKE-make} sets \${MAKE}" >&5
779 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
780 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
782 else
783 cat > conftestmake <<\EOF
784 all:
785 @echo 'ac_maketemp="${MAKE}"'
787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
788 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
789 if test -n "$ac_maketemp"; then
790 eval ac_cv_prog_make_${ac_make}_set=yes
791 else
792 eval ac_cv_prog_make_${ac_make}_set=no
794 rm -f conftestmake
796 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
797 echo "$ac_t""yes" 1>&6
798 SET_MAKE=
799 else
800 echo "$ac_t""no" 1>&6
801 SET_MAKE="MAKE=${MAKE-make}"
804 # Extract the first word of "gcc", so it can be a program name with args.
805 set dummy gcc; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
810 else
811 if test -n "$CC"; then
812 ac_cv_prog_CC="$CC" # Let the user override the test.
813 else
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
815 ac_dummy="$PATH"
816 for ac_dir in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
819 ac_cv_prog_CC="gcc"
820 break
822 done
823 IFS="$ac_save_ifs"
826 CC="$ac_cv_prog_CC"
827 if test -n "$CC"; then
828 echo "$ac_t""$CC" 1>&6
829 else
830 echo "$ac_t""no" 1>&6
833 if test -z "$CC"; then
834 # Extract the first word of "cc", so it can be a program name with args.
835 set dummy cc; ac_word=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
840 else
841 if test -n "$CC"; then
842 ac_cv_prog_CC="$CC" # Let the user override the test.
843 else
844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
845 ac_prog_rejected=no
846 ac_dummy="$PATH"
847 for ac_dir in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
851 ac_prog_rejected=yes
852 continue
854 ac_cv_prog_CC="cc"
855 break
857 done
858 IFS="$ac_save_ifs"
859 if test $ac_prog_rejected = yes; then
860 # We found a bogon in the path, so make sure we never use it.
861 set dummy $ac_cv_prog_CC
862 shift
863 if test $# -gt 0; then
864 # We chose a different compiler from the bogus one.
865 # However, it has the same basename, so the bogon will be chosen
866 # first if we set CC to just the basename; use the full file name.
867 shift
868 set dummy "$ac_dir/$ac_word" "$@"
869 shift
870 ac_cv_prog_CC="$@"
875 CC="$ac_cv_prog_CC"
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
878 else
879 echo "$ac_t""no" 1>&6
882 if test -z "$CC"; then
883 case "`uname -s`" in
884 *win32* | *WIN32*)
885 # Extract the first word of "cl", so it can be a program name with args.
886 set dummy cl; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
891 else
892 if test -n "$CC"; then
893 ac_cv_prog_CC="$CC" # Let the user override the test.
894 else
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
896 ac_dummy="$PATH"
897 for ac_dir in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir=.
899 if test -f $ac_dir/$ac_word; then
900 ac_cv_prog_CC="cl"
901 break
903 done
904 IFS="$ac_save_ifs"
907 CC="$ac_cv_prog_CC"
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
910 else
911 echo "$ac_t""no" 1>&6
914 esac
916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
922 ac_ext=c
923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
924 ac_cpp='$CPP $CPPFLAGS'
925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
927 cross_compiling=$ac_cv_prog_cc_cross
929 cat > conftest.$ac_ext << EOF
931 #line 932 "configure"
932 #include "confdefs.h"
934 main(){return(0);}
936 if { (eval echo configure:937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
937 ac_cv_prog_cc_works=yes
938 # If we can't run a trivial program, we are probably using a cross compiler.
939 if (./conftest; exit) 2>/dev/null; then
940 ac_cv_prog_cc_cross=no
941 else
942 ac_cv_prog_cc_cross=yes
944 else
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
947 ac_cv_prog_cc_works=no
949 rm -fr conftest*
950 ac_ext=c
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
957 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
958 if test $ac_cv_prog_cc_works = no; then
959 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
963 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
964 cross_compiling=$ac_cv_prog_cc_cross
966 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
967 echo "configure:968: checking whether we are using GNU C" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
970 else
971 cat > conftest.c <<EOF
972 #ifdef __GNUC__
973 yes;
974 #endif
976 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
977 ac_cv_prog_gcc=yes
978 else
979 ac_cv_prog_gcc=no
983 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
985 if test $ac_cv_prog_gcc = yes; then
986 GCC=yes
987 else
988 GCC=
991 ac_test_CFLAGS="${CFLAGS+set}"
992 ac_save_CFLAGS="$CFLAGS"
993 CFLAGS=
994 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${CC-cc} accepts -g" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
998 else
999 echo 'void f(){}' > conftest.c
1000 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1001 ac_cv_prog_cc_g=yes
1002 else
1003 ac_cv_prog_cc_g=no
1005 rm -f conftest*
1009 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1010 if test "$ac_test_CFLAGS" = set; then
1011 CFLAGS="$ac_save_CFLAGS"
1012 elif test $ac_cv_prog_cc_g = yes; then
1013 if test "$GCC" = yes; then
1014 CFLAGS="-g -O2"
1015 else
1016 CFLAGS="-g"
1018 else
1019 if test "$GCC" = yes; then
1020 CFLAGS="-O2"
1021 else
1022 CFLAGS=
1026 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1027 echo "configure:1028: checking how to run the C preprocessor" >&5
1028 # On Suns, sometimes $CPP names a directory.
1029 if test -n "$CPP" && test -d "$CPP"; then
1030 CPP=
1032 if test -z "$CPP"; then
1033 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1035 else
1036 # This must be in double quotes, not single quotes, because CPP may get
1037 # substituted into the Makefile and "${CC-cc}" will confuse make.
1038 CPP="${CC-cc} -E"
1039 # On the NeXT, cc -E runs the code through the compiler's parser,
1040 # not just through cpp.
1041 cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1044 #include <assert.h>
1045 Syntax Error
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050 if test -z "$ac_err"; then
1052 else
1053 echo "$ac_err" >&5
1054 echo "configure: failed program was:" >&5
1055 cat conftest.$ac_ext >&5
1056 rm -rf conftest*
1057 CPP="${CC-cc} -E -traditional-cpp"
1058 cat > conftest.$ac_ext <<EOF
1059 #line 1060 "configure"
1060 #include "confdefs.h"
1061 #include <assert.h>
1062 Syntax Error
1064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1065 { (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1067 if test -z "$ac_err"; then
1069 else
1070 echo "$ac_err" >&5
1071 echo "configure: failed program was:" >&5
1072 cat conftest.$ac_ext >&5
1073 rm -rf conftest*
1074 CPP="${CC-cc} -nologo -E"
1075 cat > conftest.$ac_ext <<EOF
1076 #line 1077 "configure"
1077 #include "confdefs.h"
1078 #include <assert.h>
1079 Syntax Error
1081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1082 { (eval echo configure:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1084 if test -z "$ac_err"; then
1086 else
1087 echo "$ac_err" >&5
1088 echo "configure: failed program was:" >&5
1089 cat conftest.$ac_ext >&5
1090 rm -rf conftest*
1091 CPP=/lib/cpp
1093 rm -f conftest*
1095 rm -f conftest*
1097 rm -f conftest*
1098 ac_cv_prog_CPP="$CPP"
1100 CPP="$ac_cv_prog_CPP"
1101 else
1102 ac_cv_prog_CPP="$CPP"
1104 echo "$ac_t""$CPP" 1>&6
1107 if test $host != $build; then
1108 ac_tool_prefix=${host_alias}-
1109 else
1110 ac_tool_prefix=
1113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1119 else
1120 if test -n "$RANLIB"; then
1121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1122 else
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1124 ac_dummy="$PATH"
1125 for ac_dir in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir=.
1127 if test -f $ac_dir/$ac_word; then
1128 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1129 break
1131 done
1132 IFS="$ac_save_ifs"
1135 RANLIB="$ac_cv_prog_RANLIB"
1136 if test -n "$RANLIB"; then
1137 echo "$ac_t""$RANLIB" 1>&6
1138 else
1139 echo "$ac_t""no" 1>&6
1143 if test -z "$ac_cv_prog_RANLIB"; then
1144 if test -n "$ac_tool_prefix"; then
1145 # Extract the first word of "ranlib", so it can be a program name with args.
1146 set dummy ranlib; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1151 else
1152 if test -n "$RANLIB"; then
1153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1154 else
1155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1156 ac_dummy="$PATH"
1157 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_RANLIB="ranlib"
1161 break
1163 done
1164 IFS="$ac_save_ifs"
1165 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1168 RANLIB="$ac_cv_prog_RANLIB"
1169 if test -n "$RANLIB"; then
1170 echo "$ac_t""$RANLIB" 1>&6
1171 else
1172 echo "$ac_t""no" 1>&6
1175 else
1176 RANLIB=":"
1180 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1181 set dummy ${ac_tool_prefix}strip; ac_word=$2
1182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1183 echo "configure:1184: checking for $ac_word" >&5
1184 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1186 else
1187 if test -n "$STRIP"; then
1188 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1189 else
1190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1191 ac_dummy="$PATH"
1192 for ac_dir in $ac_dummy; do
1193 test -z "$ac_dir" && ac_dir=.
1194 if test -f $ac_dir/$ac_word; then
1195 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1196 break
1198 done
1199 IFS="$ac_save_ifs"
1202 STRIP="$ac_cv_prog_STRIP"
1203 if test -n "$STRIP"; then
1204 echo "$ac_t""$STRIP" 1>&6
1205 else
1206 echo "$ac_t""no" 1>&6
1210 if test -z "$ac_cv_prog_STRIP"; then
1211 if test -n "$ac_tool_prefix"; then
1212 # Extract the first word of "strip", so it can be a program name with args.
1213 set dummy strip; ac_word=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219 if test -n "$STRIP"; then
1220 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1221 else
1222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1223 ac_dummy="$PATH"
1224 for ac_dir in $ac_dummy; do
1225 test -z "$ac_dir" && ac_dir=.
1226 if test -f $ac_dir/$ac_word; then
1227 ac_cv_prog_STRIP="strip"
1228 break
1230 done
1231 IFS="$ac_save_ifs"
1232 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1235 STRIP="$ac_cv_prog_STRIP"
1236 if test -n "$STRIP"; then
1237 echo "$ac_t""$STRIP" 1>&6
1238 else
1239 echo "$ac_t""no" 1>&6
1242 else
1243 STRIP=":"
1248 # Extract the first word of "gmake", so it can be a program name with args.
1249 set dummy gmake; ac_word=$2
1250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1251 echo "configure:1252: checking for $ac_word" >&5
1252 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255 case "$GMAKE" in
1257 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1259 ?:/*)
1260 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1264 ac_dummy="$PATH"
1265 for ac_dir in $ac_dummy; do
1266 test -z "$ac_dir" && ac_dir=.
1267 if test -f $ac_dir/$ac_word; then
1268 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1269 break
1271 done
1272 IFS="$ac_save_ifs"
1273 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1275 esac
1277 GMAKE="$ac_cv_path_GMAKE"
1278 if test -n "$GMAKE"; then
1279 echo "$ac_t""$GMAKE" 1>&6
1280 else
1281 echo "$ac_t""no" 1>&6
1284 if test "x$GMAKE" = "xno"; then
1285 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1286 echo "configure:1287: checking whether GNU make is installed" >&5
1287 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1289 else
1290 if make --version | grep -q -i gnu; then
1291 ac_cv_gmake="yes"
1292 else
1293 echo "This software needs you to install GNU make to compile properly."
1294 echo "You can get it from http://www.gnu.org/."
1295 exit
1299 echo "$ac_t""$ac_cv_gmake" 1>&6
1300 VLC_MAKE="make"
1301 else
1302 VLC_MAKE="gmake"
1305 ALL_LINGUAS="de en_GB fr ja no ru nl"
1307 cat >> confdefs.h <<EOF
1308 #define VLC_PACKAGE "$PACKAGE"
1311 cat >> confdefs.h <<EOF
1312 #define VLC_VERSION "$VERSION"
1315 # Extract the first word of "ranlib", so it can be a program name with args.
1316 set dummy ranlib; ac_word=$2
1317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318 echo "configure:1319: checking for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322 if test -n "$RANLIB"; then
1323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1324 else
1325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1326 ac_dummy="$PATH"
1327 for ac_dir in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_prog_RANLIB="ranlib"
1331 break
1333 done
1334 IFS="$ac_save_ifs"
1335 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1338 RANLIB="$ac_cv_prog_RANLIB"
1339 if test -n "$RANLIB"; then
1340 echo "$ac_t""$RANLIB" 1>&6
1341 else
1342 echo "$ac_t""no" 1>&6
1346 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1347 echo "configure:1348: checking for strerror in -lcposix" >&5
1348 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1351 else
1352 ac_save_LIBS="$LIBS"
1353 LIBS="-lcposix $LIBS"
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 /* Override any gcc2 internal prototype to avoid an error. */
1358 /* We use char because int might match the return type of a gcc2
1359 builtin and then its argument prototype would still apply. */
1360 char strerror();
1362 int main() {
1363 strerror()
1364 ; return 0; }
1366 if { (eval echo configure:1367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1367 rm -rf conftest*
1368 eval "ac_cv_lib_$ac_lib_var=yes"
1369 else
1370 echo "configure: failed program was:" >&5
1371 cat conftest.$ac_ext >&5
1372 rm -rf conftest*
1373 eval "ac_cv_lib_$ac_lib_var=no"
1375 rm -f conftest*
1376 LIBS="$ac_save_LIBS"
1379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1380 echo "$ac_t""yes" 1>&6
1381 LIBS="$LIBS -lcposix"
1382 else
1383 echo "$ac_t""no" 1>&6
1388 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1389 echo "configure:1390: checking for ANSI C header files" >&5
1390 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1392 else
1393 cat > conftest.$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1396 #include <stdlib.h>
1397 #include <stdarg.h>
1398 #include <string.h>
1399 #include <float.h>
1401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1402 { (eval echo configure:1403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1404 if test -z "$ac_err"; then
1405 rm -rf conftest*
1406 ac_cv_header_stdc=yes
1407 else
1408 echo "$ac_err" >&5
1409 echo "configure: failed program was:" >&5
1410 cat conftest.$ac_ext >&5
1411 rm -rf conftest*
1412 ac_cv_header_stdc=no
1414 rm -f conftest*
1416 if test $ac_cv_header_stdc = yes; then
1417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 #include <string.h>
1423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1424 egrep "memchr" >/dev/null 2>&1; then
1426 else
1427 rm -rf conftest*
1428 ac_cv_header_stdc=no
1430 rm -f conftest*
1434 if test $ac_cv_header_stdc = yes; then
1435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1436 cat > conftest.$ac_ext <<EOF
1437 #line 1438 "configure"
1438 #include "confdefs.h"
1439 #include <stdlib.h>
1441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1442 egrep "free" >/dev/null 2>&1; then
1444 else
1445 rm -rf conftest*
1446 ac_cv_header_stdc=no
1448 rm -f conftest*
1452 if test $ac_cv_header_stdc = yes; then
1453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1454 if test "$cross_compiling" = yes; then
1456 else
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460 #include <ctype.h>
1461 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1462 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1464 int main () { int i; for (i = 0; i < 256; i++)
1465 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1466 exit (0); }
1469 if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1470 then
1472 else
1473 echo "configure: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
1475 rm -fr conftest*
1476 ac_cv_header_stdc=no
1478 rm -fr conftest*
1484 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1485 if test $ac_cv_header_stdc = yes; then
1486 cat >> confdefs.h <<\EOF
1487 #define STDC_HEADERS 1
1492 echo $ac_n "checking for working const""... $ac_c" 1>&6
1493 echo "configure:1494: checking for working const" >&5
1494 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1496 else
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1501 int main() {
1503 /* Ultrix mips cc rejects this. */
1504 typedef int charset[2]; const charset x;
1505 /* SunOS 4.1.1 cc rejects this. */
1506 char const *const *ccp;
1507 char **p;
1508 /* NEC SVR4.0.2 mips cc rejects this. */
1509 struct point {int x, y;};
1510 static struct point const zero = {0,0};
1511 /* AIX XL C 1.02.0.0 rejects this.
1512 It does not let you subtract one const X* pointer from another in an arm
1513 of an if-expression whose if-part is not a constant expression */
1514 const char *g = "string";
1515 ccp = &g + (g ? g-g : 0);
1516 /* HPUX 7.0 cc rejects these. */
1517 ++ccp;
1518 p = (char**) ccp;
1519 ccp = (char const *const *) p;
1520 { /* SCO 3.2v4 cc rejects this. */
1521 char *t;
1522 char const *s = 0 ? (char *) 0 : (char const *) 0;
1524 *t++ = 0;
1526 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1527 int x[] = {25, 17};
1528 const int *foo = &x[0];
1529 ++foo;
1531 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1532 typedef const int *iptr;
1533 iptr p = 0;
1534 ++p;
1536 { /* AIX XL C 1.02.0.0 rejects this saying
1537 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1538 struct s { int j; const int *ap[3]; };
1539 struct s *b; b->j = 5;
1541 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1542 const int foo = 10;
1545 ; return 0; }
1547 if { (eval echo configure:1548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1548 rm -rf conftest*
1549 ac_cv_c_const=yes
1550 else
1551 echo "configure: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1553 rm -rf conftest*
1554 ac_cv_c_const=no
1556 rm -f conftest*
1559 echo "$ac_t""$ac_cv_c_const" 1>&6
1560 if test $ac_cv_c_const = no; then
1561 cat >> confdefs.h <<\EOF
1562 #define const
1567 echo $ac_n "checking for inline""... $ac_c" 1>&6
1568 echo "configure:1569: checking for inline" >&5
1569 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1571 else
1572 ac_cv_c_inline=no
1573 for ac_kw in inline __inline__ __inline; do
1574 cat > conftest.$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1578 int main() {
1579 } $ac_kw foo() {
1580 ; return 0; }
1582 if { (eval echo configure:1583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1583 rm -rf conftest*
1584 ac_cv_c_inline=$ac_kw; break
1585 else
1586 echo "configure: failed program was:" >&5
1587 cat conftest.$ac_ext >&5
1589 rm -f conftest*
1590 done
1594 echo "$ac_t""$ac_cv_c_inline" 1>&6
1595 case "$ac_cv_c_inline" in
1596 inline | yes) ;;
1597 no) cat >> confdefs.h <<\EOF
1598 #define inline
1601 *) cat >> confdefs.h <<EOF
1602 #define inline $ac_cv_c_inline
1605 esac
1607 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1608 echo "configure:1609: checking for off_t" >&5
1609 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1611 else
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1615 #include <sys/types.h>
1616 #if STDC_HEADERS
1617 #include <stdlib.h>
1618 #include <stddef.h>
1619 #endif
1621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1622 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1623 rm -rf conftest*
1624 ac_cv_type_off_t=yes
1625 else
1626 rm -rf conftest*
1627 ac_cv_type_off_t=no
1629 rm -f conftest*
1632 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1633 if test $ac_cv_type_off_t = no; then
1634 cat >> confdefs.h <<\EOF
1635 #define off_t long
1640 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1641 echo "configure:1642: checking for size_t" >&5
1642 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1644 else
1645 cat > conftest.$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1648 #include <sys/types.h>
1649 #if STDC_HEADERS
1650 #include <stdlib.h>
1651 #include <stddef.h>
1652 #endif
1654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1655 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1656 rm -rf conftest*
1657 ac_cv_type_size_t=yes
1658 else
1659 rm -rf conftest*
1660 ac_cv_type_size_t=no
1662 rm -f conftest*
1665 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1666 if test $ac_cv_type_size_t = no; then
1667 cat >> confdefs.h <<\EOF
1668 #define size_t unsigned
1673 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1674 # for constant arguments. Useless!
1675 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1676 echo "configure:1677: checking for working alloca.h" >&5
1677 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1679 else
1680 cat > conftest.$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1683 #include <alloca.h>
1684 int main() {
1685 char *p = alloca(2 * sizeof(int));
1686 ; return 0; }
1688 if { (eval echo configure:1689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1689 rm -rf conftest*
1690 ac_cv_header_alloca_h=yes
1691 else
1692 echo "configure: failed program was:" >&5
1693 cat conftest.$ac_ext >&5
1694 rm -rf conftest*
1695 ac_cv_header_alloca_h=no
1697 rm -f conftest*
1700 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1701 if test $ac_cv_header_alloca_h = yes; then
1702 cat >> confdefs.h <<\EOF
1703 #define HAVE_ALLOCA_H 1
1708 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1709 echo "configure:1710: checking for alloca" >&5
1710 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1712 else
1713 cat > conftest.$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1717 #ifdef __GNUC__
1718 # define alloca __builtin_alloca
1719 #else
1720 # ifdef _MSC_VER
1721 # include <malloc.h>
1722 # define alloca _alloca
1723 # else
1724 # if HAVE_ALLOCA_H
1725 # include <alloca.h>
1726 # else
1727 # ifdef _AIX
1728 #pragma alloca
1729 # else
1730 # ifndef alloca /* predefined by HP cc +Olibcalls */
1731 char *alloca ();
1732 # endif
1733 # endif
1734 # endif
1735 # endif
1736 #endif
1738 int main() {
1739 char *p = (char *) alloca(1);
1740 ; return 0; }
1742 if { (eval echo configure:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1743 rm -rf conftest*
1744 ac_cv_func_alloca_works=yes
1745 else
1746 echo "configure: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1748 rm -rf conftest*
1749 ac_cv_func_alloca_works=no
1751 rm -f conftest*
1754 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1755 if test $ac_cv_func_alloca_works = yes; then
1756 cat >> confdefs.h <<\EOF
1757 #define HAVE_ALLOCA 1
1762 if test $ac_cv_func_alloca_works = no; then
1763 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1764 # that cause trouble. Some versions do not even contain alloca or
1765 # contain a buggy version. If you still want to use their alloca,
1766 # use ar to extract alloca.o from them instead of compiling alloca.c.
1767 ALLOCA=alloca.${ac_objext}
1768 cat >> confdefs.h <<\EOF
1769 #define C_ALLOCA 1
1773 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether alloca needs Cray hooks" >&5
1775 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1777 else
1778 cat > conftest.$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 #if defined(CRAY) && ! defined(CRAY2)
1782 webecray
1783 #else
1784 wenotbecray
1785 #endif
1788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1789 egrep "webecray" >/dev/null 2>&1; then
1790 rm -rf conftest*
1791 ac_cv_os_cray=yes
1792 else
1793 rm -rf conftest*
1794 ac_cv_os_cray=no
1796 rm -f conftest*
1800 echo "$ac_t""$ac_cv_os_cray" 1>&6
1801 if test $ac_cv_os_cray = yes; then
1802 for ac_func in _getb67 GETB67 getb67; do
1803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1804 echo "configure:1805: checking for $ac_func" >&5
1805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1807 else
1808 cat > conftest.$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $ac_func(); below. */
1813 #include <assert.h>
1814 /* Override any gcc2 internal prototype to avoid an error. */
1815 /* We use char because int might match the return type of a gcc2
1816 builtin and then its argument prototype would still apply. */
1817 char $ac_func();
1819 int main() {
1821 /* The GNU C library defines this for functions which it implements
1822 to always fail with ENOSYS. Some functions are actually named
1823 something starting with __ and the normal name is an alias. */
1824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1825 choke me
1826 #else
1827 $ac_func();
1828 #endif
1830 ; return 0; }
1832 if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1833 rm -rf conftest*
1834 eval "ac_cv_func_$ac_func=yes"
1835 else
1836 echo "configure: failed program was:" >&5
1837 cat conftest.$ac_ext >&5
1838 rm -rf conftest*
1839 eval "ac_cv_func_$ac_func=no"
1841 rm -f conftest*
1844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1845 echo "$ac_t""yes" 1>&6
1846 cat >> confdefs.h <<EOF
1847 #define CRAY_STACKSEG_END $ac_func
1850 break
1851 else
1852 echo "$ac_t""no" 1>&6
1855 done
1858 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1859 echo "configure:1860: checking stack direction for C alloca" >&5
1860 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1862 else
1863 if test "$cross_compiling" = yes; then
1864 ac_cv_c_stack_direction=0
1865 else
1866 cat > conftest.$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1869 find_stack_direction ()
1871 static char *addr = 0;
1872 auto char dummy;
1873 if (addr == 0)
1875 addr = &dummy;
1876 return find_stack_direction ();
1878 else
1879 return (&dummy > addr) ? 1 : -1;
1881 main ()
1883 exit (find_stack_direction() < 0);
1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1887 then
1888 ac_cv_c_stack_direction=1
1889 else
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1892 rm -fr conftest*
1893 ac_cv_c_stack_direction=-1
1895 rm -fr conftest*
1900 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1901 cat >> confdefs.h <<EOF
1902 #define STACK_DIRECTION $ac_cv_c_stack_direction
1907 for ac_hdr in unistd.h
1909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_hdr" >&5
1912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1918 #include <$ac_hdr>
1920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1921 { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1923 if test -z "$ac_err"; then
1924 rm -rf conftest*
1925 eval "ac_cv_header_$ac_safe=yes"
1926 else
1927 echo "$ac_err" >&5
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1930 rm -rf conftest*
1931 eval "ac_cv_header_$ac_safe=no"
1933 rm -f conftest*
1935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1936 echo "$ac_t""yes" 1>&6
1937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1938 cat >> confdefs.h <<EOF
1939 #define $ac_tr_hdr 1
1942 else
1943 echo "$ac_t""no" 1>&6
1945 done
1947 for ac_func in getpagesize
1949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1950 echo "configure:1951: checking for $ac_func" >&5
1951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1953 else
1954 cat > conftest.$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1957 /* System header to define __stub macros and hopefully few prototypes,
1958 which can conflict with char $ac_func(); below. */
1959 #include <assert.h>
1960 /* Override any gcc2 internal prototype to avoid an error. */
1961 /* We use char because int might match the return type of a gcc2
1962 builtin and then its argument prototype would still apply. */
1963 char $ac_func();
1965 int main() {
1967 /* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1971 choke me
1972 #else
1973 $ac_func();
1974 #endif
1976 ; return 0; }
1978 if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1979 rm -rf conftest*
1980 eval "ac_cv_func_$ac_func=yes"
1981 else
1982 echo "configure: failed program was:" >&5
1983 cat conftest.$ac_ext >&5
1984 rm -rf conftest*
1985 eval "ac_cv_func_$ac_func=no"
1987 rm -f conftest*
1990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1991 echo "$ac_t""yes" 1>&6
1992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1993 cat >> confdefs.h <<EOF
1994 #define $ac_tr_func 1
1997 else
1998 echo "$ac_t""no" 1>&6
2000 done
2002 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2003 echo "configure:2004: checking for working mmap" >&5
2004 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2006 else
2007 if test "$cross_compiling" = yes; then
2008 ac_cv_func_mmap_fixed_mapped=no
2009 else
2010 cat > conftest.$ac_ext <<EOF
2011 #line 2012 "configure"
2012 #include "confdefs.h"
2014 /* Thanks to Mike Haertel and Jim Avera for this test.
2015 Here is a matrix of mmap possibilities:
2016 mmap private not fixed
2017 mmap private fixed at somewhere currently unmapped
2018 mmap private fixed at somewhere already mapped
2019 mmap shared not fixed
2020 mmap shared fixed at somewhere currently unmapped
2021 mmap shared fixed at somewhere already mapped
2022 For private mappings, we should verify that changes cannot be read()
2023 back from the file, nor mmap's back from the file at a different
2024 address. (There have been systems where private was not correctly
2025 implemented like the infamous i386 svr4.0, and systems where the
2026 VM page cache was not coherent with the filesystem buffer cache
2027 like early versions of FreeBSD and possibly contemporary NetBSD.)
2028 For shared mappings, we should conversely verify that changes get
2029 propogated back to all the places they're supposed to be.
2031 Grep wants private fixed already mapped.
2032 The main things grep needs to know about mmap are:
2033 * does it exist and is it safe to write into the mmap'd area
2034 * how to use it (BSD variants) */
2035 #include <sys/types.h>
2036 #include <fcntl.h>
2037 #include <sys/mman.h>
2039 /* This mess was copied from the GNU getpagesize.h. */
2040 #ifndef HAVE_GETPAGESIZE
2041 # ifdef HAVE_UNISTD_H
2042 # include <unistd.h>
2043 # endif
2045 /* Assume that all systems that can run configure have sys/param.h. */
2046 # ifndef HAVE_SYS_PARAM_H
2047 # define HAVE_SYS_PARAM_H 1
2048 # endif
2050 # ifdef _SC_PAGESIZE
2051 # define getpagesize() sysconf(_SC_PAGESIZE)
2052 # else /* no _SC_PAGESIZE */
2053 # ifdef HAVE_SYS_PARAM_H
2054 # include <sys/param.h>
2055 # ifdef EXEC_PAGESIZE
2056 # define getpagesize() EXEC_PAGESIZE
2057 # else /* no EXEC_PAGESIZE */
2058 # ifdef NBPG
2059 # define getpagesize() NBPG * CLSIZE
2060 # ifndef CLSIZE
2061 # define CLSIZE 1
2062 # endif /* no CLSIZE */
2063 # else /* no NBPG */
2064 # ifdef NBPC
2065 # define getpagesize() NBPC
2066 # else /* no NBPC */
2067 # ifdef PAGESIZE
2068 # define getpagesize() PAGESIZE
2069 # endif /* PAGESIZE */
2070 # endif /* no NBPC */
2071 # endif /* no NBPG */
2072 # endif /* no EXEC_PAGESIZE */
2073 # else /* no HAVE_SYS_PARAM_H */
2074 # define getpagesize() 8192 /* punt totally */
2075 # endif /* no HAVE_SYS_PARAM_H */
2076 # endif /* no _SC_PAGESIZE */
2078 #endif /* no HAVE_GETPAGESIZE */
2080 #ifdef __cplusplus
2081 extern "C" { void *malloc(unsigned); }
2082 #else
2083 char *malloc();
2084 #endif
2087 main()
2089 char *data, *data2, *data3;
2090 int i, pagesize;
2091 int fd;
2093 pagesize = getpagesize();
2096 * First, make a file with some known garbage in it.
2098 data = malloc(pagesize);
2099 if (!data)
2100 exit(1);
2101 for (i = 0; i < pagesize; ++i)
2102 *(data + i) = rand();
2103 umask(0);
2104 fd = creat("conftestmmap", 0600);
2105 if (fd < 0)
2106 exit(1);
2107 if (write(fd, data, pagesize) != pagesize)
2108 exit(1);
2109 close(fd);
2112 * Next, try to mmap the file at a fixed address which
2113 * already has something else allocated at it. If we can,
2114 * also make sure that we see the same garbage.
2116 fd = open("conftestmmap", O_RDWR);
2117 if (fd < 0)
2118 exit(1);
2119 data2 = malloc(2 * pagesize);
2120 if (!data2)
2121 exit(1);
2122 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2123 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2124 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2125 exit(1);
2126 for (i = 0; i < pagesize; ++i)
2127 if (*(data + i) != *(data2 + i))
2128 exit(1);
2131 * Finally, make sure that changes to the mapped area
2132 * do not percolate back to the file as seen by read().
2133 * (This is a bug on some variants of i386 svr4.0.)
2135 for (i = 0; i < pagesize; ++i)
2136 *(data2 + i) = *(data2 + i) + 1;
2137 data3 = malloc(pagesize);
2138 if (!data3)
2139 exit(1);
2140 if (read(fd, data3, pagesize) != pagesize)
2141 exit(1);
2142 for (i = 0; i < pagesize; ++i)
2143 if (*(data + i) != *(data3 + i))
2144 exit(1);
2145 close(fd);
2146 unlink("conftestmmap");
2147 exit(0);
2151 if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2152 then
2153 ac_cv_func_mmap_fixed_mapped=yes
2154 else
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2157 rm -fr conftest*
2158 ac_cv_func_mmap_fixed_mapped=no
2160 rm -fr conftest*
2165 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2166 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2167 cat >> confdefs.h <<\EOF
2168 #define HAVE_MMAP 1
2174 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2175 echo "configure:2176: checking whether we are using the GNU C Library 2.1 or newer" >&5
2176 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2183 #include <features.h>
2184 #ifdef __GNU_LIBRARY__
2185 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2186 Lucky GNU user
2187 #endif
2188 #endif
2191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2192 egrep "Lucky GNU user" >/dev/null 2>&1; then
2193 rm -rf conftest*
2194 ac_cv_gnu_library_2_1=yes
2195 else
2196 rm -rf conftest*
2197 ac_cv_gnu_library_2_1=no
2199 rm -f conftest*
2205 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2207 GLIBC21="$ac_cv_gnu_library_2_1"
2211 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2212 stdlib.h string.h unistd.h sys/param.h
2214 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2215 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2216 echo "configure:2217: checking for $ac_hdr" >&5
2217 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2219 else
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 #include <$ac_hdr>
2225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2226 { (eval echo configure:2227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2228 if test -z "$ac_err"; then
2229 rm -rf conftest*
2230 eval "ac_cv_header_$ac_safe=yes"
2231 else
2232 echo "$ac_err" >&5
2233 echo "configure: failed program was:" >&5
2234 cat conftest.$ac_ext >&5
2235 rm -rf conftest*
2236 eval "ac_cv_header_$ac_safe=no"
2238 rm -f conftest*
2240 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2241 echo "$ac_t""yes" 1>&6
2242 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2243 cat >> confdefs.h <<EOF
2244 #define $ac_tr_hdr 1
2247 else
2248 echo "$ac_t""no" 1>&6
2250 done
2252 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2253 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2254 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2257 echo "configure:2258: checking for $ac_func" >&5
2258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2260 else
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 /* System header to define __stub macros and hopefully few prototypes,
2265 which can conflict with char $ac_func(); below. */
2266 #include <assert.h>
2267 /* Override any gcc2 internal prototype to avoid an error. */
2268 /* We use char because int might match the return type of a gcc2
2269 builtin and then its argument prototype would still apply. */
2270 char $ac_func();
2272 int main() {
2274 /* The GNU C library defines this for functions which it implements
2275 to always fail with ENOSYS. Some functions are actually named
2276 something starting with __ and the normal name is an alias. */
2277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2278 choke me
2279 #else
2280 $ac_func();
2281 #endif
2283 ; return 0; }
2285 if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2286 rm -rf conftest*
2287 eval "ac_cv_func_$ac_func=yes"
2288 else
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 rm -rf conftest*
2292 eval "ac_cv_func_$ac_func=no"
2294 rm -f conftest*
2297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2298 echo "$ac_t""yes" 1>&6
2299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2300 cat >> confdefs.h <<EOF
2301 #define $ac_tr_func 1
2304 else
2305 echo "$ac_t""no" 1>&6
2307 done
2312 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2313 if test "${with_libiconv_prefix+set}" = set; then
2314 withval="$with_libiconv_prefix"
2316 for dir in `echo "$withval" | tr : ' '`; do
2317 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2318 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2319 done
2324 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2325 echo "configure:2326: checking for iconv" >&5
2326 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2328 else
2330 am_cv_func_iconv="no, consider installing GNU libiconv"
2331 am_cv_lib_iconv=no
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2335 #include <stdlib.h>
2336 #include <iconv.h>
2337 int main() {
2338 iconv_t cd = iconv_open("","");
2339 iconv(cd,NULL,NULL,NULL,NULL);
2340 iconv_close(cd);
2341 ; return 0; }
2343 if { (eval echo configure:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2344 rm -rf conftest*
2345 am_cv_func_iconv=yes
2346 else
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 rm -f conftest*
2351 if test "$am_cv_func_iconv" != yes; then
2352 am_save_LIBS="$LIBS"
2353 LIBS="$LIBS -liconv"
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 #include <stdlib.h>
2358 #include <iconv.h>
2359 int main() {
2360 iconv_t cd = iconv_open("","");
2361 iconv(cd,NULL,NULL,NULL,NULL);
2362 iconv_close(cd);
2363 ; return 0; }
2365 if { (eval echo configure:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2366 rm -rf conftest*
2367 am_cv_lib_iconv=yes
2368 am_cv_func_iconv=yes
2369 else
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2373 rm -f conftest*
2374 LIBS="$am_save_LIBS"
2379 echo "$ac_t""$am_cv_func_iconv" 1>&6
2380 if test "$am_cv_func_iconv" = yes; then
2381 cat >> confdefs.h <<\EOF
2382 #define HAVE_ICONV 1
2385 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2386 echo "configure:2387: checking for iconv declaration" >&5
2387 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2389 else
2391 cat > conftest.$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2395 #include <stdlib.h>
2396 #include <iconv.h>
2397 extern
2398 #ifdef __cplusplus
2400 #endif
2401 #if defined(__STDC__) || defined(__cplusplus)
2402 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2403 #else
2404 size_t iconv();
2405 #endif
2407 int main() {
2409 ; return 0; }
2411 if { (eval echo configure:2412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2412 rm -rf conftest*
2413 am_cv_proto_iconv_arg1=""
2414 else
2415 echo "configure: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2417 rm -rf conftest*
2418 am_cv_proto_iconv_arg1="const"
2420 rm -f conftest*
2421 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);"
2424 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2425 echo "$ac_t""${ac_t:-
2426 }$am_cv_proto_iconv" 1>&6
2427 cat >> confdefs.h <<EOF
2428 #define ICONV_CONST $am_cv_proto_iconv_arg1
2432 LIBICONV=
2433 if test "$am_cv_lib_iconv" = yes; then
2434 LIBICONV="-liconv"
2439 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2440 echo "configure:2441: checking for nl_langinfo and CODESET" >&5
2441 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2443 else
2444 cat > conftest.$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2447 #include <langinfo.h>
2448 int main() {
2449 char* cs = nl_langinfo(CODESET);
2450 ; return 0; }
2452 if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2453 rm -rf conftest*
2454 am_cv_langinfo_codeset=yes
2455 else
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 rm -rf conftest*
2459 am_cv_langinfo_codeset=no
2461 rm -f conftest*
2465 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2466 if test $am_cv_langinfo_codeset = yes; then
2467 cat >> confdefs.h <<\EOF
2468 #define HAVE_LANGINFO_CODESET 1
2473 if test $ac_cv_header_locale_h = yes; then
2474 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2475 echo "configure:2476: checking for LC_MESSAGES" >&5
2476 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2478 else
2479 cat > conftest.$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2482 #include <locale.h>
2483 int main() {
2484 return LC_MESSAGES
2485 ; return 0; }
2487 if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2488 rm -rf conftest*
2489 am_cv_val_LC_MESSAGES=yes
2490 else
2491 echo "configure: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2493 rm -rf conftest*
2494 am_cv_val_LC_MESSAGES=no
2496 rm -f conftest*
2499 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2500 if test $am_cv_val_LC_MESSAGES = yes; then
2501 cat >> confdefs.h <<\EOF
2502 #define HAVE_LC_MESSAGES 1
2507 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2508 echo "configure:2509: checking whether NLS is requested" >&5
2509 # Check whether --enable-nls or --disable-nls was given.
2510 if test "${enable_nls+set}" = set; then
2511 enableval="$enable_nls"
2512 USE_NLS=$enableval
2513 else
2514 USE_NLS=yes
2517 echo "$ac_t""$USE_NLS" 1>&6
2520 BUILD_INCLUDED_LIBINTL=no
2521 USE_INCLUDED_LIBINTL=no
2522 INTLLIBS=
2524 if test "$USE_NLS" = "yes"; then
2525 cat >> confdefs.h <<\EOF
2526 #define ENABLE_NLS 1
2529 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2530 echo "configure:2531: checking whether included gettext is requested" >&5
2531 # Check whether --with-included-gettext or --without-included-gettext was given.
2532 if test "${with_included_gettext+set}" = set; then
2533 withval="$with_included_gettext"
2534 nls_cv_force_use_gnu_gettext=$withval
2535 else
2536 nls_cv_force_use_gnu_gettext=no
2539 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2541 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2542 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2543 CATOBJEXT=NONE
2548 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2549 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2550 echo "configure:2551: checking for libintl.h" >&5
2551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2553 else
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 #include <libintl.h>
2559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2560 { (eval echo configure:2561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2562 if test -z "$ac_err"; then
2563 rm -rf conftest*
2564 eval "ac_cv_header_$ac_safe=yes"
2565 else
2566 echo "$ac_err" >&5
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2569 rm -rf conftest*
2570 eval "ac_cv_header_$ac_safe=no"
2572 rm -f conftest*
2574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2575 echo "$ac_t""yes" 1>&6
2576 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2577 echo "configure:2578: checking for GNU gettext in libc" >&5
2578 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2580 else
2581 cat > conftest.$ac_ext <<EOF
2582 #line 2583 "configure"
2583 #include "confdefs.h"
2584 #include <libintl.h>
2585 extern int _nl_msg_cat_cntr;
2586 int main() {
2587 bindtextdomain ("", "");
2588 return (int) gettext ("") + _nl_msg_cat_cntr
2589 ; return 0; }
2591 if { (eval echo configure:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2592 rm -rf conftest*
2593 gt_cv_func_gnugettext1_libc=yes
2594 else
2595 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2597 rm -rf conftest*
2598 gt_cv_func_gnugettext1_libc=no
2600 rm -f conftest*
2603 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2605 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2606 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2607 echo "configure:2608: checking for GNU gettext in libintl" >&5
2608 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2610 else
2611 gt_save_LIBS="$LIBS"
2612 LIBS="$LIBS -lintl $LIBICONV"
2613 cat > conftest.$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2616 #include <libintl.h>
2617 extern int _nl_msg_cat_cntr;
2618 int main() {
2619 bindtextdomain ("", "");
2620 return (int) gettext ("") + _nl_msg_cat_cntr
2621 ; return 0; }
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2624 rm -rf conftest*
2625 gt_cv_func_gnugettext1_libintl=yes
2626 else
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2629 rm -rf conftest*
2630 gt_cv_func_gnugettext1_libintl=no
2632 rm -f conftest*
2633 LIBS="$gt_save_LIBS"
2636 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2639 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2640 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2641 && test "$PACKAGE" != gettext; }; then
2642 cat >> confdefs.h <<\EOF
2643 #define HAVE_GETTEXT 1
2647 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2648 INTLLIBS="-lintl $LIBICONV"
2651 gt_save_LIBS="$LIBS"
2652 LIBS="$LIBS $INTLLIBS"
2653 for ac_func in dcgettext
2655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2656 echo "configure:2657: checking for $ac_func" >&5
2657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2659 else
2660 cat > conftest.$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2663 /* System header to define __stub macros and hopefully few prototypes,
2664 which can conflict with char $ac_func(); below. */
2665 #include <assert.h>
2666 /* Override any gcc2 internal prototype to avoid an error. */
2667 /* We use char because int might match the return type of a gcc2
2668 builtin and then its argument prototype would still apply. */
2669 char $ac_func();
2671 int main() {
2673 /* The GNU C library defines this for functions which it implements
2674 to always fail with ENOSYS. Some functions are actually named
2675 something starting with __ and the normal name is an alias. */
2676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2677 choke me
2678 #else
2679 $ac_func();
2680 #endif
2682 ; return 0; }
2684 if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2685 rm -rf conftest*
2686 eval "ac_cv_func_$ac_func=yes"
2687 else
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2690 rm -rf conftest*
2691 eval "ac_cv_func_$ac_func=no"
2693 rm -f conftest*
2696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2697 echo "$ac_t""yes" 1>&6
2698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2699 cat >> confdefs.h <<EOF
2700 #define $ac_tr_func 1
2703 else
2704 echo "$ac_t""no" 1>&6
2706 done
2708 LIBS="$gt_save_LIBS"
2710 # Extract the first word of "msgfmt", so it can be a program name with args.
2711 set dummy msgfmt; ac_word=$2
2712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2713 echo "configure:2714: checking for $ac_word" >&5
2714 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2716 else
2717 case "$MSGFMT" in
2719 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2723 for ac_dir in $PATH; do
2724 test -z "$ac_dir" && ac_dir=.
2725 if test -f $ac_dir/$ac_word; then
2726 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2727 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2728 break
2731 done
2732 IFS="$ac_save_ifs"
2733 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2735 esac
2737 MSGFMT="$ac_cv_path_MSGFMT"
2738 if test "$MSGFMT" != ":"; then
2739 echo "$ac_t""$MSGFMT" 1>&6
2740 else
2741 echo "$ac_t""no" 1>&6
2744 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2745 set dummy gmsgfmt; ac_word=$2
2746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2747 echo "configure:2748: checking for $ac_word" >&5
2748 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2750 else
2751 case "$GMSGFMT" in
2753 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2755 ?:/*)
2756 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2760 ac_dummy="$PATH"
2761 for ac_dir in $ac_dummy; do
2762 test -z "$ac_dir" && ac_dir=.
2763 if test -f $ac_dir/$ac_word; then
2764 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2765 break
2767 done
2768 IFS="$ac_save_ifs"
2769 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2771 esac
2773 GMSGFMT="$ac_cv_path_GMSGFMT"
2774 if test -n "$GMSGFMT"; then
2775 echo "$ac_t""$GMSGFMT" 1>&6
2776 else
2777 echo "$ac_t""no" 1>&6
2781 # Extract the first word of "xgettext", so it can be a program name with args.
2782 set dummy xgettext; ac_word=$2
2783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2784 echo "configure:2785: checking for $ac_word" >&5
2785 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2787 else
2788 case "$XGETTEXT" in
2790 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2794 for ac_dir in $PATH; do
2795 test -z "$ac_dir" && ac_dir=.
2796 if test -f $ac_dir/$ac_word; then
2797 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2798 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2799 break
2802 done
2803 IFS="$ac_save_ifs"
2804 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2806 esac
2808 XGETTEXT="$ac_cv_path_XGETTEXT"
2809 if test "$XGETTEXT" != ":"; then
2810 echo "$ac_t""$XGETTEXT" 1>&6
2811 else
2812 echo "$ac_t""no" 1>&6
2816 CATOBJEXT=.gmo
2819 else
2820 echo "$ac_t""no" 1>&6
2824 if test "$CATOBJEXT" = "NONE"; then
2825 nls_cv_use_gnu_gettext=yes
2829 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2830 INTLOBJS="\$(GETTOBJS)"
2831 # Extract the first word of "msgfmt", so it can be a program name with args.
2832 set dummy msgfmt; ac_word=$2
2833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_word" >&5
2835 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2837 else
2838 case "$MSGFMT" in
2840 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2844 for ac_dir in $PATH; do
2845 test -z "$ac_dir" && ac_dir=.
2846 if test -f $ac_dir/$ac_word; then
2847 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2848 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2849 break
2852 done
2853 IFS="$ac_save_ifs"
2854 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2856 esac
2858 MSGFMT="$ac_cv_path_MSGFMT"
2859 if test "$MSGFMT" != ":"; then
2860 echo "$ac_t""$MSGFMT" 1>&6
2861 else
2862 echo "$ac_t""no" 1>&6
2865 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2866 set dummy gmsgfmt; ac_word=$2
2867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2868 echo "configure:2869: checking for $ac_word" >&5
2869 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2871 else
2872 case "$GMSGFMT" in
2874 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2876 ?:/*)
2877 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2881 ac_dummy="$PATH"
2882 for ac_dir in $ac_dummy; do
2883 test -z "$ac_dir" && ac_dir=.
2884 if test -f $ac_dir/$ac_word; then
2885 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2886 break
2888 done
2889 IFS="$ac_save_ifs"
2890 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2892 esac
2894 GMSGFMT="$ac_cv_path_GMSGFMT"
2895 if test -n "$GMSGFMT"; then
2896 echo "$ac_t""$GMSGFMT" 1>&6
2897 else
2898 echo "$ac_t""no" 1>&6
2901 # Extract the first word of "xgettext", so it can be a program name with args.
2902 set dummy xgettext; ac_word=$2
2903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2904 echo "configure:2905: checking for $ac_word" >&5
2905 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2907 else
2908 case "$XGETTEXT" in
2910 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2914 for ac_dir in $PATH; do
2915 test -z "$ac_dir" && ac_dir=.
2916 if test -f $ac_dir/$ac_word; then
2917 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2918 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2919 break
2922 done
2923 IFS="$ac_save_ifs"
2924 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2926 esac
2928 XGETTEXT="$ac_cv_path_XGETTEXT"
2929 if test "$XGETTEXT" != ":"; then
2930 echo "$ac_t""$XGETTEXT" 1>&6
2931 else
2932 echo "$ac_t""no" 1>&6
2936 BUILD_INCLUDED_LIBINTL=yes
2937 USE_INCLUDED_LIBINTL=yes
2938 CATOBJEXT=.gmo
2939 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2940 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2943 if test "$GMSGFMT" != ":"; then
2944 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2946 else
2947 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2948 GMSGFMT=":"
2952 if test "$XGETTEXT" != ":"; then
2953 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2955 else
2956 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2957 XGETTEXT=":"
2961 POSUB=po
2966 if test "$PACKAGE" = gettext; then
2967 BUILD_INCLUDED_LIBINTL=yes
2970 for ac_prog in bison
2972 # Extract the first word of "$ac_prog", so it can be a program name with args.
2973 set dummy $ac_prog; ac_word=$2
2974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2975 echo "configure:2976: checking for $ac_word" >&5
2976 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2978 else
2979 if test -n "$INTLBISON"; then
2980 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2981 else
2982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2983 ac_dummy="$PATH"
2984 for ac_dir in $ac_dummy; do
2985 test -z "$ac_dir" && ac_dir=.
2986 if test -f $ac_dir/$ac_word; then
2987 ac_cv_prog_INTLBISON="$ac_prog"
2988 break
2990 done
2991 IFS="$ac_save_ifs"
2994 INTLBISON="$ac_cv_prog_INTLBISON"
2995 if test -n "$INTLBISON"; then
2996 echo "$ac_t""$INTLBISON" 1>&6
2997 else
2998 echo "$ac_t""no" 1>&6
3001 test -n "$INTLBISON" && break
3002 done
3004 if test -z "$INTLBISON"; then
3005 ac_verc_fail=yes
3006 else
3007 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3008 echo "configure:3009: checking version of bison" >&5
3009 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3010 case $ac_prog_version in
3011 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3012 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3013 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3014 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3015 esac
3016 echo "$ac_t""$ac_prog_version" 1>&6
3018 if test $ac_verc_fail = yes; then
3019 INTLBISON=:
3022 for lang in $ALL_LINGUAS; do
3023 GMOFILES="$GMOFILES $lang.gmo"
3024 POFILES="$POFILES $lang.po"
3025 done
3037 nls_cv_header_intl=
3038 nls_cv_header_libgt=
3040 DATADIRNAME=share
3043 INSTOBJEXT=.mo
3046 GENCAT=gencat
3050 if test "x$CATOBJEXT" != "x"; then
3051 if test "x$ALL_LINGUAS" = "x"; then
3052 LINGUAS=
3053 else
3054 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3055 echo "configure:3056: checking for catalogs to be installed" >&5
3056 NEW_LINGUAS=
3057 for presentlang in $ALL_LINGUAS; do
3058 useit=no
3059 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3060 # Use the presentlang catalog if desiredlang is
3061 # a. equal to presentlang, or
3062 # b. a variant of presentlang (because in this case,
3063 # presentlang can be used as a fallback for messages
3064 # which are not translated in the desiredlang catalog).
3065 case "$desiredlang" in
3066 "$presentlang"*) useit=yes;;
3067 esac
3068 done
3069 if test $useit = yes; then
3070 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3072 done
3073 LINGUAS=$NEW_LINGUAS
3074 echo "$ac_t""$LINGUAS" 1>&6
3077 if test -n "$LINGUAS"; then
3078 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3082 MKINSTALLDIRS=
3083 if test -n "$ac_aux_dir"; then
3084 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3086 if test -z "$MKINSTALLDIRS"; then
3087 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3091 INTL_LIBTOOL_SUFFIX_PREFIX=
3095 # Find a good install program. We prefer a C program (faster),
3096 # so one script is as good as another. But avoid the broken or
3097 # incompatible versions:
3098 # SysV /etc/install, /usr/sbin/install
3099 # SunOS /usr/etc/install
3100 # IRIX /sbin/install
3101 # AIX /bin/install
3102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3105 # ./install, which can be erroneously created by make from ./install.sh.
3106 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3107 echo "configure:3108: checking for a BSD compatible install" >&5
3108 if test -z "$INSTALL"; then
3109 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3111 else
3112 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3113 for ac_dir in $PATH; do
3114 # Account for people who put trailing slashes in PATH elements.
3115 case "$ac_dir/" in
3116 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3118 # OSF1 and SCO ODT 3.0 have their own names for install.
3119 # Don't use installbsd from OSF since it installs stuff as root
3120 # by default.
3121 for ac_prog in ginstall scoinst install; do
3122 if test -f $ac_dir/$ac_prog; then
3123 if test $ac_prog = install &&
3124 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3125 # AIX install. It has an incompatible calling convention.
3127 else
3128 ac_cv_path_install="$ac_dir/$ac_prog -c"
3129 break 2
3132 done
3134 esac
3135 done
3136 IFS="$ac_save_IFS"
3139 if test "${ac_cv_path_install+set}" = set; then
3140 INSTALL="$ac_cv_path_install"
3141 else
3142 # As a last resort, use the slow shell script. We don't cache a
3143 # path for INSTALL within a source directory, because that will
3144 # break other packages using the cache if that directory is
3145 # removed, or if the path is relative.
3146 INSTALL="$ac_install_sh"
3149 echo "$ac_t""$INSTALL" 1>&6
3151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3152 # It thinks the first close brace ends the variable substitution.
3153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3160 case x"${target_os}" in
3162 SYS=unknown
3164 xlinux*)
3165 SYS=linux
3167 xbsdi*)
3168 SYS=bsdi
3169 save_CFLAGS="${save_CFLAGS} -pthread"
3170 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3171 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3173 x*bsd*)
3174 SYS="${target_os}"
3175 save_CFLAGS="${save_CFLAGS} -pthread"
3177 xdarwin*)
3178 SYS=darwin
3179 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3181 x*mingw32*)
3182 SYS=mingw32
3183 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}windres; ac_word=$2
3185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3186 echo "configure:3187: checking for $ac_word" >&5
3187 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3189 else
3190 if test -n "$WINDRES"; then
3191 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3192 else
3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3194 ac_dummy="$PATH"
3195 for ac_dir in $ac_dummy; do
3196 test -z "$ac_dir" && ac_dir=.
3197 if test -f $ac_dir/$ac_word; then
3198 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3199 break
3201 done
3202 IFS="$ac_save_ifs"
3205 WINDRES="$ac_cv_prog_WINDRES"
3206 if test -n "$WINDRES"; then
3207 echo "$ac_t""$WINDRES" 1>&6
3208 else
3209 echo "$ac_t""no" 1>&6
3213 if test -z "$ac_cv_prog_WINDRES"; then
3214 if test -n "$ac_tool_prefix"; then
3215 # Extract the first word of "windres", so it can be a program name with args.
3216 set dummy windres; ac_word=$2
3217 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3218 echo "configure:3219: checking for $ac_word" >&5
3219 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3221 else
3222 if test -n "$WINDRES"; then
3223 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3224 else
3225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3226 ac_dummy="$PATH"
3227 for ac_dir in $ac_dummy; do
3228 test -z "$ac_dir" && ac_dir=.
3229 if test -f $ac_dir/$ac_word; then
3230 ac_cv_prog_WINDRES="windres"
3231 break
3233 done
3234 IFS="$ac_save_ifs"
3235 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3238 WINDRES="$ac_cv_prog_WINDRES"
3239 if test -n "$WINDRES"; then
3240 echo "$ac_t""$WINDRES" 1>&6
3241 else
3242 echo "$ac_t""no" 1>&6
3245 else
3246 WINDRES=":"
3250 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3251 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3252 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3253 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3254 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3256 x*nto*)
3257 SYS=nto
3258 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3259 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3261 xbeos)
3262 SYS=beos
3263 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3264 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3265 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3266 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3267 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3270 SYS="${target_os}"
3272 esac
3274 if test x"${SYS}" = xmingw32
3275 then
3276 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3277 else
3278 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3281 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3283 for ac_func in gettimeofday select strerror strtod strtol isatty usleep vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3286 echo "configure:3287: checking for $ac_func" >&5
3287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3289 else
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3293 /* System header to define __stub macros and hopefully few prototypes,
3294 which can conflict with char $ac_func(); below. */
3295 #include <assert.h>
3296 /* Override any gcc2 internal prototype to avoid an error. */
3297 /* We use char because int might match the return type of a gcc2
3298 builtin and then its argument prototype would still apply. */
3299 char $ac_func();
3301 int main() {
3303 /* The GNU C library defines this for functions which it implements
3304 to always fail with ENOSYS. Some functions are actually named
3305 something starting with __ and the normal name is an alias. */
3306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3307 choke me
3308 #else
3309 $ac_func();
3310 #endif
3312 ; return 0; }
3314 if { (eval echo configure:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3315 rm -rf conftest*
3316 eval "ac_cv_func_$ac_func=yes"
3317 else
3318 echo "configure: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3320 rm -rf conftest*
3321 eval "ac_cv_func_$ac_func=no"
3323 rm -f conftest*
3326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3327 echo "$ac_t""yes" 1>&6
3328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3329 cat >> confdefs.h <<EOF
3330 #define $ac_tr_func 1
3333 else
3334 echo "$ac_t""no" 1>&6
3336 done
3339 echo $ac_n "checking for connect""... $ac_c" 1>&6
3340 echo "configure:3341: checking for connect" >&5
3341 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3343 else
3344 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 /* System header to define __stub macros and hopefully few prototypes,
3348 which can conflict with char connect(); below. */
3349 #include <assert.h>
3350 /* Override any gcc2 internal prototype to avoid an error. */
3351 /* We use char because int might match the return type of a gcc2
3352 builtin and then its argument prototype would still apply. */
3353 char connect();
3355 int main() {
3357 /* The GNU C library defines this for functions which it implements
3358 to always fail with ENOSYS. Some functions are actually named
3359 something starting with __ and the normal name is an alias. */
3360 #if defined (__stub_connect) || defined (__stub___connect)
3361 choke me
3362 #else
3363 connect();
3364 #endif
3366 ; return 0; }
3368 if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3369 rm -rf conftest*
3370 eval "ac_cv_func_connect=yes"
3371 else
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3374 rm -rf conftest*
3375 eval "ac_cv_func_connect=no"
3377 rm -f conftest*
3380 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3381 echo "$ac_t""yes" 1>&6
3383 else
3384 echo "$ac_t""no" 1>&6
3386 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3387 echo "configure:3388: checking for connect in -lsocket" >&5
3388 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3391 else
3392 ac_save_LIBS="$LIBS"
3393 LIBS="-lsocket $LIBS"
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 /* Override any gcc2 internal prototype to avoid an error. */
3398 /* We use char because int might match the return type of a gcc2
3399 builtin and then its argument prototype would still apply. */
3400 char connect();
3402 int main() {
3403 connect()
3404 ; return 0; }
3406 if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3407 rm -rf conftest*
3408 eval "ac_cv_lib_$ac_lib_var=yes"
3409 else
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 eval "ac_cv_lib_$ac_lib_var=no"
3415 rm -f conftest*
3416 LIBS="$ac_save_LIBS"
3419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3420 echo "$ac_t""yes" 1>&6
3421 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3422 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3424 else
3425 echo "$ac_t""no" 1>&6
3430 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3431 echo "configure:3432: checking for gethostbyname" >&5
3432 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3434 else
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 /* System header to define __stub macros and hopefully few prototypes,
3439 which can conflict with char gethostbyname(); below. */
3440 #include <assert.h>
3441 /* Override any gcc2 internal prototype to avoid an error. */
3442 /* We use char because int might match the return type of a gcc2
3443 builtin and then its argument prototype would still apply. */
3444 char gethostbyname();
3446 int main() {
3448 /* The GNU C library defines this for functions which it implements
3449 to always fail with ENOSYS. Some functions are actually named
3450 something starting with __ and the normal name is an alias. */
3451 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3452 choke me
3453 #else
3454 gethostbyname();
3455 #endif
3457 ; return 0; }
3459 if { (eval echo configure:3460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3460 rm -rf conftest*
3461 eval "ac_cv_func_gethostbyname=yes"
3462 else
3463 echo "configure: failed program was:" >&5
3464 cat conftest.$ac_ext >&5
3465 rm -rf conftest*
3466 eval "ac_cv_func_gethostbyname=no"
3468 rm -f conftest*
3471 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3472 echo "$ac_t""yes" 1>&6
3474 else
3475 echo "$ac_t""no" 1>&6
3477 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3478 echo "configure:3479: checking for gethostbyname in -lnsl" >&5
3479 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3482 else
3483 ac_save_LIBS="$LIBS"
3484 LIBS="-lnsl $LIBS"
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 /* Override any gcc2 internal prototype to avoid an error. */
3489 /* We use char because int might match the return type of a gcc2
3490 builtin and then its argument prototype would still apply. */
3491 char gethostbyname();
3493 int main() {
3494 gethostbyname()
3495 ; return 0; }
3497 if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3498 rm -rf conftest*
3499 eval "ac_cv_lib_$ac_lib_var=yes"
3500 else
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3503 rm -rf conftest*
3504 eval "ac_cv_lib_$ac_lib_var=no"
3506 rm -f conftest*
3507 LIBS="$ac_save_LIBS"
3510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3512 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3513 else
3514 echo "$ac_t""no" 1>&6
3520 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3521 echo "configure:3522: checking for gethostbyname" >&5
3522 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3524 else
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 /* System header to define __stub macros and hopefully few prototypes,
3529 which can conflict with char gethostbyname(); below. */
3530 #include <assert.h>
3531 /* Override any gcc2 internal prototype to avoid an error. */
3532 /* We use char because int might match the return type of a gcc2
3533 builtin and then its argument prototype would still apply. */
3534 char gethostbyname();
3536 int main() {
3538 /* The GNU C library defines this for functions which it implements
3539 to always fail with ENOSYS. Some functions are actually named
3540 something starting with __ and the normal name is an alias. */
3541 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3542 choke me
3543 #else
3544 gethostbyname();
3545 #endif
3547 ; return 0; }
3549 if { (eval echo configure:3550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3550 rm -rf conftest*
3551 eval "ac_cv_func_gethostbyname=yes"
3552 else
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3555 rm -rf conftest*
3556 eval "ac_cv_func_gethostbyname=no"
3558 rm -f conftest*
3561 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3562 echo "$ac_t""yes" 1>&6
3564 else
3565 echo "$ac_t""no" 1>&6
3567 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3568 echo "configure:3569: checking for gethostbyname in -lbind" >&5
3569 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3572 else
3573 ac_save_LIBS="$LIBS"
3574 LIBS="-lbind $LIBS"
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 /* Override any gcc2 internal prototype to avoid an error. */
3579 /* We use char because int might match the return type of a gcc2
3580 builtin and then its argument prototype would still apply. */
3581 char gethostbyname();
3583 int main() {
3584 gethostbyname()
3585 ; return 0; }
3587 if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3588 rm -rf conftest*
3589 eval "ac_cv_lib_$ac_lib_var=yes"
3590 else
3591 echo "configure: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 rm -rf conftest*
3594 eval "ac_cv_lib_$ac_lib_var=no"
3596 rm -f conftest*
3597 LIBS="$ac_save_LIBS"
3600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3601 echo "$ac_t""yes" 1>&6
3602 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3603 else
3604 echo "$ac_t""no" 1>&6
3610 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3611 echo "configure:3612: checking for nanosleep" >&5
3612 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3614 else
3615 cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 /* System header to define __stub macros and hopefully few prototypes,
3619 which can conflict with char nanosleep(); below. */
3620 #include <assert.h>
3621 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3624 char nanosleep();
3626 int main() {
3628 /* The GNU C library defines this for functions which it implements
3629 to always fail with ENOSYS. Some functions are actually named
3630 something starting with __ and the normal name is an alias. */
3631 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3632 choke me
3633 #else
3634 nanosleep();
3635 #endif
3637 ; return 0; }
3639 if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3640 rm -rf conftest*
3641 eval "ac_cv_func_nanosleep=yes"
3642 else
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3645 rm -rf conftest*
3646 eval "ac_cv_func_nanosleep=no"
3648 rm -f conftest*
3651 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3652 echo "$ac_t""yes" 1>&6
3654 else
3655 echo "$ac_t""no" 1>&6
3657 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3658 echo "configure:3659: checking for nanosleep in -lrt" >&5
3659 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3662 else
3663 ac_save_LIBS="$LIBS"
3664 LIBS="-lrt $LIBS"
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3671 char nanosleep();
3673 int main() {
3674 nanosleep()
3675 ; return 0; }
3677 if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3678 rm -rf conftest*
3679 eval "ac_cv_lib_$ac_lib_var=yes"
3680 else
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3683 rm -rf conftest*
3684 eval "ac_cv_lib_$ac_lib_var=no"
3686 rm -f conftest*
3687 LIBS="$ac_save_LIBS"
3690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3691 echo "$ac_t""yes" 1>&6
3692 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3693 else
3694 echo "$ac_t""no" 1>&6
3696 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3697 echo "configure:3698: checking for nanosleep in -lposix4" >&5
3698 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3700 echo $ac_n "(cached) $ac_c" 1>&6
3701 else
3702 ac_save_LIBS="$LIBS"
3703 LIBS="-lposix4 $LIBS"
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 /* Override any gcc2 internal prototype to avoid an error. */
3708 /* We use char because int might match the return type of a gcc2
3709 builtin and then its argument prototype would still apply. */
3710 char nanosleep();
3712 int main() {
3713 nanosleep()
3714 ; return 0; }
3716 if { (eval echo configure:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3717 rm -rf conftest*
3718 eval "ac_cv_lib_$ac_lib_var=yes"
3719 else
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3722 rm -rf conftest*
3723 eval "ac_cv_lib_$ac_lib_var=no"
3725 rm -f conftest*
3726 LIBS="$ac_save_LIBS"
3729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3730 echo "$ac_t""yes" 1>&6
3731 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3732 else
3733 echo "$ac_t""no" 1>&6
3742 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3743 echo "configure:3744: checking for inet_aton" >&5
3744 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3746 else
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3750 /* System header to define __stub macros and hopefully few prototypes,
3751 which can conflict with char inet_aton(); below. */
3752 #include <assert.h>
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3756 char inet_aton();
3758 int main() {
3760 /* The GNU C library defines this for functions which it implements
3761 to always fail with ENOSYS. Some functions are actually named
3762 something starting with __ and the normal name is an alias. */
3763 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3764 choke me
3765 #else
3766 inet_aton();
3767 #endif
3769 ; return 0; }
3771 if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3772 rm -rf conftest*
3773 eval "ac_cv_func_inet_aton=yes"
3774 else
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3777 rm -rf conftest*
3778 eval "ac_cv_func_inet_aton=no"
3780 rm -f conftest*
3783 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3784 echo "$ac_t""yes" 1>&6
3786 else
3787 echo "$ac_t""no" 1>&6
3789 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3790 echo "configure:3791: checking for inet_aton in -lresolv" >&5
3791 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3794 else
3795 ac_save_LIBS="$LIBS"
3796 LIBS="-lresolv $LIBS"
3797 cat > conftest.$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 /* Override any gcc2 internal prototype to avoid an error. */
3801 /* We use char because int might match the return type of a gcc2
3802 builtin and then its argument prototype would still apply. */
3803 char inet_aton();
3805 int main() {
3806 inet_aton()
3807 ; return 0; }
3809 if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3810 rm -rf conftest*
3811 eval "ac_cv_lib_$ac_lib_var=yes"
3812 else
3813 echo "configure: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3815 rm -rf conftest*
3816 eval "ac_cv_lib_$ac_lib_var=no"
3818 rm -f conftest*
3819 LIBS="$ac_save_LIBS"
3822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3823 echo "$ac_t""yes" 1>&6
3824 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3825 else
3826 echo "$ac_t""no" 1>&6
3832 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3833 echo "configure:3834: checking for textdomain" >&5
3834 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3836 else
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 /* System header to define __stub macros and hopefully few prototypes,
3841 which can conflict with char textdomain(); below. */
3842 #include <assert.h>
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3846 char textdomain();
3848 int main() {
3850 /* The GNU C library defines this for functions which it implements
3851 to always fail with ENOSYS. Some functions are actually named
3852 something starting with __ and the normal name is an alias. */
3853 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3854 choke me
3855 #else
3856 textdomain();
3857 #endif
3859 ; return 0; }
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3862 rm -rf conftest*
3863 eval "ac_cv_func_textdomain=yes"
3864 else
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3867 rm -rf conftest*
3868 eval "ac_cv_func_textdomain=no"
3870 rm -f conftest*
3873 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3874 echo "$ac_t""yes" 1>&6
3876 else
3877 echo "$ac_t""no" 1>&6
3879 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3880 echo "configure:3881: checking for textdomain in -lintl" >&5
3881 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3884 else
3885 ac_save_LIBS="$LIBS"
3886 LIBS="-lintl $LIBS"
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3890 /* Override any gcc2 internal prototype to avoid an error. */
3891 /* We use char because int might match the return type of a gcc2
3892 builtin and then its argument prototype would still apply. */
3893 char textdomain();
3895 int main() {
3896 textdomain()
3897 ; return 0; }
3899 if { (eval echo configure:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3900 rm -rf conftest*
3901 eval "ac_cv_lib_$ac_lib_var=yes"
3902 else
3903 echo "configure: failed program was:" >&5
3904 cat conftest.$ac_ext >&5
3905 rm -rf conftest*
3906 eval "ac_cv_lib_$ac_lib_var=no"
3908 rm -f conftest*
3909 LIBS="$ac_save_LIBS"
3912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3913 echo "$ac_t""yes" 1>&6
3914 save_LDFLAGS="${save_LDFLAGS} -lintl"
3915 else
3916 echo "$ac_t""no" 1>&6
3923 NEED_GETOPT=0
3924 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3925 echo "configure:3926: checking for getopt_long" >&5
3926 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3928 else
3929 cat > conftest.$ac_ext <<EOF
3930 #line 3931 "configure"
3931 #include "confdefs.h"
3932 /* System header to define __stub macros and hopefully few prototypes,
3933 which can conflict with char getopt_long(); below. */
3934 #include <assert.h>
3935 /* Override any gcc2 internal prototype to avoid an error. */
3936 /* We use char because int might match the return type of a gcc2
3937 builtin and then its argument prototype would still apply. */
3938 char getopt_long();
3940 int main() {
3942 /* The GNU C library defines this for functions which it implements
3943 to always fail with ENOSYS. Some functions are actually named
3944 something starting with __ and the normal name is an alias. */
3945 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3946 choke me
3947 #else
3948 getopt_long();
3949 #endif
3951 ; return 0; }
3953 if { (eval echo configure:3954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3954 rm -rf conftest*
3955 eval "ac_cv_func_getopt_long=yes"
3956 else
3957 echo "configure: failed program was:" >&5
3958 cat conftest.$ac_ext >&5
3959 rm -rf conftest*
3960 eval "ac_cv_func_getopt_long=no"
3962 rm -f conftest*
3965 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3966 echo "$ac_t""yes" 1>&6
3967 cat >> confdefs.h <<\EOF
3968 #define HAVE_GETOPT_LONG 1
3971 else
3972 echo "$ac_t""no" 1>&6
3973 # FreeBSD has a gnugetopt library for this:
3974 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3975 echo "configure:3976: checking for getopt_long in -lgnugetopt" >&5
3976 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3979 else
3980 ac_save_LIBS="$LIBS"
3981 LIBS="-lgnugetopt $LIBS"
3982 cat > conftest.$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3985 /* Override any gcc2 internal prototype to avoid an error. */
3986 /* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */
3988 char getopt_long();
3990 int main() {
3991 getopt_long()
3992 ; return 0; }
3994 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3995 rm -rf conftest*
3996 eval "ac_cv_lib_$ac_lib_var=yes"
3997 else
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4000 rm -rf conftest*
4001 eval "ac_cv_lib_$ac_lib_var=no"
4003 rm -f conftest*
4004 LIBS="$ac_save_LIBS"
4007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4008 echo "$ac_t""yes" 1>&6
4009 cat >> confdefs.h <<\EOF
4010 #define HAVE_GETOPT_LONG 1
4012 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4013 else
4014 echo "$ac_t""no" 1>&6
4015 NEED_GETOPT=1
4021 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4022 echo "configure:4023: checking return type of signal handlers" >&5
4023 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4025 else
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 #include <sys/types.h>
4030 #include <signal.h>
4031 #ifdef signal
4032 #undef signal
4033 #endif
4034 #ifdef __cplusplus
4035 extern "C" void (*signal (int, void (*)(int)))(int);
4036 #else
4037 void (*signal ()) ();
4038 #endif
4040 int main() {
4041 int i;
4042 ; return 0; }
4044 if { (eval echo configure:4045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4045 rm -rf conftest*
4046 ac_cv_type_signal=void
4047 else
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 rm -rf conftest*
4051 ac_cv_type_signal=int
4053 rm -f conftest*
4056 echo "$ac_t""$ac_cv_type_signal" 1>&6
4057 cat >> confdefs.h <<EOF
4058 #define RETSIGTYPE $ac_cv_type_signal
4062 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4063 echo "configure:4064: checking for dlopen in -ldl" >&5
4064 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4067 else
4068 ac_save_LIBS="$LIBS"
4069 LIBS="-ldl $LIBS"
4070 cat > conftest.$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4073 /* Override any gcc2 internal prototype to avoid an error. */
4074 /* We use char because int might match the return type of a gcc2
4075 builtin and then its argument prototype would still apply. */
4076 char dlopen();
4078 int main() {
4079 dlopen()
4080 ; return 0; }
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4083 rm -rf conftest*
4084 eval "ac_cv_lib_$ac_lib_var=yes"
4085 else
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4088 rm -rf conftest*
4089 eval "ac_cv_lib_$ac_lib_var=no"
4091 rm -f conftest*
4092 LIBS="$ac_save_LIBS"
4095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4096 echo "$ac_t""yes" 1>&6
4097 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4098 else
4099 echo "$ac_t""no" 1>&6
4102 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4103 echo "configure:4104: checking for cos in -lm" >&5
4104 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4107 else
4108 ac_save_LIBS="$LIBS"
4109 LIBS="-lm $LIBS"
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 /* Override any gcc2 internal prototype to avoid an error. */
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4116 char cos();
4118 int main() {
4119 cos()
4120 ; return 0; }
4122 if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4123 rm -rf conftest*
4124 eval "ac_cv_lib_$ac_lib_var=yes"
4125 else
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4128 rm -rf conftest*
4129 eval "ac_cv_lib_$ac_lib_var=no"
4131 rm -f conftest*
4132 LIBS="$ac_save_LIBS"
4135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4136 echo "$ac_t""yes" 1>&6
4137 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4138 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4139 else
4140 echo "$ac_t""no" 1>&6
4143 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4144 echo "configure:4145: checking for pow in -lm" >&5
4145 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4146 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4148 else
4149 ac_save_LIBS="$LIBS"
4150 LIBS="-lm $LIBS"
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4154 /* Override any gcc2 internal prototype to avoid an error. */
4155 /* We use char because int might match the return type of a gcc2
4156 builtin and then its argument prototype would still apply. */
4157 char pow();
4159 int main() {
4160 pow()
4161 ; return 0; }
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4164 rm -rf conftest*
4165 eval "ac_cv_lib_$ac_lib_var=yes"
4166 else
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 rm -rf conftest*
4170 eval "ac_cv_lib_$ac_lib_var=no"
4172 rm -f conftest*
4173 LIBS="$ac_save_LIBS"
4176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4177 echo "$ac_t""yes" 1>&6
4178 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4179 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4180 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4181 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4183 else
4184 echo "$ac_t""no" 1>&6
4188 THREAD_LIB=error
4189 if test "x${THREAD_LIB}" = xerror; then
4190 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4191 echo "configure:4192: checking for pthread_attr_init in -lpthread" >&5
4192 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4195 else
4196 ac_save_LIBS="$LIBS"
4197 LIBS="-lpthread $LIBS"
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 /* Override any gcc2 internal prototype to avoid an error. */
4202 /* We use char because int might match the return type of a gcc2
4203 builtin and then its argument prototype would still apply. */
4204 char pthread_attr_init();
4206 int main() {
4207 pthread_attr_init()
4208 ; return 0; }
4210 if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4211 rm -rf conftest*
4212 eval "ac_cv_lib_$ac_lib_var=yes"
4213 else
4214 echo "configure: failed program was:" >&5
4215 cat conftest.$ac_ext >&5
4216 rm -rf conftest*
4217 eval "ac_cv_lib_$ac_lib_var=no"
4219 rm -f conftest*
4220 LIBS="$ac_save_LIBS"
4223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4224 echo "$ac_t""yes" 1>&6
4225 THREAD_LIB="-lpthread"
4226 else
4227 echo "$ac_t""no" 1>&6
4231 if test "x${THREAD_LIB}" = xerror; then
4232 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4233 echo "configure:4234: checking for pthread_attr_init in -lpthreads" >&5
4234 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4237 else
4238 ac_save_LIBS="$LIBS"
4239 LIBS="-lpthreads $LIBS"
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4243 /* Override any gcc2 internal prototype to avoid an error. */
4244 /* We use char because int might match the return type of a gcc2
4245 builtin and then its argument prototype would still apply. */
4246 char pthread_attr_init();
4248 int main() {
4249 pthread_attr_init()
4250 ; return 0; }
4252 if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4253 rm -rf conftest*
4254 eval "ac_cv_lib_$ac_lib_var=yes"
4255 else
4256 echo "configure: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4258 rm -rf conftest*
4259 eval "ac_cv_lib_$ac_lib_var=no"
4261 rm -f conftest*
4262 LIBS="$ac_save_LIBS"
4265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4266 echo "$ac_t""yes" 1>&6
4267 THREAD_LIB="-lpthreads"
4268 else
4269 echo "$ac_t""no" 1>&6
4273 if test "x${THREAD_LIB}" = xerror; then
4274 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4275 echo "configure:4276: checking for pthread_attr_init in -lc_r" >&5
4276 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4279 else
4280 ac_save_LIBS="$LIBS"
4281 LIBS="-lc_r $LIBS"
4282 cat > conftest.$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4285 /* Override any gcc2 internal prototype to avoid an error. */
4286 /* We use char because int might match the return type of a gcc2
4287 builtin and then its argument prototype would still apply. */
4288 char pthread_attr_init();
4290 int main() {
4291 pthread_attr_init()
4292 ; return 0; }
4294 if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4295 rm -rf conftest*
4296 eval "ac_cv_lib_$ac_lib_var=yes"
4297 else
4298 echo "configure: failed program was:" >&5
4299 cat conftest.$ac_ext >&5
4300 rm -rf conftest*
4301 eval "ac_cv_lib_$ac_lib_var=no"
4303 rm -f conftest*
4304 LIBS="$ac_save_LIBS"
4307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4308 echo "$ac_t""yes" 1>&6
4309 THREAD_LIB="-lc_r"
4310 else
4311 echo "$ac_t""no" 1>&6
4315 if test "x${THREAD_LIB}" = xerror; then
4316 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4317 echo "configure:4318: checking for pthread_attr_init" >&5
4318 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4320 else
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 /* System header to define __stub macros and hopefully few prototypes,
4325 which can conflict with char pthread_attr_init(); below. */
4326 #include <assert.h>
4327 /* Override any gcc2 internal prototype to avoid an error. */
4328 /* We use char because int might match the return type of a gcc2
4329 builtin and then its argument prototype would still apply. */
4330 char pthread_attr_init();
4332 int main() {
4334 /* The GNU C library defines this for functions which it implements
4335 to always fail with ENOSYS. Some functions are actually named
4336 something starting with __ and the normal name is an alias. */
4337 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4338 choke me
4339 #else
4340 pthread_attr_init();
4341 #endif
4343 ; return 0; }
4345 if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4346 rm -rf conftest*
4347 eval "ac_cv_func_pthread_attr_init=yes"
4348 else
4349 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4351 rm -rf conftest*
4352 eval "ac_cv_func_pthread_attr_init=no"
4354 rm -f conftest*
4357 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4358 echo "$ac_t""yes" 1>&6
4360 else
4361 echo "$ac_t""no" 1>&6
4364 THREAD_LIB=""
4367 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4368 echo "configure:4369: checking for cthread_fork in -lthreads" >&5
4369 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4372 else
4373 ac_save_LIBS="$LIBS"
4374 LIBS="-lthreads $LIBS"
4375 cat > conftest.$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4381 char cthread_fork();
4383 int main() {
4384 cthread_fork()
4385 ; return 0; }
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388 rm -rf conftest*
4389 eval "ac_cv_lib_$ac_lib_var=yes"
4390 else
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 rm -rf conftest*
4394 eval "ac_cv_lib_$ac_lib_var=no"
4396 rm -f conftest*
4397 LIBS="$ac_save_LIBS"
4400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4402 THREAD_LIB="-lthreads"
4403 else
4404 echo "$ac_t""no" 1>&6
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4411 #include <pthread.h>
4413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4414 egrep "pthread_cond_t" >/dev/null 2>&1; then
4415 rm -rf conftest*
4417 cat >> confdefs.h <<\EOF
4418 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4422 rm -f conftest*
4424 cat > conftest.$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4427 #include <strings.h>
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 egrep "strncasecmp" >/dev/null 2>&1; then
4431 rm -rf conftest*
4433 cat >> confdefs.h <<\EOF
4434 #define STRNCASECMP_IN_STRINGS_H 1
4438 rm -f conftest*
4441 for ac_hdr in getopt.h strings.h
4443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4445 echo "configure:4446: checking for $ac_hdr" >&5
4446 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4448 else
4449 cat > conftest.$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4452 #include <$ac_hdr>
4454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4455 { (eval echo configure:4456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4457 if test -z "$ac_err"; then
4458 rm -rf conftest*
4459 eval "ac_cv_header_$ac_safe=yes"
4460 else
4461 echo "$ac_err" >&5
4462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4464 rm -rf conftest*
4465 eval "ac_cv_header_$ac_safe=no"
4467 rm -f conftest*
4469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4470 echo "$ac_t""yes" 1>&6
4471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4472 cat >> confdefs.h <<EOF
4473 #define $ac_tr_hdr 1
4476 else
4477 echo "$ac_t""no" 1>&6
4479 done
4481 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4485 echo "configure:4486: checking for $ac_hdr" >&5
4486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4488 else
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4492 #include <$ac_hdr>
4494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4495 { (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4497 if test -z "$ac_err"; then
4498 rm -rf conftest*
4499 eval "ac_cv_header_$ac_safe=yes"
4500 else
4501 echo "$ac_err" >&5
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4504 rm -rf conftest*
4505 eval "ac_cv_header_$ac_safe=no"
4507 rm -f conftest*
4509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4512 cat >> confdefs.h <<EOF
4513 #define $ac_tr_hdr 1
4516 else
4517 echo "$ac_t""no" 1>&6
4519 done
4521 for ac_hdr in dlfcn.h image.h
4523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4525 echo "configure:4526: checking for $ac_hdr" >&5
4526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4528 else
4529 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4532 #include <$ac_hdr>
4534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4535 { (eval echo configure:4536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4537 if test -z "$ac_err"; then
4538 rm -rf conftest*
4539 eval "ac_cv_header_$ac_safe=yes"
4540 else
4541 echo "$ac_err" >&5
4542 echo "configure: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4544 rm -rf conftest*
4545 eval "ac_cv_header_$ac_safe=no"
4547 rm -f conftest*
4549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4550 echo "$ac_t""yes" 1>&6
4551 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4552 cat >> confdefs.h <<EOF
4553 #define $ac_tr_hdr 1
4556 else
4557 echo "$ac_t""no" 1>&6
4559 done
4561 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4565 echo "configure:4566: checking for $ac_hdr" >&5
4566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4568 else
4569 cat > conftest.$ac_ext <<EOF
4570 #line 4571 "configure"
4571 #include "confdefs.h"
4572 #include <$ac_hdr>
4574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4575 { (eval echo configure:4576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4577 if test -z "$ac_err"; then
4578 rm -rf conftest*
4579 eval "ac_cv_header_$ac_safe=yes"
4580 else
4581 echo "$ac_err" >&5
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4584 rm -rf conftest*
4585 eval "ac_cv_header_$ac_safe=no"
4587 rm -f conftest*
4589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4590 echo "$ac_t""yes" 1>&6
4591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4592 cat >> confdefs.h <<EOF
4593 #define $ac_tr_hdr 1
4596 else
4597 echo "$ac_t""no" 1>&6
4599 done
4601 for ac_hdr in machine/param.h sys/shm.h
4603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_hdr" >&5
4606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4608 else
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 #include <$ac_hdr>
4614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4615 { (eval echo configure:4616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4617 if test -z "$ac_err"; then
4618 rm -rf conftest*
4619 eval "ac_cv_header_$ac_safe=yes"
4620 else
4621 echo "$ac_err" >&5
4622 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4624 rm -rf conftest*
4625 eval "ac_cv_header_$ac_safe=no"
4627 rm -f conftest*
4629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4630 echo "$ac_t""yes" 1>&6
4631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4632 cat >> confdefs.h <<EOF
4633 #define $ac_tr_hdr 1
4636 else
4637 echo "$ac_t""no" 1>&6
4639 done
4641 for ac_hdr in linux/version.h
4643 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4645 echo "configure:4646: checking for $ac_hdr" >&5
4646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4648 else
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 #include <$ac_hdr>
4654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4655 { (eval echo configure:4656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4657 if test -z "$ac_err"; then
4658 rm -rf conftest*
4659 eval "ac_cv_header_$ac_safe=yes"
4660 else
4661 echo "$ac_err" >&5
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4664 rm -rf conftest*
4665 eval "ac_cv_header_$ac_safe=no"
4667 rm -f conftest*
4669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4670 echo "$ac_t""yes" 1>&6
4671 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4672 cat >> confdefs.h <<EOF
4673 #define $ac_tr_hdr 1
4676 else
4677 echo "$ac_t""no" 1>&6
4679 done
4682 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4683 echo "configure:4684: checking whether time.h and sys/time.h may both be included" >&5
4684 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4686 else
4687 cat > conftest.$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4690 #include <sys/types.h>
4691 #include <sys/time.h>
4692 #include <time.h>
4693 int main() {
4694 struct tm *tp;
4695 ; return 0; }
4697 if { (eval echo configure:4698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4698 rm -rf conftest*
4699 ac_cv_header_time=yes
4700 else
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4703 rm -rf conftest*
4704 ac_cv_header_time=no
4706 rm -f conftest*
4709 echo "$ac_t""$ac_cv_header_time" 1>&6
4710 if test $ac_cv_header_time = yes; then
4711 cat >> confdefs.h <<\EOF
4712 #define TIME_WITH_SYS_TIME 1
4718 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4720 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4722 echo "configure:4723: checking for $ac_hdr" >&5
4723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4725 else
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729 #include <$ac_hdr>
4731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4732 { (eval echo configure:4733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4734 if test -z "$ac_err"; then
4735 rm -rf conftest*
4736 eval "ac_cv_header_$ac_safe=yes"
4737 else
4738 echo "$ac_err" >&5
4739 echo "configure: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4741 rm -rf conftest*
4742 eval "ac_cv_header_$ac_safe=no"
4744 rm -f conftest*
4746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4747 echo "$ac_t""yes" 1>&6
4748 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4749 cat >> confdefs.h <<EOF
4750 #define $ac_tr_hdr 1
4753 else
4754 echo "$ac_t""no" 1>&6
4756 done
4759 if test x$SYS != xmingw32
4760 then
4761 if test x$x_includes = xNONE; then
4762 x_includes=/usr/X11R6/include
4764 if test x$x_libraries = xNONE; then
4765 x_libraries=/usr/X11R6/lib
4767 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4768 for ac_hdr in X11/extensions/dpms.h
4770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4772 echo "configure:4773: checking for $ac_hdr" >&5
4773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4775 else
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 #include <$ac_hdr>
4781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4782 { (eval echo configure:4783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4784 if test -z "$ac_err"; then
4785 rm -rf conftest*
4786 eval "ac_cv_header_$ac_safe=yes"
4787 else
4788 echo "$ac_err" >&5
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4791 rm -rf conftest*
4792 eval "ac_cv_header_$ac_safe=no"
4794 rm -f conftest*
4796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4797 echo "$ac_t""yes" 1>&6
4798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4799 cat >> confdefs.h <<EOF
4800 #define $ac_tr_hdr 1
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4806 #include <X11/extensions/dpms.h>
4808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4809 egrep "DPMSInfo" >/dev/null 2>&1; then
4810 rm -rf conftest*
4812 cat >> confdefs.h <<\EOF
4813 #define DPMSINFO_IN_DPMS_H 1
4818 rm -f conftest*
4821 else
4822 echo "$ac_t""no" 1>&6
4824 done
4826 CPPFLAGS="$save_CPPFLAGS"
4829 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4830 echo "configure:4831: checking for ntohl in sys/param.h" >&5
4831 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4833 else
4834 CFLAGS="${save_CFLAGS} -Wall -Werror"
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 #include <sys/param.h>
4839 int main() {
4840 void foo() { int meuh; ntohl(meuh); }
4841 ; return 0; }
4843 if { (eval echo configure:4844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4844 rm -rf conftest*
4845 ac_cv_c_ntohl_sys_param_h=yes
4846 else
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4849 rm -rf conftest*
4850 ac_cv_c_ntohl_sys_param_h=no
4852 rm -f conftest*
4855 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4856 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4857 cat >> confdefs.h <<\EOF
4858 #define NTOHL_IN_SYS_PARAM_H 1
4863 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4864 echo "configure:4865: checking if \$CC accepts -finline-limit" >&5
4865 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4867 else
4868 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4873 int main() {
4875 ; return 0; }
4877 if { (eval echo configure:4878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4878 rm -rf conftest*
4879 ac_cv_c_inline_limit=yes
4880 else
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4883 rm -rf conftest*
4884 ac_cv_c_inline_limit=no
4886 rm -f conftest*
4889 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4890 if test x"$ac_cv_c_inline_limit" != x"no"; then
4891 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4894 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4895 echo "configure:4896: checking if \$CC accepts -Wall -Winline" >&5
4896 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4898 else
4899 CFLAGS="${save_CFLAGS} -Wall -Winline"
4900 cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4904 int main() {
4906 ; return 0; }
4908 if { (eval echo configure:4909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4909 rm -rf conftest*
4910 ac_cv_c_Wall_Winline=yes
4911 else
4912 echo "configure: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4914 rm -rf conftest*
4915 ac_cv_c_Wall_Winline=no
4917 rm -f conftest*
4920 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4921 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4922 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4923 else
4924 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4925 echo "configure:4926: checking if \$CC accepts -wall -winline" >&5
4926 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4928 else
4929 CFLAGS="${save_CFLAGS} -wall -winline"
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4934 int main() {
4936 ; return 0; }
4938 if { (eval echo configure:4939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4939 rm -rf conftest*
4940 ac_cv_c_wall_winline=yes
4941 else
4942 echo "configure: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4944 rm -rf conftest*
4945 ac_cv_c_wall_winline=no
4947 rm -f conftest*
4950 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4951 if test x"$ac_cv_c_wall_winline" != x"no"; then
4952 save_CFLAGS="${save_CFLAGS} -wall -winline"
4956 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4957 echo "configure:4958: checking if \$CC accepts -pipe" >&5
4958 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4960 else
4961 CFLAGS="${save_CFLAGS} -pipe"
4962 cat > conftest.$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4966 int main() {
4968 ; return 0; }
4970 if { (eval echo configure:4971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4971 rm -rf conftest*
4972 ac_cv_c_pipe=yes
4973 else
4974 echo "configure: failed program was:" >&5
4975 cat conftest.$ac_ext >&5
4976 rm -rf conftest*
4977 ac_cv_c_pipe=no
4979 rm -f conftest*
4982 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4983 if test x"$ac_cv_c_pipe" != x"no"; then
4984 save_CFLAGS="${save_CFLAGS} -pipe"
4987 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4988 echo "configure:4989: checking if \$CC accepts -O3" >&5
4989 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4990 echo $ac_n "(cached) $ac_c" 1>&6
4991 else
4992 CFLAGS="${save_CFLAGS} -O3"
4993 cat > conftest.$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
4997 int main() {
4999 ; return 0; }
5001 if { (eval echo configure:5002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5002 rm -rf conftest*
5003 ac_cv_c_o3=yes
5004 else
5005 echo "configure: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5007 rm -rf conftest*
5008 ac_cv_c_o3=no
5010 rm -f conftest*
5013 echo "$ac_t""$ac_cv_c_o3" 1>&6
5014 if test x"$ac_cv_c_o3" != x"no"; then
5015 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5016 else
5017 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5018 echo "configure:5019: checking if \$CC accepts -O2" >&5
5019 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5021 else
5022 CFLAGS="${save_CFLAGS} -O2"
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5027 int main() {
5029 ; return 0; }
5031 if { (eval echo configure:5032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5032 rm -rf conftest*
5033 ac_cv_c_o2=yes
5034 else
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5037 rm -rf conftest*
5038 ac_cv_c_o2=no
5040 rm -f conftest*
5043 echo "$ac_t""$ac_cv_c_o2" 1>&6
5044 if test x"$ac_cv_c_o2" != x"no"; then
5045 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5046 else
5047 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5048 echo "configure:5049: checking if \$CC accepts -O" >&5
5049 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5050 echo $ac_n "(cached) $ac_c" 1>&6
5051 else
5052 CFLAGS="${save_CFLAGS} -O"
5053 cat > conftest.$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5057 int main() {
5059 ; return 0; }
5061 if { (eval echo configure:5062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5062 rm -rf conftest*
5063 ac_cv_c_o=yes
5064 else
5065 echo "configure: failed program was:" >&5
5066 cat conftest.$ac_ext >&5
5067 rm -rf conftest*
5068 ac_cv_c_o=no
5070 rm -f conftest*
5073 echo "$ac_t""$ac_cv_c_o" 1>&6
5074 if test x"$ac_cv_c_o" != x"no"; then
5075 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5080 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5081 echo "configure:5082: checking if \$CC accepts -ffast-math" >&5
5082 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5084 else
5085 CFLAGS="${save_CFLAGS} -ffast-math"
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5090 int main() {
5092 ; return 0; }
5094 if { (eval echo configure:5095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5095 rm -rf conftest*
5096 ac_cv_c_fast_math=yes
5097 else
5098 echo "configure: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5100 rm -rf conftest*
5101 ac_cv_c_fast_math=no
5103 rm -f conftest*
5106 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5107 if test x"$ac_cv_c_fast_math" != x"no"; then
5108 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5111 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5112 echo "configure:5113: checking if \$CC accepts -funroll-loops" >&5
5113 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5115 else
5116 CFLAGS="${save_CFLAGS} -funroll-loops"
5117 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5121 int main() {
5123 ; return 0; }
5125 if { (eval echo configure:5126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5126 rm -rf conftest*
5127 ac_cv_c_unroll_loops=yes
5128 else
5129 echo "configure: failed program was:" >&5
5130 cat conftest.$ac_ext >&5
5131 rm -rf conftest*
5132 ac_cv_c_unroll_loops=no
5134 rm -f conftest*
5137 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5138 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5139 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5142 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5143 echo "configure:5144: checking if \$CC accepts -fomit-frame-pointer" >&5
5144 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5145 echo $ac_n "(cached) $ac_c" 1>&6
5146 else
5147 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5148 cat > conftest.$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5152 int main() {
5154 ; return 0; }
5156 if { (eval echo configure:5157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5157 rm -rf conftest*
5158 ac_cv_c_omit_frame_pointer=yes
5159 else
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5162 rm -rf conftest*
5163 ac_cv_c_omit_frame_pointer=no
5165 rm -f conftest*
5168 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5169 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5170 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5173 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5174 echo "configure:5175: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5175 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5177 else
5178 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5179 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5183 int main() {
5185 ; return 0; }
5187 if { (eval echo configure:5188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5188 rm -rf conftest*
5189 ac_cv_ld_darwin=yes
5190 else
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5193 rm -rf conftest*
5194 ac_cv_ld_darwin=no
5196 rm -f conftest*
5199 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5200 if test x"$ac_cv_ld_darwin" != x"no"; then
5201 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5204 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5205 echo "configure:5206: checking if \$CC accepts -shared" >&5
5206 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5207 echo $ac_n "(cached) $ac_c" 1>&6
5208 else
5209 CFLAGS="${save_CFLAGS} -shared"
5210 cat > conftest.$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5214 int main() {
5216 ; return 0; }
5218 if { (eval echo configure:5219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5219 rm -rf conftest*
5220 ac_cv_ld_plugins=yes
5221 else
5222 echo "configure: failed program was:" >&5
5223 cat conftest.$ac_ext >&5
5224 rm -rf conftest*
5225 ac_cv_ld_plugins=no
5227 rm -f conftest*
5230 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5231 if test x"$ac_cv_ld_plugins" != x"no"; then
5232 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5235 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5236 echo "configure:5237: checking __attribute__ ((aligned ())) support" >&5
5237 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5239 else
5240 ac_cv_c_attribute_aligned=0
5241 CFLAGS="${save_CFLAGS} -Werror"
5242 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5243 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5247 int main() {
5248 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5249 ; return 0; }
5251 if { (eval echo configure:5252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5252 rm -rf conftest*
5253 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5254 else
5255 echo "configure: failed program was:" >&5
5256 cat conftest.$ac_ext >&5
5258 rm -f conftest*
5259 done
5262 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5263 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5264 cat >> confdefs.h <<EOF
5265 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5270 CFLAGS="${save_CFLAGS}"
5271 CPPFLAGS="${save_CPPFLAGS}"
5272 LDFLAGS="${save_LDFLAGS}"
5274 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5275 echo "configure:5276: checking for boolean_t in sys/types.h" >&5
5276 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6
5278 else
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5282 #include <sys/types.h>
5283 int main() {
5284 boolean_t foo;
5285 ; return 0; }
5287 if { (eval echo configure:5288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5288 rm -rf conftest*
5289 ac_cv_c_boolean_t_sys_types_h=yes
5290 else
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 rm -rf conftest*
5294 ac_cv_c_boolean_t_sys_types_h=no
5296 rm -f conftest*
5299 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5300 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5301 cat >> confdefs.h <<\EOF
5302 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5307 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5308 echo "configure:5309: checking for boolean_t in pthread.h" >&5
5309 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5310 echo $ac_n "(cached) $ac_c" 1>&6
5311 else
5312 cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5315 #include <pthread.h>
5316 int main() {
5317 boolean_t foo;
5318 ; return 0; }
5320 if { (eval echo configure:5321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5321 rm -rf conftest*
5322 ac_cv_c_boolean_t_pthread_h=yes
5323 else
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5326 rm -rf conftest*
5327 ac_cv_c_boolean_t_pthread_h=no
5329 rm -f conftest*
5332 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5333 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5334 cat >> confdefs.h <<\EOF
5335 #define BOOLEAN_T_IN_PTHREAD_H 1
5340 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5341 echo "configure:5342: checking for boolean_t in cthreads.h" >&5
5342 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5344 else
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 #include <cthreads.h>
5349 int main() {
5350 boolean_t foo;
5351 ; return 0; }
5353 if { (eval echo configure:5354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5354 rm -rf conftest*
5355 ac_cv_c_boolean_t_cthreads_h=yes
5356 else
5357 echo "configure: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5359 rm -rf conftest*
5360 ac_cv_c_boolean_t_cthreads_h=no
5362 rm -f conftest*
5365 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5366 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5367 cat >> confdefs.h <<\EOF
5368 #define BOOLEAN_T_IN_CTHREADS_H 1
5373 case x"${target_cpu}" in
5375 ARCH=unknown
5378 ARCH="${target_cpu}"
5380 esac
5382 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"
5383 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort fx_scope"
5385 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5386 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5387 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5388 SSE_MODULES="imdctsse downmixsse"
5389 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5391 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5392 echo "configure:5393: checking if \$CC groks MMX inline assembly" >&5
5393 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5395 else
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5400 int main() {
5401 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5402 ; return 0; }
5404 if { (eval echo configure:5405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5405 rm -rf conftest*
5406 ac_cv_mmx_inline=yes
5407 else
5408 echo "configure: failed program was:" >&5
5409 cat conftest.$ac_ext >&5
5410 rm -rf conftest*
5411 ac_cv_mmx_inline=no
5413 rm -f conftest*
5416 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5417 if test x"$ac_cv_mmx_inline" != x"no"; then
5418 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5421 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5422 echo "configure:5423: checking if \$CC groks MMX EXT inline assembly" >&5
5423 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5425 else
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5430 int main() {
5431 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5432 ; return 0; }
5434 if { (eval echo configure:5435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5435 rm -rf conftest*
5436 ac_cv_mmxext_inline=yes
5437 else
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5440 rm -rf conftest*
5441 ac_cv_mmxext_inline=no
5443 rm -f conftest*
5446 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5447 if test x"$ac_cv_mmxext_inline" != x"no"; then
5448 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5451 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5452 echo "configure:5453: checking if \$CC groks 3D Now! inline assembly" >&5
5453 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5455 else
5456 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5460 int main() {
5461 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5462 ; return 0; }
5464 if { (eval echo configure:5465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5465 rm -rf conftest*
5466 ac_cv_3dnow_inline=yes
5467 else
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5470 rm -rf conftest*
5471 ac_cv_3dnow_inline=no
5473 rm -f conftest*
5476 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5477 if test x"$ac_cv_3dnow_inline" != x"no"; then
5478 cat >> confdefs.h <<\EOF
5479 #define CAN_COMPILE_3DNOW 1
5482 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5485 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5486 echo "configure:5487: checking if \$CC groks SSE inline assembly" >&5
5487 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5489 else
5490 cat > conftest.$ac_ext <<EOF
5491 #line 5492 "configure"
5492 #include "confdefs.h"
5494 int main() {
5495 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5496 ; return 0; }
5498 if { (eval echo configure:5499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5499 rm -rf conftest*
5500 ac_cv_sse_inline=yes
5501 else
5502 echo "configure: failed program was:" >&5
5503 cat conftest.$ac_ext >&5
5504 rm -rf conftest*
5505 ac_cv_sse_inline=no
5507 rm -f conftest*
5510 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5511 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5512 cat >> confdefs.h <<\EOF
5513 #define CAN_COMPILE_SSE 1
5516 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5519 # don't try to grok altivec with native mingw32 it doesn't work right now
5520 # we should be able to remove this test with future versions of mingw32
5521 if test x$SYS != xmingw32; then
5522 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5523 echo "configure:5524: checking if \$CC groks Altivec inline assembly" >&5
5524 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5526 else
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5531 int main() {
5532 asm volatile("vperm 0,1,2,3");
5533 ; return 0; }
5535 if { (eval echo configure:5536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5536 rm -rf conftest*
5537 ac_cv_altivec_inline=yes
5538 else
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5541 rm -rf conftest*
5542 save_CFLAGS=$CFLAGS
5543 CFLAGS="$CFLAGS -Wa,-m7400"
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5548 int main() {
5549 asm volatile("vperm 0,1,2,3");
5550 ; return 0; }
5552 if { (eval echo configure:5553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5553 rm -rf conftest*
5554 ac_cv_altivec_inline="-Wa,-m7400"
5555 else
5556 echo "configure: failed program was:" >&5
5557 cat conftest.$ac_ext >&5
5558 rm -rf conftest*
5559 ac_cv_altivec_inline=no
5561 rm -f conftest*
5562 CFLAGS=$save_CFLAGS
5565 rm -f conftest*
5568 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5569 if test x"$ac_cv_altivec_inline" != x"no"; then
5570 cat >> confdefs.h <<\EOF
5571 #define CAN_COMPILE_ALTIVEC 1
5574 if test x"$ac_cv_altivec_inline" != x"yes"; then
5575 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5576 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5577 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5578 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5580 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5583 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5584 echo "configure:5585: checking if \$CC groks Altivec C extensions" >&5
5585 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5587 else
5588 save_CFLAGS=$CFLAGS
5589 CFLAGS="$CFLAGS -faltivec"
5590 # Darwin test
5591 cat > conftest.$ac_ext <<EOF
5592 #line 5593 "configure"
5593 #include "confdefs.h"
5595 int main() {
5596 vec_mtvscr((vector unsigned int)(0));
5597 ; return 0; }
5599 if { (eval echo configure:5600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5600 rm -rf conftest*
5601 ac_cv_c_altivec=-faltivec
5602 else
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5605 rm -rf conftest*
5607 # Linux/PPC test
5608 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5609 cat > conftest.$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5613 int main() {
5614 vec_mtvscr((vector unsigned int)(0));
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_c_altivec="-fvec"
5620 else
5621 echo "configure: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5623 rm -rf conftest*
5624 ac_cv_c_altivec=no
5626 rm -f conftest*
5629 rm -f conftest*
5630 CFLAGS=$save_CFLAGS
5634 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5635 if test x"$ac_cv_c_altivec" != x"no"; then
5636 cat >> confdefs.h <<\EOF
5637 #define CAN_COMPILE_C_ALTIVEC 1
5640 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5641 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5642 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5643 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5644 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5647 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5648 echo "configure:5649: checking if linker needs -framework vecLib" >&5
5649 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5651 else
5652 save_LDFLAGS=$LDFLAGS
5653 LDFLAGS="$LDFLAGS -framework vecLib"
5654 cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5658 int main() {
5660 ; return 0; }
5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5663 rm -rf conftest*
5664 ac_cv_ld_altivec=yes
5665 else
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5668 rm -rf conftest*
5669 ac_cv_ld_altivec=no
5671 rm -f conftest*
5672 LDFLAGS=$save_LDFLAGS
5676 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5677 if test x"$ac_cv_ld_altivec" != x"no"; then
5678 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5679 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5680 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5681 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5683 fi # end if mingw32
5686 # Check whether --with- or --without- was given.
5687 if test "${with_+set}" = set; then
5688 withval="$with_"
5692 # Check whether --with- or --without- was given.
5693 if test "${with_+set}" = set; then
5694 withval="$with_"
5699 # Check whether --with-tuning or --without-tuning was given.
5700 if test "${with_tuning+set}" = set; then
5701 withval="$with_tuning"
5705 if test "x$with_tuning" != "x"; then
5706 TUNING="$with_tuning"
5707 else
5708 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5709 else
5710 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5714 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5715 then
5716 ARCH="${ARCH} mmx"
5717 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5720 # Check whether --enable-optimizations or --disable-optimizations was given.
5721 if test "${enable_optimizations+set}" = set; then
5722 enableval="$enable_optimizations"
5723 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5724 else
5725 OPTIMS=1
5729 # Check whether --enable-altivec or --disable-altivec was given.
5730 if test "${enable_altivec+set}" = set; then
5731 enableval="$enable_altivec"
5732 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5733 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5734 else
5735 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5736 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5740 DEBUG=0
5741 # Check whether --enable-debug or --disable-debug was given.
5742 if test "${enable_debug+set}" = set; then
5743 enableval="$enable_debug"
5744 if test x$enable_debug = xyes; then DEBUG=1; fi
5748 RELEASE=0
5749 # Check whether --enable-release or --disable-release was given.
5750 if test "${enable_release+set}" = set; then
5751 enableval="$enable_release"
5752 if test x$enable_release = xyes; then RELEASE=1; fi
5753 else
5754 VERSION="${VERSION}_`date +%Y-%m-%d`"
5759 # Check whether --with- or --without- was given.
5760 if test "${with_+set}" = set; then
5761 withval="$with_"
5766 # Check whether --enable-dvd or --disable-dvd was given.
5767 if test "${enable_dvd+set}" = set; then
5768 enableval="$enable_dvd"
5772 if test "x$enable_dvd" != "xno"
5773 then
5774 # Check whether --with-dvdcss or --without-dvdcss was given.
5775 if test "${with_dvdcss+set}" = set; then
5776 withval="$with_dvdcss"
5780 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5781 if test "${with_dvdcss_tree+set}" = set; then
5782 withval="$with_dvdcss_tree"
5786 case "x$with_dvdcss" in
5787 x|xyes)
5788 if test "x$with_dvdcss_tree" = x
5789 then
5790 for ac_hdr in dvdcss/dvdcss.h
5792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5794 echo "configure:5795: checking for $ac_hdr" >&5
5795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5796 echo $ac_n "(cached) $ac_c" 1>&6
5797 else
5798 cat > conftest.$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5801 #include <$ac_hdr>
5803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5804 { (eval echo configure:5805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5806 if test -z "$ac_err"; then
5807 rm -rf conftest*
5808 eval "ac_cv_header_$ac_safe=yes"
5809 else
5810 echo "$ac_err" >&5
5811 echo "configure: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5813 rm -rf conftest*
5814 eval "ac_cv_header_$ac_safe=no"
5816 rm -f conftest*
5818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5819 echo "$ac_t""yes" 1>&6
5820 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5821 cat >> confdefs.h <<EOF
5822 #define $ac_tr_hdr 1
5824 PLUGINS="${PLUGINS} dvd"
5825 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5826 else
5827 echo "$ac_t""no" 1>&6
5828 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
5829 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5831 done
5833 else
5834 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5835 echo "configure:5836: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5836 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5837 if test "x$real_dvdcss_tree" = x
5838 then
5839 echo "$ac_t""no" 1>&6
5840 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5842 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5843 then
5844 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5845 BUILTINS="${BUILTINS} dvd"
5846 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5847 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5848 else
5849 echo "$ac_t""no" 1>&6
5850 { 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; }
5854 xno)
5855 PLUGINS="${PLUGINS} dvd"
5856 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5857 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5860 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5861 echo "configure:5862: checking for dvdcss headers in ${with_dvdcss}" >&5
5862 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5863 then
5864 echo "$ac_t""yes" 1>&6
5865 PLUGINS="${PLUGINS} dvd"
5866 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5867 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5868 else
5869 echo "$ac_t""no" 1>&6
5870 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5873 esac
5876 # Check whether --enable-dvdread or --disable-dvdread was given.
5877 if test "${enable_dvdread+set}" = set; then
5878 enableval="$enable_dvdread"
5882 if test "x$enable_dvdread" != "xno"
5883 then
5884 # Check whether --with-dvdread or --without-dvdread was given.
5885 if test "${with_dvdread+set}" = set; then
5886 withval="$with_dvdread"
5890 if test "x$with_dvdread" = x
5891 then
5892 test_LDFLAGS=""
5893 test_CFLAGS=""
5894 else
5895 test_LDFLAGS="-L${with_dvdread}/lib"
5896 test_CFLAGS="-I${with_dvdread}/include"
5898 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5899 for ac_hdr in dvdread/dvd_reader.h
5901 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5902 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5903 echo "configure:5904: checking for $ac_hdr" >&5
5904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5905 echo $ac_n "(cached) $ac_c" 1>&6
5906 else
5907 cat > conftest.$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5910 #include <$ac_hdr>
5912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5913 { (eval echo configure:5914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5915 if test -z "$ac_err"; then
5916 rm -rf conftest*
5917 eval "ac_cv_header_$ac_safe=yes"
5918 else
5919 echo "$ac_err" >&5
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5922 rm -rf conftest*
5923 eval "ac_cv_header_$ac_safe=no"
5925 rm -f conftest*
5927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5928 echo "$ac_t""yes" 1>&6
5929 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5930 cat >> confdefs.h <<EOF
5931 #define $ac_tr_hdr 1
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 #include <dvdread/dvd_reader.h>
5938 int main() {
5939 void foo() { int i=DVD_VIDEO_LB_LEN; }
5940 ; return 0; }
5942 if { (eval echo configure:5943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5943 rm -rf conftest*
5945 PLUGINS="${PLUGINS} dvdread"
5946 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
5947 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
5949 else
5950 echo "configure: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5952 rm -rf conftest*
5954 if test "x$enable_dvdread" != x
5955 then
5956 { 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; }
5960 rm -f conftest*
5962 else
5963 echo "$ac_t""no" 1>&6
5964 if test "x$enable_dvdread" != x
5965 then
5966 if test "x$with_dvdread" != x
5967 then
5968 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
5969 else
5970 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
5975 done
5977 CPPFLAGS="$save_CPPFLAGS"
5980 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
5981 if test "${enable_dvbpsi+set}" = set; then
5982 enableval="$enable_dvbpsi"
5986 if test "x$enable_dvbpsi" != "xno"
5987 then
5988 # Check whether --with-dvbpsi or --without-dvbpsi was given.
5989 if test "${with_dvbpsi+set}" = set; then
5990 withval="$with_dvbpsi"
5994 if test "x$with_dvbpsi" = x
5995 then
5996 test_LDFLAGS=""
5997 test_CFLAGS=""
5998 else
5999 test_LDFLAGS="-L${with_dvbpsi}/lib"
6000 test_CFLAGS="-I${with_dvbpsi}/include"
6002 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6003 ac_safe=`echo "dvbpsi/dvbpsi.h" | sed 'y%./+-%__p_%'`
6004 echo $ac_n "checking for dvbpsi/dvbpsi.h""... $ac_c" 1>&6
6005 echo "configure:6006: checking for dvbpsi/dvbpsi.h" >&5
6006 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6007 echo $ac_n "(cached) $ac_c" 1>&6
6008 else
6009 cat > conftest.$ac_ext <<EOF
6010 #line 6011 "configure"
6011 #include "confdefs.h"
6012 #include <dvbpsi/dvbpsi.h>
6014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6015 { (eval echo configure:6016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6017 if test -z "$ac_err"; then
6018 rm -rf conftest*
6019 eval "ac_cv_header_$ac_safe=yes"
6020 else
6021 echo "$ac_err" >&5
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6024 rm -rf conftest*
6025 eval "ac_cv_header_$ac_safe=no"
6027 rm -f conftest*
6029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6030 echo "$ac_t""yes" 1>&6
6032 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6033 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6034 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6036 else
6037 echo "$ac_t""no" 1>&6
6039 if test "x$enable_dvbpsi" != x
6040 then
6041 { echo "configure: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org" 1>&2; exit 1; }
6046 CPPFLAGS="$save_CPPFLAGS"
6049 # Check whether --enable-vcd or --disable-vcd was given.
6050 if test "${enable_vcd+set}" = set; then
6051 enableval="$enable_vcd"
6056 if test x$enable_vcd != xno
6057 then
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6061 #include <linux/cdrom.h>
6063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6064 egrep "cdrom_msf0" >/dev/null 2>&1; then
6065 rm -rf conftest*
6067 PLUGINS="${PLUGINS} vcd"
6070 rm -f conftest*
6073 cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 #include <sys/cdio.h>
6078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6079 egrep "ioc_toc_header " >/dev/null 2>&1; then
6080 rm -rf conftest*
6082 PLUGINS="${PLUGINS} vcd"
6083 cat >> confdefs.h <<\EOF
6084 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6089 rm -f conftest*
6092 if test "x${SYS}" = "xbsdi"
6093 then
6094 PLUGINS="${PLUGINS} vcd"
6097 if test "x${SYS}" = "xdarwin"
6098 then
6099 PLUGINS="${PLUGINS} vcd"
6100 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6104 # Check whether --enable-satellite or --disable-satellite was given.
6105 if test "${enable_satellite+set}" = set; then
6106 enableval="$enable_satellite"
6107 if test x$enable_satellite = xyes
6108 then
6109 PLUGINS="${PLUGINS} satellite"
6114 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6115 echo "configure:6116: checking for inet_pton" >&5
6116 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6117 echo $ac_n "(cached) $ac_c" 1>&6
6118 else
6119 cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6122 /* System header to define __stub macros and hopefully few prototypes,
6123 which can conflict with char inet_pton(); below. */
6124 #include <assert.h>
6125 /* Override any gcc2 internal prototype to avoid an error. */
6126 /* We use char because int might match the return type of a gcc2
6127 builtin and then its argument prototype would still apply. */
6128 char inet_pton();
6130 int main() {
6132 /* The GNU C library defines this for functions which it implements
6133 to always fail with ENOSYS. Some functions are actually named
6134 something starting with __ and the normal name is an alias. */
6135 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6136 choke me
6137 #else
6138 inet_pton();
6139 #endif
6141 ; return 0; }
6143 if { (eval echo configure:6144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6144 rm -rf conftest*
6145 eval "ac_cv_func_inet_pton=yes"
6146 else
6147 echo "configure: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6149 rm -rf conftest*
6150 eval "ac_cv_func_inet_pton=no"
6152 rm -f conftest*
6155 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6156 echo "$ac_t""yes" 1>&6
6157 PLUGINS="${PLUGINS} ipv6"
6158 else
6159 echo "$ac_t""no" 1>&6
6163 # Check whether --enable-avi or --disable-avi was given.
6164 if test "${enable_avi+set}" = set; then
6165 enableval="$enable_avi"
6169 if test x$enable_avi != xno
6170 then
6171 PLUGINS="${PLUGINS} avi"
6175 # Check whether --with- or --without- was given.
6176 if test "${with_+set}" = set; then
6177 withval="$with_"
6182 # Check whether --enable-mad or --disable-mad was given.
6183 if test "${enable_mad+set}" = set; then
6184 enableval="$enable_mad"
6188 if test x$enable_mad = xyes
6189 then
6190 PLUGINS="${PLUGINS} mad"
6191 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6192 # Check whether --with-mad or --without-mad was given.
6193 if test "${with_mad+set}" = set; then
6194 withval="$with_mad"
6195 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6196 then
6197 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6198 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6202 save_CFLAGS=$CFLAGS
6203 save_LDFLAGS=$LDFLAGS
6204 CFLAGS="$CFLAGS $mad_CFLAGS"
6205 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6206 for ac_hdr in mad.h
6208 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6209 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6210 echo "configure:6211: checking for $ac_hdr" >&5
6211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6212 echo $ac_n "(cached) $ac_c" 1>&6
6213 else
6214 cat > conftest.$ac_ext <<EOF
6215 #line 6216 "configure"
6216 #include "confdefs.h"
6217 #include <$ac_hdr>
6219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6220 { (eval echo configure:6221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6222 if test -z "$ac_err"; then
6223 rm -rf conftest*
6224 eval "ac_cv_header_$ac_safe=yes"
6225 else
6226 echo "$ac_err" >&5
6227 echo "configure: failed program was:" >&5
6228 cat conftest.$ac_ext >&5
6229 rm -rf conftest*
6230 eval "ac_cv_header_$ac_safe=no"
6232 rm -f conftest*
6234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6235 echo "$ac_t""yes" 1>&6
6236 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6237 cat >> confdefs.h <<EOF
6238 #define $ac_tr_hdr 1
6241 else
6242 echo "$ac_t""no" 1>&6
6243 echo "Cannot find development headers for libmad..."
6244 exit 1
6247 done
6249 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6250 echo "configure:6251: checking for mad_bit_init in -lmad" >&5
6251 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6253 echo $ac_n "(cached) $ac_c" 1>&6
6254 else
6255 ac_save_LIBS="$LIBS"
6256 LIBS="-lmad $LIBS"
6257 cat > conftest.$ac_ext <<EOF
6258 #line 6259 "configure"
6259 #include "confdefs.h"
6260 /* Override any gcc2 internal prototype to avoid an error. */
6261 /* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6263 char mad_bit_init();
6265 int main() {
6266 mad_bit_init()
6267 ; return 0; }
6269 if { (eval echo configure:6270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6270 rm -rf conftest*
6271 eval "ac_cv_lib_$ac_lib_var=yes"
6272 else
6273 echo "configure: failed program was:" >&5
6274 cat conftest.$ac_ext >&5
6275 rm -rf conftest*
6276 eval "ac_cv_lib_$ac_lib_var=no"
6278 rm -f conftest*
6279 LIBS="$ac_save_LIBS"
6282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6283 echo "$ac_t""yes" 1>&6
6284 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6285 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6286 cat >> confdefs.h <<EOF
6287 #define $ac_tr_lib 1
6290 LIBS="-lmad $LIBS"
6292 else
6293 echo "$ac_t""no" 1>&6
6294 echo "Cannot find libmad library..."
6295 exit 1
6299 CFLAGS=$save_CFLAGS
6300 LDFLAGS=$save_LDFLAGS
6303 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6304 if test "${enable_ffmpeg+set}" = set; then
6305 enableval="$enable_ffmpeg"
6309 if test "x$enable_ffmpeg" = "xyes"
6310 then
6311 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6312 if test "${with_ffmpeg_tree+set}" = set; then
6313 withval="$with_ffmpeg_tree"
6317 if test "x$with_ffmpeg_tree" = x
6318 then
6319 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&2; exit 1; }
6320 else
6321 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6322 echo "configure:6323: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6323 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6324 if test "x$real_ffmpeg_tree" = x
6325 then
6326 echo "$ac_t""no" 1>&6
6327 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6329 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6330 then
6331 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6332 BUILTINS="${BUILTINS} ffmpeg"
6333 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6334 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6335 else
6336 echo "$ac_t""no" 1>&6
6337 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6343 if test x$SYS = xbeos
6344 then
6345 PLUGINS="${PLUGINS} beos"
6348 # Check whether --enable-a52 or --disable-a52 was given.
6349 if test "${enable_a52+set}" = set; then
6350 enableval="$enable_a52"
6354 if test "x$enable_a52" != "xno" -a x$SYS != xmingw32
6355 then
6356 for ac_hdr in a52dec/a52.h
6358 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6359 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6360 echo "configure:6361: checking for $ac_hdr" >&5
6361 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6362 echo $ac_n "(cached) $ac_c" 1>&6
6363 else
6364 cat > conftest.$ac_ext <<EOF
6365 #line 6366 "configure"
6366 #include "confdefs.h"
6367 #include <$ac_hdr>
6369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6370 { (eval echo configure:6371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6372 if test -z "$ac_err"; then
6373 rm -rf conftest*
6374 eval "ac_cv_header_$ac_safe=yes"
6375 else
6376 echo "$ac_err" >&5
6377 echo "configure: failed program was:" >&5
6378 cat conftest.$ac_ext >&5
6379 rm -rf conftest*
6380 eval "ac_cv_header_$ac_safe=no"
6382 rm -f conftest*
6384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6385 echo "$ac_t""yes" 1>&6
6386 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6387 cat >> confdefs.h <<EOF
6388 #define $ac_tr_hdr 1
6391 BUILTINS="${BUILTINS} a52"
6392 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6394 else
6395 echo "$ac_t""no" 1>&6
6397 done
6401 # Check whether --enable-vorbis or --disable-vorbis was given.
6402 if test "${enable_vorbis+set}" = set; then
6403 enableval="$enable_vorbis"
6407 if test "x$enable_vorbis" != "xno"
6408 then
6409 for ac_hdr in ogg/ogg.h
6411 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6412 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6413 echo "configure:6414: checking for $ac_hdr" >&5
6414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6415 echo $ac_n "(cached) $ac_c" 1>&6
6416 else
6417 cat > conftest.$ac_ext <<EOF
6418 #line 6419 "configure"
6419 #include "confdefs.h"
6420 #include <$ac_hdr>
6422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6423 { (eval echo configure:6424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6425 if test -z "$ac_err"; then
6426 rm -rf conftest*
6427 eval "ac_cv_header_$ac_safe=yes"
6428 else
6429 echo "$ac_err" >&5
6430 echo "configure: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6432 rm -rf conftest*
6433 eval "ac_cv_header_$ac_safe=no"
6435 rm -f conftest*
6437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6438 echo "$ac_t""yes" 1>&6
6439 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6440 cat >> confdefs.h <<EOF
6441 #define $ac_tr_hdr 1
6444 #PLUGINS="${PLUGINS} vorbis"
6445 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6447 else
6448 echo "$ac_t""no" 1>&6
6450 done
6455 # Check whether --with- or --without- was given.
6456 if test "${with_+set}" = set; then
6457 withval="$with_"
6462 # Check whether --enable-x11 or --disable-x11 was given.
6463 if test "${enable_x11+set}" = set; then
6464 enableval="$enable_x11"
6468 if test x$enable_x11 != xno &&
6469 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6470 if test x$x_includes = xNONE; then
6471 x_includes=/usr/X11R6/include
6473 if test x$x_libraries = xNONE; then
6474 x_libraries=/usr/X11R6/lib
6476 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6477 for ac_hdr in X11/Xlib.h
6479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6481 echo "configure:6482: checking for $ac_hdr" >&5
6482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6484 else
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6488 #include <$ac_hdr>
6490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6491 { (eval echo configure:6492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6493 if test -z "$ac_err"; then
6494 rm -rf conftest*
6495 eval "ac_cv_header_$ac_safe=yes"
6496 else
6497 echo "$ac_err" >&5
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6500 rm -rf conftest*
6501 eval "ac_cv_header_$ac_safe=no"
6503 rm -f conftest*
6505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6506 echo "$ac_t""yes" 1>&6
6507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6508 cat >> confdefs.h <<EOF
6509 #define $ac_tr_hdr 1
6512 PLUGINS="${PLUGINS} x11"
6513 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6514 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6516 else
6517 echo "$ac_t""no" 1>&6
6519 done
6521 CPPFLAGS="$save_CPPFLAGS"
6524 # Check whether --enable-xvideo or --disable-xvideo was given.
6525 if test "${enable_xvideo+set}" = set; then
6526 enableval="$enable_xvideo"
6530 if test x$enable_xvideo != xno &&
6531 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6532 if test x$x_includes = xNONE; then
6533 x_includes=/usr/X11R6/include
6535 if test x$x_libraries = xNONE; then
6536 x_libraries=/usr/X11R6/lib
6538 save_CPPFLAGS=$CPPFLAGS
6539 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6540 for ac_hdr in X11/extensions/Xv.h
6542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6544 echo "configure:6545: checking for $ac_hdr" >&5
6545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6547 else
6548 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6551 #include <$ac_hdr>
6553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6554 { (eval echo configure:6555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6556 if test -z "$ac_err"; then
6557 rm -rf conftest*
6558 eval "ac_cv_header_$ac_safe=yes"
6559 else
6560 echo "$ac_err" >&5
6561 echo "configure: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6563 rm -rf conftest*
6564 eval "ac_cv_header_$ac_safe=no"
6566 rm -f conftest*
6568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6569 echo "$ac_t""yes" 1>&6
6570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6571 cat >> confdefs.h <<EOF
6572 #define $ac_tr_hdr 1
6575 save_CFLAGS=$CFLAGS
6576 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6577 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6578 echo "configure:6579: checking for XvSetPortAttribute in -lXv_pic" >&5
6579 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6582 else
6583 ac_save_LIBS="$LIBS"
6584 LIBS="-lXv_pic $LIBS"
6585 cat > conftest.$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6588 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6591 char XvSetPortAttribute();
6593 int main() {
6594 XvSetPortAttribute()
6595 ; return 0; }
6597 if { (eval echo configure:6598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6598 rm -rf conftest*
6599 eval "ac_cv_lib_$ac_lib_var=yes"
6600 else
6601 echo "configure: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6603 rm -rf conftest*
6604 eval "ac_cv_lib_$ac_lib_var=no"
6606 rm -f conftest*
6607 LIBS="$ac_save_LIBS"
6610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6611 echo "$ac_t""yes" 1>&6
6612 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6613 PLUGINS="${PLUGINS} xvideo"
6614 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6615 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6616 else
6617 echo "$ac_t""no" 1>&6
6618 # We don't have Xv_pic, let's make xvideo.a as builtin
6619 BUILTINS="${BUILTINS} xvideo"
6620 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6621 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6624 CFLAGS="$save_CFLAGS"
6626 CPPFLAGS="$save_CPPFLAGS"
6627 else
6628 echo "$ac_t""no" 1>&6
6630 done
6634 # Check whether --enable-sdl or --disable-sdl was given.
6635 if test "${enable_sdl+set}" = set; then
6636 enableval="$enable_sdl"
6640 if test "x$enable_sdl" != "xno"
6641 then
6642 SDL_PATH=$PATH
6643 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6644 if test "${with_sdl_config_path+set}" = set; then
6645 withval="$with_sdl_config_path"
6646 if test "x$with_sdl_config_path" != "xno"
6647 then
6648 SDL_PATH="$with_sdl_config_path:$PATH"
6652 # Extract the first word of "sdl12-config", so it can be a program name with args.
6653 set dummy sdl12-config; ac_word=$2
6654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6655 echo "configure:6656: checking for $ac_word" >&5
6656 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6657 echo $ac_n "(cached) $ac_c" 1>&6
6658 else
6659 case "$SDL12_CONFIG" in
6661 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6663 ?:/*)
6664 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6668 ac_dummy="$SDL_PATH"
6669 for ac_dir in $ac_dummy; do
6670 test -z "$ac_dir" && ac_dir=.
6671 if test -f $ac_dir/$ac_word; then
6672 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6673 break
6675 done
6676 IFS="$ac_save_ifs"
6677 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6679 esac
6681 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6682 if test -n "$SDL12_CONFIG"; then
6683 echo "$ac_t""$SDL12_CONFIG" 1>&6
6684 else
6685 echo "$ac_t""no" 1>&6
6688 SDL_CONFIG=${SDL12_CONFIG}
6689 SDL_HEADER="SDL12/SDL.h"
6690 if test x${SDL_CONFIG} = xno
6691 then
6692 # Extract the first word of "sdl11-config", so it can be a program name with args.
6693 set dummy sdl11-config; ac_word=$2
6694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6695 echo "configure:6696: checking for $ac_word" >&5
6696 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6698 else
6699 case "$SDL11_CONFIG" in
6701 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6703 ?:/*)
6704 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6708 ac_dummy="$SDL_PATH"
6709 for ac_dir in $ac_dummy; do
6710 test -z "$ac_dir" && ac_dir=.
6711 if test -f $ac_dir/$ac_word; then
6712 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6713 break
6715 done
6716 IFS="$ac_save_ifs"
6717 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6719 esac
6721 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6722 if test -n "$SDL11_CONFIG"; then
6723 echo "$ac_t""$SDL11_CONFIG" 1>&6
6724 else
6725 echo "$ac_t""no" 1>&6
6728 SDL_CONFIG=${SDL11_CONFIG}
6729 SDL_HEADER="SDL11/SDL.h"
6731 if test x${SDL_CONFIG} = xno
6732 then
6733 # Extract the first word of "sdl-config", so it can be a program name with args.
6734 set dummy sdl-config; ac_word=$2
6735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6736 echo "configure:6737: checking for $ac_word" >&5
6737 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6738 echo $ac_n "(cached) $ac_c" 1>&6
6739 else
6740 case "$SDL_CONFIG" in
6742 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6744 ?:/*)
6745 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6749 ac_dummy="$SDL_PATH"
6750 for ac_dir in $ac_dummy; do
6751 test -z "$ac_dir" && ac_dir=.
6752 if test -f $ac_dir/$ac_word; then
6753 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6754 break
6756 done
6757 IFS="$ac_save_ifs"
6758 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6760 esac
6762 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6763 if test -n "$SDL_CONFIG"; then
6764 echo "$ac_t""$SDL_CONFIG" 1>&6
6765 else
6766 echo "$ac_t""no" 1>&6
6769 SDL_HEADER="SDL/SDL.h"
6771 if test x${SDL_CONFIG} != xno
6772 then
6773 PLUGINS="${PLUGINS} sdl"
6774 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
6775 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6776 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
6777 for ac_hdr in ${SDL_HEADER}
6779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6781 echo "configure:6782: checking for $ac_hdr" >&5
6782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6
6784 else
6785 cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 #include <$ac_hdr>
6790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6791 { (eval echo configure:6792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6793 if test -z "$ac_err"; then
6794 rm -rf conftest*
6795 eval "ac_cv_header_$ac_safe=yes"
6796 else
6797 echo "$ac_err" >&5
6798 echo "configure: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6800 rm -rf conftest*
6801 eval "ac_cv_header_$ac_safe=no"
6803 rm -f conftest*
6805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6806 echo "$ac_t""yes" 1>&6
6807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6808 cat >> confdefs.h <<EOF
6809 #define $ac_tr_hdr 1
6811 cat >> confdefs.h <<EOF
6812 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6815 else
6816 echo "$ac_t""no" 1>&6
6817 { echo "configure: error: The development package for SDL is not installed.
6818 Please install it and try again. Alternatively you can also configure with
6819 --disable-sdl." 1>&2; exit 1; }
6822 done
6824 CPPFLAGS="$save_CPPFLAGS"
6825 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6826 then
6827 { echo "configure: error: The development package for SDL is not installed.
6828 Please install it and try again. Alternatively you can also configure with
6829 --disable-sdl." 1>&2; exit 1; }
6831 elif test "x$enable_sdl" = "xyes"
6832 then
6833 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6834 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6835 " 1>&2; exit 1; }
6839 # Check whether --enable-directx or --disable-directx was given.
6840 if test "${enable_directx+set}" = set; then
6841 enableval="$enable_directx"
6845 if test "x$enable_directx" != "xno"
6846 then
6847 if test x$SYS = xmingw32
6848 then
6849 # Check whether --with-directx or --without-directx was given.
6850 if test "${with_directx+set}" = set; then
6851 withval="$with_directx"
6855 if test "x$with_directx" = "x"
6856 then
6857 for ac_hdr in ddraw.h
6859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6861 echo "configure:6862: checking for $ac_hdr" >&5
6862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6863 echo $ac_n "(cached) $ac_c" 1>&6
6864 else
6865 cat > conftest.$ac_ext <<EOF
6866 #line 6867 "configure"
6867 #include "confdefs.h"
6868 #include <$ac_hdr>
6870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6871 { (eval echo configure:6872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6873 if test -z "$ac_err"; then
6874 rm -rf conftest*
6875 eval "ac_cv_header_$ac_safe=yes"
6876 else
6877 echo "$ac_err" >&5
6878 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6880 rm -rf conftest*
6881 eval "ac_cv_header_$ac_safe=no"
6883 rm -f conftest*
6885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6886 echo "$ac_t""yes" 1>&6
6887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6888 cat >> confdefs.h <<EOF
6889 #define $ac_tr_hdr 1
6891 PLUGINS="${PLUGINS} directx"
6892 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
6893 else
6894 echo "$ac_t""no" 1>&6
6896 done
6898 else
6899 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
6900 echo "configure:6901: checking for directX headers in ${with_directx}" >&5
6901 if test -f ${with_directx}/ddraw.h
6902 then
6903 PLUGINS="${PLUGINS} directx"
6904 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
6905 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
6906 echo "$ac_t""yes" 1>&6
6907 else
6908 echo "$ac_t""no" 1>&6
6909 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
6915 # Check whether --enable-fb or --disable-fb was given.
6916 if test "${enable_fb+set}" = set; then
6917 enableval="$enable_fb"
6921 if test x$enable_fb != xno
6922 then
6923 for ac_hdr in linux/fb.h
6925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6927 echo "configure:6928: checking for $ac_hdr" >&5
6928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6
6930 else
6931 cat > conftest.$ac_ext <<EOF
6932 #line 6933 "configure"
6933 #include "confdefs.h"
6934 #include <$ac_hdr>
6936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6937 { (eval echo configure:6938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6939 if test -z "$ac_err"; then
6940 rm -rf conftest*
6941 eval "ac_cv_header_$ac_safe=yes"
6942 else
6943 echo "$ac_err" >&5
6944 echo "configure: failed program was:" >&5
6945 cat conftest.$ac_ext >&5
6946 rm -rf conftest*
6947 eval "ac_cv_header_$ac_safe=no"
6949 rm -f conftest*
6951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6952 echo "$ac_t""yes" 1>&6
6953 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6954 cat >> confdefs.h <<EOF
6955 #define $ac_tr_hdr 1
6958 PLUGINS="${PLUGINS} fb"
6960 else
6961 echo "$ac_t""no" 1>&6
6963 done
6967 # Check whether --enable-mga or --disable-mga was given.
6968 if test "${enable_mga+set}" = set; then
6969 enableval="$enable_mga"
6970 if test x$enable_mga = xyes
6971 then
6972 PLUGINS="${PLUGINS} mga xmga"
6977 # Check whether --enable-ggi or --disable-ggi was given.
6978 if test "${enable_ggi+set}" = set; then
6979 enableval="$enable_ggi"
6983 if test x$enable_ggi = xyes
6984 then
6985 PLUGINS="${PLUGINS} ggi"
6986 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
6987 # Check whether --with-ggi or --without-ggi was given.
6988 if test "${with_ggi+set}" = set; then
6989 withval="$with_ggi"
6990 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
6991 then
6992 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
6993 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
6999 # Check whether --enable-glide or --disable-glide was given.
7000 if test "${enable_glide+set}" = set; then
7001 enableval="$enable_glide"
7005 if test x$enable_glide = xyes
7006 then
7007 PLUGINS="${PLUGINS} glide"
7008 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7009 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7010 # Check whether --with-glide or --without-glide was given.
7011 if test "${with_glide+set}" = set; then
7012 withval="$with_glide"
7013 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7014 then
7015 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7016 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7022 # Check whether --enable-aa or --disable-aa was given.
7023 if test "${enable_aa+set}" = set; then
7024 enableval="$enable_aa"
7028 if test x$enable_aa = xyes
7029 then
7030 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7031 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7032 echo "configure:7033: checking for aalib.h" >&5
7033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7034 echo $ac_n "(cached) $ac_c" 1>&6
7035 else
7036 cat > conftest.$ac_ext <<EOF
7037 #line 7038 "configure"
7038 #include "confdefs.h"
7039 #include <aalib.h>
7041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7042 { (eval echo configure:7043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7044 if test -z "$ac_err"; then
7045 rm -rf conftest*
7046 eval "ac_cv_header_$ac_safe=yes"
7047 else
7048 echo "$ac_err" >&5
7049 echo "configure: failed program was:" >&5
7050 cat conftest.$ac_ext >&5
7051 rm -rf conftest*
7052 eval "ac_cv_header_$ac_safe=no"
7054 rm -f conftest*
7056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7057 echo "$ac_t""yes" 1>&6
7058 have_aa="true"
7059 else
7060 echo "$ac_t""no" 1>&6
7061 have_aa="false"
7064 if test x$have_aa = xtrue
7065 then
7066 PLUGINS="${PLUGINS} aa"
7067 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7072 # Check whether --with- or --without- was given.
7073 if test "${with_+set}" = set; then
7074 withval="$with_"
7079 # Check whether --enable-dsp or --disable-dsp was given.
7080 if test "${enable_dsp+set}" = set; then
7081 enableval="$enable_dsp"
7086 if test x$enable_dsp != xno &&
7087 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7088 then
7089 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7093 echo "configure:7094: checking for $ac_hdr" >&5
7094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7096 else
7097 cat > conftest.$ac_ext <<EOF
7098 #line 7099 "configure"
7099 #include "confdefs.h"
7100 #include <$ac_hdr>
7102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7103 { (eval echo configure:7104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7105 if test -z "$ac_err"; then
7106 rm -rf conftest*
7107 eval "ac_cv_header_$ac_safe=yes"
7108 else
7109 echo "$ac_err" >&5
7110 echo "configure: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7112 rm -rf conftest*
7113 eval "ac_cv_header_$ac_safe=no"
7115 rm -f conftest*
7117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7118 echo "$ac_t""yes" 1>&6
7119 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7120 cat >> confdefs.h <<EOF
7121 #define $ac_tr_hdr 1
7124 PLUGINS="${PLUGINS} dsp"
7125 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7126 echo "configure:7127: checking for main in -lossaudio" >&5
7127 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7130 else
7131 ac_save_LIBS="$LIBS"
7132 LIBS="-lossaudio $LIBS"
7133 cat > conftest.$ac_ext <<EOF
7134 #line 7135 "configure"
7135 #include "confdefs.h"
7137 int main() {
7138 main()
7139 ; return 0; }
7141 if { (eval echo configure:7142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7142 rm -rf conftest*
7143 eval "ac_cv_lib_$ac_lib_var=yes"
7144 else
7145 echo "configure: failed program was:" >&5
7146 cat conftest.$ac_ext >&5
7147 rm -rf conftest*
7148 eval "ac_cv_lib_$ac_lib_var=no"
7150 rm -f conftest*
7151 LIBS="$ac_save_LIBS"
7154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7155 echo "$ac_t""yes" 1>&6
7156 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7157 else
7158 echo "$ac_t""no" 1>&6
7162 else
7163 echo "$ac_t""no" 1>&6
7165 done
7169 # Check whether --enable-esd or --disable-esd was given.
7170 if test "${enable_esd+set}" = set; then
7171 enableval="$enable_esd"
7172 if test x$enable_esd = xyes
7173 then
7174 # Extract the first word of "esd-config", so it can be a program name with args.
7175 set dummy esd-config; ac_word=$2
7176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7177 echo "configure:7178: checking for $ac_word" >&5
7178 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7179 echo $ac_n "(cached) $ac_c" 1>&6
7180 else
7181 case "$ESD_CONFIG" in
7183 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7185 ?:/*)
7186 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7190 ac_dummy="$PATH"
7191 for ac_dir in $ac_dummy; do
7192 test -z "$ac_dir" && ac_dir=.
7193 if test -f $ac_dir/$ac_word; then
7194 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7195 break
7197 done
7198 IFS="$ac_save_ifs"
7199 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7201 esac
7203 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7204 if test -n "$ESD_CONFIG"; then
7205 echo "$ac_t""$ESD_CONFIG" 1>&6
7206 else
7207 echo "$ac_t""no" 1>&6
7210 if test x${ESD_CONFIG} != xno
7211 then
7212 PLUGINS="${PLUGINS} esd"
7213 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7214 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7220 # Check whether --enable-arts or --disable-arts was given.
7221 if test "${enable_arts+set}" = set; then
7222 enableval="$enable_arts"
7223 if test x$enable_arts = xyes
7224 then
7225 # Extract the first word of "artsc-config", so it can be a program name with args.
7226 set dummy artsc-config; ac_word=$2
7227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7228 echo "configure:7229: checking for $ac_word" >&5
7229 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7230 echo $ac_n "(cached) $ac_c" 1>&6
7231 else
7232 case "$ARTS_CONFIG" in
7234 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7236 ?:/*)
7237 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7241 ac_dummy="$PATH"
7242 for ac_dir in $ac_dummy; do
7243 test -z "$ac_dir" && ac_dir=.
7244 if test -f $ac_dir/$ac_word; then
7245 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7246 break
7248 done
7249 IFS="$ac_save_ifs"
7250 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7252 esac
7254 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7255 if test -n "$ARTS_CONFIG"; then
7256 echo "$ac_t""$ARTS_CONFIG" 1>&6
7257 else
7258 echo "$ac_t""no" 1>&6
7261 if test x${ARTS_CONFIG} != xno
7262 then
7263 PLUGINS="${PLUGINS} arts"
7264 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7265 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7271 # Check whether --enable-alsa or --disable-alsa was given.
7272 if test "${enable_alsa+set}" = set; then
7273 enableval="$enable_alsa"
7274 if test x$enable_alsa = xyes
7275 then
7276 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7277 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7278 echo "configure:7279: checking for alsa/asoundlib.h" >&5
7279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7281 else
7282 cat > conftest.$ac_ext <<EOF
7283 #line 7284 "configure"
7284 #include "confdefs.h"
7285 #include <alsa/asoundlib.h>
7287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7288 { (eval echo configure:7289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7290 if test -z "$ac_err"; then
7291 rm -rf conftest*
7292 eval "ac_cv_header_$ac_safe=yes"
7293 else
7294 echo "$ac_err" >&5
7295 echo "configure: failed program was:" >&5
7296 cat conftest.$ac_ext >&5
7297 rm -rf conftest*
7298 eval "ac_cv_header_$ac_safe=no"
7300 rm -f conftest*
7302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7303 echo "$ac_t""yes" 1>&6
7304 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7305 echo "configure:7306: checking for main in -lasound" >&5
7306 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7309 else
7310 ac_save_LIBS="$LIBS"
7311 LIBS="-lasound $LIBS"
7312 cat > conftest.$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7316 int main() {
7317 main()
7318 ; return 0; }
7320 if { (eval echo configure:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7321 rm -rf conftest*
7322 eval "ac_cv_lib_$ac_lib_var=yes"
7323 else
7324 echo "configure: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7326 rm -rf conftest*
7327 eval "ac_cv_lib_$ac_lib_var=no"
7329 rm -f conftest*
7330 LIBS="$ac_save_LIBS"
7333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7334 echo "$ac_t""yes" 1>&6
7335 have_alsa="true"
7336 else
7337 echo "$ac_t""no" 1>&6
7338 have_alsa="false"
7341 else
7342 echo "$ac_t""no" 1>&6
7343 have_alsa="false"
7346 if test x$have_alsa = xtrue
7347 then
7348 PLUGINS="${PLUGINS} alsa"
7349 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7355 # Check whether --enable-waveout or --disable-waveout was given.
7356 if test "${enable_waveout+set}" = set; then
7357 enableval="$enable_waveout"
7361 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7362 then
7363 PLUGINS="${PLUGINS} waveout"
7364 waveout_LDFLAGS="-lwinmm"
7368 # Check whether --with- or --without- was given.
7369 if test "${with_+set}" = set; then
7370 withval="$with_"
7375 # Check whether --enable-gtk or --disable-gtk was given.
7376 if test "${enable_gtk+set}" = set; then
7377 enableval="$enable_gtk"
7381 if test x$enable_gtk != xno
7382 then
7383 GTK_PATH=$PATH
7384 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7385 if test "${with_gtk_config_path+set}" = set; then
7386 withval="$with_gtk_config_path"
7387 if test "x$with_gtk_config_path" != "xno"
7388 then
7389 GTK_PATH="$with_gtk_config_path:$PATH"
7393 # look for gtk-config
7394 # Extract the first word of "gtk12-config", so it can be a program name with args.
7395 set dummy gtk12-config; ac_word=$2
7396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7397 echo "configure:7398: checking for $ac_word" >&5
7398 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7399 echo $ac_n "(cached) $ac_c" 1>&6
7400 else
7401 case "$GTK12_CONFIG" in
7403 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7405 ?:/*)
7406 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7410 ac_dummy="$GTK_PATH"
7411 for ac_dir in $ac_dummy; do
7412 test -z "$ac_dir" && ac_dir=.
7413 if test -f $ac_dir/$ac_word; then
7414 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7415 break
7417 done
7418 IFS="$ac_save_ifs"
7419 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7421 esac
7423 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7424 if test -n "$GTK12_CONFIG"; then
7425 echo "$ac_t""$GTK12_CONFIG" 1>&6
7426 else
7427 echo "$ac_t""no" 1>&6
7430 GTK_CONFIG=${GTK12_CONFIG}
7431 if test x${GTK_CONFIG} = xno
7432 then
7433 # Extract the first word of "gtk-config", so it can be a program name with args.
7434 set dummy gtk-config; ac_word=$2
7435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7436 echo "configure:7437: checking for $ac_word" >&5
7437 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7439 else
7440 case "$GTK_CONFIG" in
7442 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7444 ?:/*)
7445 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7449 ac_dummy="$GTK_PATH"
7450 for ac_dir in $ac_dummy; do
7451 test -z "$ac_dir" && ac_dir=.
7452 if test -f $ac_dir/$ac_word; then
7453 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7454 break
7456 done
7457 IFS="$ac_save_ifs"
7458 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7460 esac
7462 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7463 if test -n "$GTK_CONFIG"; then
7464 echo "$ac_t""$GTK_CONFIG" 1>&6
7465 else
7466 echo "$ac_t""no" 1>&6
7470 if test x${GTK_CONFIG} != xno
7471 then
7472 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7473 then
7474 { 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; }
7476 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7477 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7478 # now look for the gtk.h header
7479 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7480 ac_cv_gtk_headers=yes
7481 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7485 echo "configure:7486: checking for $ac_hdr" >&5
7486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7487 echo $ac_n "(cached) $ac_c" 1>&6
7488 else
7489 cat > conftest.$ac_ext <<EOF
7490 #line 7491 "configure"
7491 #include "confdefs.h"
7492 #include <$ac_hdr>
7494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7495 { (eval echo configure:7496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7497 if test -z "$ac_err"; then
7498 rm -rf conftest*
7499 eval "ac_cv_header_$ac_safe=yes"
7500 else
7501 echo "$ac_err" >&5
7502 echo "configure: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7504 rm -rf conftest*
7505 eval "ac_cv_header_$ac_safe=no"
7507 rm -f conftest*
7509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7510 echo "$ac_t""yes" 1>&6
7511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7512 cat >> confdefs.h <<EOF
7513 #define $ac_tr_hdr 1
7516 else
7517 echo "$ac_t""no" 1>&6
7518 ac_cv_gtk_headers=no
7519 echo "Cannot find gtk development headers."
7522 done
7524 if test "x$ac_cv_gtk_headers" = xyes
7525 then
7526 PLUGINS="${PLUGINS} gtk"
7527 ALIASES="${ALIASES} gvlc"
7529 CPPFLAGS="$save_CPPFLAGS"
7533 # Check whether --enable-gnome or --disable-gnome was given.
7534 if test "${enable_gnome+set}" = set; then
7535 enableval="$enable_gnome"
7536 if test x$enable_gnome = xyes; then
7537 # look for gnome-config
7538 # Extract the first word of "gnome-config", so it can be a program name with args.
7539 set dummy gnome-config; ac_word=$2
7540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7541 echo "configure:7542: checking for $ac_word" >&5
7542 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6
7544 else
7545 case "$GNOME_CONFIG" in
7547 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7549 ?:/*)
7550 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7554 ac_dummy="$PATH"
7555 for ac_dir in $ac_dummy; do
7556 test -z "$ac_dir" && ac_dir=.
7557 if test -f $ac_dir/$ac_word; then
7558 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7559 break
7561 done
7562 IFS="$ac_save_ifs"
7563 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7565 esac
7567 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7568 if test -n "$GNOME_CONFIG"; then
7569 echo "$ac_t""$GNOME_CONFIG" 1>&6
7570 else
7571 echo "$ac_t""no" 1>&6
7574 if test -x ${GNOME_CONFIG}
7575 then
7576 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7577 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7579 # now look for the gnome.h header
7580 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
7581 for ac_hdr in gnome.h
7583 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7585 echo "configure:7586: checking for $ac_hdr" >&5
7586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7587 echo $ac_n "(cached) $ac_c" 1>&6
7588 else
7589 cat > conftest.$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7592 #include <$ac_hdr>
7594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7595 { (eval echo configure:7596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7597 if test -z "$ac_err"; then
7598 rm -rf conftest*
7599 eval "ac_cv_header_$ac_safe=yes"
7600 else
7601 echo "$ac_err" >&5
7602 echo "configure: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7604 rm -rf conftest*
7605 eval "ac_cv_header_$ac_safe=no"
7607 rm -f conftest*
7609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7612 cat >> confdefs.h <<EOF
7613 #define $ac_tr_hdr 1
7616 PLUGINS="${PLUGINS} gnome"
7617 ALIASES="${ALIASES} gnome-vlc"
7619 else
7620 echo "$ac_t""no" 1>&6
7621 { echo "configure: error: Can't find gnome headers. Please install the gnome
7622 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7625 done
7627 CPPFLAGS="$save_CPPFLAGS"
7632 # Check whether --enable-qt or --disable-qt was given.
7633 if test "${enable_qt+set}" = set; then
7634 enableval="$enable_qt"
7635 if test x$enable_qt = xyes; then
7636 PLUGINS="${PLUGINS} qt"
7637 ALIASES="${ALIASES} qvlc"
7638 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7639 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7640 if test -x ${QTDIR}/bin/moc
7641 then
7642 MOC=${QTDIR}/bin/moc
7643 else
7644 MOC=moc
7650 # Check whether --enable-kde or --disable-kde was given.
7651 if test "${enable_kde+set}" = set; then
7652 enableval="$enable_kde"
7653 if test x$enable_kde = xyes; then
7654 PLUGINS="${PLUGINS} kde"
7655 ALIASES="${ALIASES} kvlc"
7656 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
7657 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
7658 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
7659 if test -x ${QTDIR}/bin/moc
7660 then
7661 MOC=${QTDIR}/bin/moc
7662 else
7663 MOC=moc
7669 # Check whether --enable-macosx or --disable-macosx was given.
7670 if test "${enable_macosx+set}" = set; then
7671 enableval="$enable_macosx"
7672 if test x$enable_macosx = xyes
7673 then
7674 BUILTINS="${BUILTINS} macosx"
7675 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7676 macosx_CFLAGS="${macosx_CFLAGS} -ObjC"
7677 LDFLAGS="${LDFLAGS} -ObjC"
7679 else
7680 for ac_hdr in Cocoa/Cocoa.h
7682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7684 echo "configure:7685: checking for $ac_hdr" >&5
7685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7687 else
7688 cat > conftest.$ac_ext <<EOF
7689 #line 7690 "configure"
7690 #include "confdefs.h"
7691 #include <$ac_hdr>
7693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7694 { (eval echo configure:7695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7696 if test -z "$ac_err"; then
7697 rm -rf conftest*
7698 eval "ac_cv_header_$ac_safe=yes"
7699 else
7700 echo "$ac_err" >&5
7701 echo "configure: failed program was:" >&5
7702 cat conftest.$ac_ext >&5
7703 rm -rf conftest*
7704 eval "ac_cv_header_$ac_safe=no"
7706 rm -f conftest*
7708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7709 echo "$ac_t""yes" 1>&6
7710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7711 cat >> confdefs.h <<EOF
7712 #define $ac_tr_hdr 1
7714 BUILTINS="${BUILTINS} macosx"
7715 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7716 macosx_CFLAGS="${macosx_CFLAGS} -ObjC"
7717 LDFLAGS="${LDFLAGS} -ObjC"
7719 else
7720 echo "$ac_t""no" 1>&6
7722 done
7727 # Check whether --enable-qnx or --disable-qnx was given.
7728 if test "${enable_qnx+set}" = set; then
7729 enableval="$enable_qnx"
7733 if test x$enable_qnx != xno
7734 then
7735 for ac_hdr in Ph.h
7737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7739 echo "configure:7740: checking for $ac_hdr" >&5
7740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7742 else
7743 cat > conftest.$ac_ext <<EOF
7744 #line 7745 "configure"
7745 #include "confdefs.h"
7746 #include <$ac_hdr>
7748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7749 { (eval echo configure:7750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7751 if test -z "$ac_err"; then
7752 rm -rf conftest*
7753 eval "ac_cv_header_$ac_safe=yes"
7754 else
7755 echo "$ac_err" >&5
7756 echo "configure: failed program was:" >&5
7757 cat conftest.$ac_ext >&5
7758 rm -rf conftest*
7759 eval "ac_cv_header_$ac_safe=no"
7761 rm -f conftest*
7763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7764 echo "$ac_t""yes" 1>&6
7765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7766 cat >> confdefs.h <<EOF
7767 #define $ac_tr_hdr 1
7770 PLUGINS="${PLUGINS} qnx"
7771 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
7773 else
7774 echo "$ac_t""no" 1>&6
7776 done
7780 # Check whether --enable-intfwin or --disable-intfwin was given.
7781 if test "${enable_intfwin+set}" = set; then
7782 enableval="$enable_intfwin"
7783 if test "x$enable_intfwin" != "xno"
7784 then
7785 # Check whether --with-bcbuilder or --without-bcbuilder was given.
7786 if test "${with_bcbuilder+set}" = set; then
7787 withval="$with_bcbuilder"
7791 if test "x$with_bcbuilder" != "x"
7792 then
7793 BCBUILDER="$with_bcbuilder"
7795 PLUGINS="${PLUGINS} intfwin"
7800 # Check whether --enable-ncurses or --disable-ncurses was given.
7801 if test "${enable_ncurses+set}" = set; then
7802 enableval="$enable_ncurses"
7803 if test x$enable_ncurses = xyes; then
7804 PLUGINS="${PLUGINS} ncurses"
7805 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
7810 # Check whether --enable-lirc or --disable-lirc was given.
7811 if test "${enable_lirc+set}" = set; then
7812 enableval="$enable_lirc"
7816 if test x$enable_lirc = xyes
7817 then
7818 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7819 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7820 echo "configure:7821: checking for lirc/lirc_client.h" >&5
7821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7822 echo $ac_n "(cached) $ac_c" 1>&6
7823 else
7824 cat > conftest.$ac_ext <<EOF
7825 #line 7826 "configure"
7826 #include "confdefs.h"
7827 #include <lirc/lirc_client.h>
7829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7830 { (eval echo configure:7831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7832 if test -z "$ac_err"; then
7833 rm -rf conftest*
7834 eval "ac_cv_header_$ac_safe=yes"
7835 else
7836 echo "$ac_err" >&5
7837 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 rm -rf conftest*
7840 eval "ac_cv_header_$ac_safe=no"
7842 rm -f conftest*
7844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7845 echo "$ac_t""yes" 1>&6
7846 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
7847 echo "configure:7848: checking for lirc_init in -llirc_client" >&5
7848 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
7849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7851 else
7852 ac_save_LIBS="$LIBS"
7853 LIBS="-llirc_client $LIBS"
7854 cat > conftest.$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7857 /* Override any gcc2 internal prototype to avoid an error. */
7858 /* We use char because int might match the return type of a gcc2
7859 builtin and then its argument prototype would still apply. */
7860 char lirc_init();
7862 int main() {
7863 lirc_init()
7864 ; return 0; }
7866 if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7867 rm -rf conftest*
7868 eval "ac_cv_lib_$ac_lib_var=yes"
7869 else
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7872 rm -rf conftest*
7873 eval "ac_cv_lib_$ac_lib_var=no"
7875 rm -f conftest*
7876 LIBS="$ac_save_LIBS"
7879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7880 echo "$ac_t""yes" 1>&6
7881 have_lirc="true"
7882 else
7883 echo "$ac_t""no" 1>&6
7884 have_lirc="false"
7887 else
7888 echo "$ac_t""no" 1>&6
7889 have_lirc="false"
7892 if test x$have_lirc = xtrue
7893 then
7894 PLUGINS="${PLUGINS} lirc"
7895 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
7899 # Check whether --with- or --without- was given.
7900 if test "${with_+set}" = set; then
7901 withval="$with_"
7906 # Check whether --with-words or --without-words was given.
7907 if test "${with_words+set}" = set; then
7908 withval="$with_words"
7912 case "x$with_words" in
7913 xbig)
7914 ac_cv_c_bigendian=yes
7916 xlittle)
7917 ac_cv_c_bigendian=no
7920 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
7921 echo "configure:7922: checking whether the byte order is big-endian" >&5
7922 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7923 echo $ac_n "(cached) $ac_c" 1>&6
7924 else
7925 ac_cv_c_bigendian=unknown
7926 cat >conftest.c <<EOF
7927 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
7928 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
7929 void _a(void) { char*s = (char*)am; s = (char *)ai; }
7930 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
7931 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
7932 void _e(void) { char*s = (char*)em; s = (char*)ei; }
7933 int main(void) { _a(); _e(); return 0; }
7936 if test -f conftest.c
7937 then
7938 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
7939 && test -f conftest.o
7940 then
7941 if test "`strings conftest.o | grep BIGenDianSyS`"
7942 then
7943 ac_cv_c_bigendian=yes
7945 if test "`strings conftest.o | grep LiTTleEnDian`"
7946 then
7947 ac_cv_c_bigendian=no
7954 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7955 if test x$ac_cv_c_bigendian = xunknown
7956 then
7957 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
7960 esac
7961 if test $ac_cv_c_bigendian = yes
7962 then
7963 cat >> confdefs.h <<\EOF
7964 #define WORDS_BIGENDIAN 1
7969 GPROF=0
7970 # Check whether --enable-gprof or --disable-gprof was given.
7971 if test "${enable_gprof+set}" = set; then
7972 enableval="$enable_gprof"
7973 if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
7977 CPROF=0
7978 # Check whether --enable-cprof or --disable-cprof was given.
7979 if test "${enable_cprof+set}" = set; then
7980 enableval="$enable_cprof"
7981 if test "x$enable_cprof" = "xyes";
7982 then
7983 LDFLAGS="${LDFLAGS} -lcprof"
7984 CPROF=1
7990 # Check whether --enable-pth or --disable-pth was given.
7991 if test "${enable_pth+set}" = set; then
7992 enableval="$enable_pth"
7993 if test "x$enable_pth" = "xyes"; then
7994 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
7995 echo "configure:7996: checking for pth_init in -lpth" >&5
7996 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
7997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7998 echo $ac_n "(cached) $ac_c" 1>&6
7999 else
8000 ac_save_LIBS="$LIBS"
8001 LIBS="-lpth $LIBS"
8002 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8005 /* Override any gcc2 internal prototype to avoid an error. */
8006 /* We use char because int might match the return type of a gcc2
8007 builtin and then its argument prototype would still apply. */
8008 char pth_init();
8010 int main() {
8011 pth_init()
8012 ; return 0; }
8014 if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8015 rm -rf conftest*
8016 eval "ac_cv_lib_$ac_lib_var=yes"
8017 else
8018 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 rm -rf conftest*
8021 eval "ac_cv_lib_$ac_lib_var=no"
8023 rm -f conftest*
8024 LIBS="$ac_save_LIBS"
8027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8028 echo "$ac_t""yes" 1>&6
8029 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8030 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8031 cat >> confdefs.h <<EOF
8032 #define $ac_tr_lib 1
8035 LIBS="-lpth $LIBS"
8037 else
8038 echo "$ac_t""no" 1>&6
8041 cat > conftest.$ac_ext <<EOF
8042 #line 8043 "configure"
8043 #include "confdefs.h"
8044 #include <pth.h>
8046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8047 egrep "pth_init" >/dev/null 2>&1; then
8048 rm -rf conftest*
8050 cat >> confdefs.h <<\EOF
8051 #define PTH_INIT_IN_PTH_H 1
8054 THREAD_LIB="-lpth"
8057 rm -f conftest*
8063 # Check whether --enable-st or --disable-st was given.
8064 if test "${enable_st+set}" = set; then
8065 enableval="$enable_st"
8066 if test "x$enable_st" = "xyes"; then
8067 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8068 echo "configure:8069: checking for st_init in -lst" >&5
8069 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8072 else
8073 ac_save_LIBS="$LIBS"
8074 LIBS="-lst $LIBS"
8075 cat > conftest.$ac_ext <<EOF
8076 #line 8077 "configure"
8077 #include "confdefs.h"
8078 /* Override any gcc2 internal prototype to avoid an error. */
8079 /* We use char because int might match the return type of a gcc2
8080 builtin and then its argument prototype would still apply. */
8081 char st_init();
8083 int main() {
8084 st_init()
8085 ; return 0; }
8087 if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8088 rm -rf conftest*
8089 eval "ac_cv_lib_$ac_lib_var=yes"
8090 else
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8093 rm -rf conftest*
8094 eval "ac_cv_lib_$ac_lib_var=no"
8096 rm -f conftest*
8097 LIBS="$ac_save_LIBS"
8100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8101 echo "$ac_t""yes" 1>&6
8102 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8103 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8104 cat >> confdefs.h <<EOF
8105 #define $ac_tr_lib 1
8108 LIBS="-lst $LIBS"
8110 else
8111 echo "$ac_t""no" 1>&6
8114 cat > conftest.$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8117 #include <st.h>
8119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8120 egrep "st_init" >/dev/null 2>&1; then
8121 rm -rf conftest*
8123 cat >> confdefs.h <<\EOF
8124 #define ST_INIT_IN_ST_H 1
8127 THREAD_LIB="-lst"
8130 rm -f conftest*
8136 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
8138 # Check whether --enable-plugins or --disable-plugins was given.
8139 if test "${enable_plugins+set}" = set; then
8140 enableval="$enable_plugins"
8141 if test x$enable_plugins = xno
8142 then
8143 BUILTINS="${BUILTINS} ${PLUGINS}"
8144 PLUGINS=
8149 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8150 then
8151 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8152 echo "as built-in"
8153 BUILTINS="${BUILTINS} ${PLUGINS}"
8154 PLUGINS=
8157 cat >> confdefs.h <<EOF
8158 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8161 cat >> confdefs.h <<EOF
8162 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8166 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8167 cat >> confdefs.h <<EOF
8168 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8171 cat >> confdefs.h <<EOF
8172 #define MODULE_SYMBOL $VLC_SYMBOL
8176 DATA_PATH="${ac_tool_prefix}/share/videolan"
8178 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8273 trap '' 1 2 15
8274 cat > confcache <<\EOF
8275 # This file is a shell script that caches the results of configure
8276 # tests run on this system so they can be shared between configure
8277 # scripts and configure runs. It is not useful on other systems.
8278 # If it contains results you don't want to keep, you may remove or edit it.
8280 # By default, configure uses ./config.cache as the cache file,
8281 # creating it if it does not exist already. You can give configure
8282 # the --cache-file=FILE option to use a different cache file; that is
8283 # what configure does when it calls configure scripts in
8284 # subdirectories, so they share the cache.
8285 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8286 # config.status only pays attention to the cache file if you give it the
8287 # --recheck option to rerun configure.
8290 # The following way of writing the cache mishandles newlines in values,
8291 # but we know of no workaround that is simple, portable, and efficient.
8292 # So, don't put newlines in cache variables' values.
8293 # Ultrix sh set writes to stderr and can't be redirected directly,
8294 # and sets the high bit in the cache file unless we assign to the vars.
8295 (set) 2>&1 |
8296 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8297 *ac_space=\ *)
8298 # `set' does not quote correctly, so add quotes (double-quote substitution
8299 # turns \\\\ into \\, and sed turns \\ into \).
8300 sed -n \
8301 -e "s/'/'\\\\''/g" \
8302 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8305 # `set' quotes correctly as required by POSIX, so do not add quotes.
8306 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8308 esac >> confcache
8309 if cmp -s $cache_file confcache; then
8311 else
8312 if test -w $cache_file; then
8313 echo "updating cache $cache_file"
8314 cat confcache > $cache_file
8315 else
8316 echo "not updating unwritable cache $cache_file"
8319 rm -f confcache
8321 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8323 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8324 # Let make expand exec_prefix.
8325 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8327 # Any assignment to VPATH causes Sun make to only execute
8328 # the first set of double-colon rules, so remove it if not needed.
8329 # If there is a colon in the path, we need to keep it.
8330 if test "x$srcdir" = x.; then
8331 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8334 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8336 DEFS=-DHAVE_CONFIG_H
8338 # Without the "./", some shells look in PATH for config.status.
8339 : ${CONFIG_STATUS=./config.status}
8341 echo creating $CONFIG_STATUS
8342 rm -f $CONFIG_STATUS
8343 cat > $CONFIG_STATUS <<EOF
8344 #! /bin/sh
8345 # Generated automatically by configure.
8346 # Run this file to recreate the current configuration.
8347 # This directory was configured as follows,
8348 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8350 # $0 $ac_configure_args
8352 # Compiler output produced by configure, useful for debugging
8353 # configure, is in ./config.log if it exists.
8355 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8356 for ac_option
8358 case "\$ac_option" in
8359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8360 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8361 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8362 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8363 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8364 exit 0 ;;
8365 -help | --help | --hel | --he | --h)
8366 echo "\$ac_cs_usage"; exit 0 ;;
8367 *) echo "\$ac_cs_usage"; exit 1 ;;
8368 esac
8369 done
8371 ac_given_srcdir=$srcdir
8372 ac_given_INSTALL="$INSTALL"
8374 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8376 cat >> $CONFIG_STATUS <<EOF
8378 # Protect against being on the right side of a sed subst in config.status.
8379 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8380 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8381 $ac_vpsub
8382 $extrasub
8383 s%@SHELL@%$SHELL%g
8384 s%@CFLAGS@%$CFLAGS%g
8385 s%@CPPFLAGS@%$CPPFLAGS%g
8386 s%@CXXFLAGS@%$CXXFLAGS%g
8387 s%@FFLAGS@%$FFLAGS%g
8388 s%@DEFS@%$DEFS%g
8389 s%@LDFLAGS@%$LDFLAGS%g
8390 s%@LIBS@%$LIBS%g
8391 s%@exec_prefix@%$exec_prefix%g
8392 s%@prefix@%$prefix%g
8393 s%@program_transform_name@%$program_transform_name%g
8394 s%@bindir@%$bindir%g
8395 s%@sbindir@%$sbindir%g
8396 s%@libexecdir@%$libexecdir%g
8397 s%@datadir@%$datadir%g
8398 s%@sysconfdir@%$sysconfdir%g
8399 s%@sharedstatedir@%$sharedstatedir%g
8400 s%@localstatedir@%$localstatedir%g
8401 s%@libdir@%$libdir%g
8402 s%@includedir@%$includedir%g
8403 s%@oldincludedir@%$oldincludedir%g
8404 s%@infodir@%$infodir%g
8405 s%@mandir@%$mandir%g
8406 s%@host@%$host%g
8407 s%@host_alias@%$host_alias%g
8408 s%@host_cpu@%$host_cpu%g
8409 s%@host_vendor@%$host_vendor%g
8410 s%@host_os@%$host_os%g
8411 s%@target@%$target%g
8412 s%@target_alias@%$target_alias%g
8413 s%@target_cpu@%$target_cpu%g
8414 s%@target_vendor@%$target_vendor%g
8415 s%@target_os@%$target_os%g
8416 s%@build@%$build%g
8417 s%@build_alias@%$build_alias%g
8418 s%@build_cpu@%$build_cpu%g
8419 s%@build_vendor@%$build_vendor%g
8420 s%@build_os@%$build_os%g
8421 s%@SET_MAKE@%$SET_MAKE%g
8422 s%@CC@%$CC%g
8423 s%@CPP@%$CPP%g
8424 s%@RANLIB@%$RANLIB%g
8425 s%@STRIP@%$STRIP%g
8426 s%@GMAKE@%$GMAKE%g
8427 s%@ALLOCA@%$ALLOCA%g
8428 s%@GLIBC21@%$GLIBC21%g
8429 s%@LIBICONV@%$LIBICONV%g
8430 s%@USE_NLS@%$USE_NLS%g
8431 s%@MSGFMT@%$MSGFMT%g
8432 s%@GMSGFMT@%$GMSGFMT%g
8433 s%@XGETTEXT@%$XGETTEXT%g
8434 s%@INTLBISON@%$INTLBISON%g
8435 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8436 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8437 s%@CATALOGS@%$CATALOGS%g
8438 s%@CATOBJEXT@%$CATOBJEXT%g
8439 s%@GMOFILES@%$GMOFILES%g
8440 s%@INTLLIBS@%$INTLLIBS%g
8441 s%@INTLOBJS@%$INTLOBJS%g
8442 s%@POFILES@%$POFILES%g
8443 s%@POSUB@%$POSUB%g
8444 s%@DATADIRNAME@%$DATADIRNAME%g
8445 s%@INSTOBJEXT@%$INSTOBJEXT%g
8446 s%@GENCAT@%$GENCAT%g
8447 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8448 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8449 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8450 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8451 s%@INSTALL_DATA@%$INSTALL_DATA%g
8452 s%@WINDRES@%$WINDRES%g
8453 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8454 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8455 s%@SDL_CONFIG@%$SDL_CONFIG%g
8456 s%@ESD_CONFIG@%$ESD_CONFIG%g
8457 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8458 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8459 s%@GTK_CONFIG@%$GTK_CONFIG%g
8460 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8461 s%@DATA_PATH@%$DATA_PATH%g
8462 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8463 s%@SYS@%$SYS%g
8464 s%@ARCH@%$ARCH%g
8465 s%@PLUGINS@%$PLUGINS%g
8466 s%@BUILTINS@%$BUILTINS%g
8467 s%@ALIASES@%$ALIASES%g
8468 s%@DEBUG@%$DEBUG%g
8469 s%@ASM@%$ASM%g
8470 s%@CPROF@%$CPROF%g
8471 s%@GPROF@%$GPROF%g
8472 s%@OPTIMS@%$OPTIMS%g
8473 s%@TUNING@%$TUNING%g
8474 s%@RELEASE@%$RELEASE%g
8475 s%@MOC@%$MOC%g
8476 s%@BCBUILDER@%$BCBUILDER%g
8477 s%@PACKAGE@%$PACKAGE%g
8478 s%@VERSION@%$VERSION%g
8479 s%@NEED_GETOPT@%$NEED_GETOPT%g
8480 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8481 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8482 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8483 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8484 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8485 s%@arts_CFLAGS@%$arts_CFLAGS%g
8486 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8487 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8488 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8489 s%@directx_CFLAGS@%$directx_CFLAGS%g
8490 s%@esd_CFLAGS@%$esd_CFLAGS%g
8491 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8492 s%@glide_CFLAGS@%$glide_CFLAGS%g
8493 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8494 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8495 s%@kde_CFLAGS@%$kde_CFLAGS%g
8496 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8497 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8498 s%@mad_CFLAGS@%$mad_CFLAGS%g
8499 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8500 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8501 s%@qt_CFLAGS@%$qt_CFLAGS%g
8502 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8503 s%@x11_CFLAGS@%$x11_CFLAGS%g
8504 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8505 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8506 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8507 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8508 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8509 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8510 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8511 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8512 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8513 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8514 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8515 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8516 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8517 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8518 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8519 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8520 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8521 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8522 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8523 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8524 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8525 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8526 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8527 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8528 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8529 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8530 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8531 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8532 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8533 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8534 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8535 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8536 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8537 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8538 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8539 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8540 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8541 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8542 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8543 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8544 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8545 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8546 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8548 CEOF
8551 cat >> $CONFIG_STATUS <<\EOF
8553 # Split the substitutions into bite-sized pieces for seds with
8554 # small command number limits, like on Digital OSF/1 and HP-UX.
8555 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8556 ac_file=1 # Number of current file.
8557 ac_beg=1 # First line for current file.
8558 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8559 ac_more_lines=:
8560 ac_sed_cmds=""
8561 while $ac_more_lines; do
8562 if test $ac_beg -gt 1; then
8563 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8564 else
8565 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8567 if test ! -s conftest.s$ac_file; then
8568 ac_more_lines=false
8569 rm -f conftest.s$ac_file
8570 else
8571 if test -z "$ac_sed_cmds"; then
8572 ac_sed_cmds="sed -f conftest.s$ac_file"
8573 else
8574 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8576 ac_file=`expr $ac_file + 1`
8577 ac_beg=$ac_end
8578 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8580 done
8581 if test -z "$ac_sed_cmds"; then
8582 ac_sed_cmds=cat
8586 cat >> $CONFIG_STATUS <<EOF
8588 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8590 cat >> $CONFIG_STATUS <<\EOF
8591 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8592 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8593 case "$ac_file" in
8594 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8595 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8596 *) ac_file_in="${ac_file}.in" ;;
8597 esac
8599 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8601 # Remove last slash and all that follows it. Not all systems have dirname.
8602 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8603 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8604 # The file is in a subdirectory.
8605 test ! -d "$ac_dir" && mkdir "$ac_dir"
8606 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8607 # A "../" for each directory in $ac_dir_suffix.
8608 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8609 else
8610 ac_dir_suffix= ac_dots=
8613 case "$ac_given_srcdir" in
8614 .) srcdir=.
8615 if test -z "$ac_dots"; then top_srcdir=.
8616 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8617 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8618 *) # Relative path.
8619 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8620 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8621 esac
8623 case "$ac_given_INSTALL" in
8624 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8625 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8626 esac
8628 echo creating "$ac_file"
8629 rm -f "$ac_file"
8630 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8631 case "$ac_file" in
8632 *Makefile*) ac_comsub="1i\\
8633 # $configure_input" ;;
8634 *) ac_comsub= ;;
8635 esac
8637 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8638 sed -e "$ac_comsub
8639 s%@configure_input@%$configure_input%g
8640 s%@srcdir@%$srcdir%g
8641 s%@top_srcdir@%$top_srcdir%g
8642 s%@INSTALL@%$INSTALL%g
8643 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8644 fi; done
8645 rm -f conftest.s*
8647 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8648 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8650 # ac_d sets the value in "#define NAME VALUE" lines.
8651 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8652 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8653 ac_dC='\3'
8654 ac_dD='%g'
8655 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8656 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8657 ac_uB='\([ ]\)%\1#\2define\3'
8658 ac_uC=' '
8659 ac_uD='\4%g'
8660 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8661 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8662 ac_eB='$%\1#\2define\3'
8663 ac_eC=' '
8664 ac_eD='%g'
8666 if test "${CONFIG_HEADERS+set}" != set; then
8668 cat >> $CONFIG_STATUS <<EOF
8669 CONFIG_HEADERS="include/defs.h"
8671 cat >> $CONFIG_STATUS <<\EOF
8673 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8675 case "$ac_file" in
8676 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8677 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8678 *) ac_file_in="${ac_file}.in" ;;
8679 esac
8681 echo creating $ac_file
8683 rm -f conftest.frag conftest.in conftest.out
8684 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8685 cat $ac_file_inputs > conftest.in
8689 # Transform confdefs.h into a sed script conftest.vals that substitutes
8690 # the proper values into config.h.in to produce config.h. And first:
8691 # Protect against being on the right side of a sed subst in config.status.
8692 # Protect against being in an unquoted here document in config.status.
8693 rm -f conftest.vals
8694 cat > conftest.hdr <<\EOF
8695 s/[\\&%]/\\&/g
8696 s%[\\$`]%\\&%g
8697 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8698 s%ac_d%ac_u%gp
8699 s%ac_u%ac_e%gp
8701 sed -n -f conftest.hdr confdefs.h > conftest.vals
8702 rm -f conftest.hdr
8704 # This sed command replaces #undef with comments. This is necessary, for
8705 # example, in the case of _POSIX_SOURCE, which is predefined and required
8706 # on some systems where configure will not decide to define it.
8707 cat >> conftest.vals <<\EOF
8708 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8711 # Break up conftest.vals because some shells have a limit on
8712 # the size of here documents, and old seds have small limits too.
8714 rm -f conftest.tail
8715 while :
8717 ac_lines=`grep -c . conftest.vals`
8718 # grep -c gives empty output for an empty file on some AIX systems.
8719 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8720 # Write a limited-size here document to conftest.frag.
8721 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8722 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8723 echo 'CEOF
8724 sed -f conftest.frag conftest.in > conftest.out
8725 rm -f conftest.in
8726 mv conftest.out conftest.in
8727 ' >> $CONFIG_STATUS
8728 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8729 rm -f conftest.vals
8730 mv conftest.tail conftest.vals
8731 done
8732 rm -f conftest.vals
8734 cat >> $CONFIG_STATUS <<\EOF
8735 rm -f conftest.frag conftest.h
8736 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8737 cat conftest.in >> conftest.h
8738 rm -f conftest.in
8739 if cmp -s $ac_file conftest.h 2>/dev/null; then
8740 echo "$ac_file is unchanged"
8741 rm -f conftest.h
8742 else
8743 # Remove last slash and all that follows it. Not all systems have dirname.
8744 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8745 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8746 # The file is in a subdirectory.
8747 test ! -d "$ac_dir" && mkdir "$ac_dir"
8749 rm -f $ac_file
8750 mv conftest.h $ac_file
8752 fi; done
8755 cat >> $CONFIG_STATUS <<EOF
8759 cat >> $CONFIG_STATUS <<\EOF
8760 for ac_file in $CONFIG_FILES; do
8761 # Support "outfile[:infile[:infile...]]"
8762 case "$ac_file" in
8763 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8764 esac
8765 # PO directories have a Makefile.in generated from Makefile.in.in.
8766 case "$ac_file" in */Makefile.in)
8767 # Adjust a relative srcdir.
8768 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8769 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8770 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8771 # In autoconf-2.13 it is called $ac_given_srcdir.
8772 # In autoconf-2.50 it is called $srcdir.
8773 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8774 case "$ac_given_srcdir" in
8775 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8776 /*) top_srcdir="$ac_given_srcdir" ;;
8777 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8778 esac
8779 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8780 rm -f "$ac_dir/POTFILES"
8781 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8782 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8783 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8784 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8787 esac
8788 done
8790 exit 0
8792 chmod +x $CONFIG_STATUS
8793 rm -fr confdefs* $ac_clean_files
8794 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8797 echo "
8798 vlc configuration
8799 --------------------
8800 vlc version : ${VERSION}
8801 system : ${SYS}
8802 architecture : ${ARCH}
8803 optimizations : ${OPTIMS}
8804 tuning : ${TUNING}
8805 debug mode : ${DEBUG}
8806 release : ${RELEASE}
8807 cprof/gprof support : ${CPROF}/${GPROF}
8808 need builtin getopt : ${NEED_GETOPT}
8809 built-in modules :${BUILTINS}
8810 plug-in modules :${PLUGINS}
8811 vlc aliases :${ALIASES}
8813 You may now tune Makefile.opts at your convenience, for instance to choose
8814 which modules get compiled as plugins.
8816 To build vlc and its plugins, type \`$VLC_MAKE'.