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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable altivec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-dvbpsi dvbpsi ts demux module (default disabled)"
50 --with-dvbpsi=PATH libdvbpsi headers and libraries"
52 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
54 --enable-satellite satellite card support (default disabled)"
56 --enable-avi AVI demux module (default enabled)"
60 --enable-mad libmad module (default disabled)"
62 --with-mad=PATH path to libmad"
64 --with-mad-tree=PATH mad tree for static linking"
66 --enable-ffmpeg ffmpeg codec (default disabled)"
68 --with-ffmpeg=PATH path to ffmpeg installation"
70 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
72 --enable-a52 AC3 support with liba52 (default enabled)"
74 --with-a52-tree=PATH a52dec tree for static linking "
76 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
80 --enable-x11 X11 support (default enabled)"
82 --enable-xvideo XVideo support (default enabled)"
84 --enable-sdl SDL support (default enabled)"
86 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
88 --enable-directx Win32 DirectX support (default enabled on Win32)"
90 --with-directx=PATH Win32 DirectX headers and libraries"
92 --enable-fb Linux framebuffer support (default enabled on Linux)"
94 --enable-mga Linux kernel Matrox support (default disabled)"
96 --enable-ggi GGI support (default disabled)"
98 --with-ggi=PATH path to libggi"
100 --enable-glide Glide (3dfx) support (default disabled)"
102 --with-glide=PATH path to libglide"
104 --enable-aa aalib output (default disabled)"
108 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
110 --enable-esd Esound library support (default disabled)"
112 --enable-arts aRts sound server (default disabled)"
114 --enable-alsa ALSA sound support for Linux (default disabled)"
116 --enable-waveout Win32 waveOut module (default enabled on Win32)"
120 --enable-gtk Gtk+ support (default enabled)"
122 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
124 --enable-gnome Gnome interface support (default disabled)"
126 --enable-qt Qt interface support (default disabled)"
128 --enable-kde KDE interface support (default disabled)"
130 --enable-macosx MacOS X support (default enabled on MacOS X)"
132 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
134 --enable-intfwin Win32 interface support (default disabled)"
136 --with-bcbuilder=PATH Borland C++ Builder installation path"
138 --enable-ncurses ncurses interface support (default disabled)"
140 --enable-lirc lirc support (default disabled)"
144 --with-words=endianness set endianness (big or little)"
146 --enable-gprof gprof profiling (default disabled)"
148 --enable-cprof cprof profiling (default disabled)"
150 --enable-pth GNU Pth support (default disabled)"
152 --enable-st State Threads (default disabled)"
154 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
156 # Initialize some variables set by options.
157 # The variables have the same names as the options, with
158 # dashes changed to underlines.
160 cache_file=./config.cache
169 program_transform_name=s,x,x,
177 bindir='${exec_prefix}/bin'
178 sbindir='${exec_prefix}/sbin'
179 libexecdir='${exec_prefix}/libexec'
180 datadir='${prefix}/share'
181 sysconfdir='${prefix}/etc'
182 sharedstatedir='${prefix}/com'
183 localstatedir='${prefix}/var'
184 libdir='${exec_prefix}/lib'
185 includedir='${prefix}/include'
186 oldincludedir='/usr/include'
187 infodir='${prefix}/info'
188 mandir='${prefix}/man'
190 # Initialize some other variables.
193 SHELL=${CONFIG_SHELL-/bin/sh}
194 # Maximum number of lines to put in a shell here document.
201 # If the previous option needs an argument, assign it.
202 if test -n "$ac_prev"; then
203 eval "$ac_prev=\$ac_option"
209 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
213 # Accept the important Cygnus configure options, so we can diagnose typos.
217 -bindir | --bindir | --bindi | --bind | --bin | --bi)
219 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
220 bindir="$ac_optarg" ;;
222 -build | --build | --buil | --bui | --bu)
224 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
225 build="$ac_optarg" ;;
227 -cache-file | --cache-file | --cache-fil | --cache-fi \
228 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
229 ac_prev=cache_file ;;
230 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
231 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
232 cache_file="$ac_optarg" ;;
234 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
236 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
238 datadir="$ac_optarg" ;;
240 -disable-* | --disable-*)
241 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
242 # Reject names that are not valid shell variable names.
243 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
244 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
246 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
247 eval "enable_${ac_feature}=no" ;;
249 -enable-* | --enable-*)
250 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
251 # Reject names that are not valid shell variable names.
252 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
253 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
255 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
260 eval "enable_${ac_feature}='$ac_optarg'" ;;
262 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
263 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
264 | --exec | --exe | --ex)
265 ac_prev=exec_prefix ;;
266 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
267 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
268 | --exec=* | --exe=* | --ex=*)
269 exec_prefix="$ac_optarg" ;;
271 -gas | --gas | --ga | --g)
272 # Obsolete; use --with-gas.
275 -help | --help | --hel | --he)
276 # Omit some internal or obsolete options to make the list less imposing.
277 # This message is too long to be a string in the A/UX 3.1 sh.
279 Usage: configure [options] [host]
280 Options: [defaults in brackets after descriptions]
282 --cache-file=FILE cache test results in FILE
283 --help print this message
284 --no-create do not create output files
285 --quiet, --silent do not print \`checking...' messages
286 --version print the version of autoconf that created configure
287 Directory and file names:
288 --prefix=PREFIX install architecture-independent files in PREFIX
290 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
292 --bindir=DIR user executables in DIR [EPREFIX/bin]
293 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
294 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
295 --datadir=DIR read-only architecture-independent data in DIR
297 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
298 --sharedstatedir=DIR modifiable architecture-independent data in DIR
300 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
301 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
302 --includedir=DIR C header files in DIR [PREFIX/include]
303 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
304 --infodir=DIR info documentation in DIR [PREFIX/info]
305 --mandir=DIR man documentation in DIR [PREFIX/man]
306 --srcdir=DIR find the sources in DIR [configure dir or ..]
307 --program-prefix=PREFIX prepend PREFIX to installed program names
308 --program-suffix=SUFFIX append SUFFIX to installed program names
309 --program-transform-name=PROGRAM
310 run sed PROGRAM on installed program names
314 --build=BUILD configure for building on BUILD [BUILD=HOST]
315 --host=HOST configure for HOST [guessed]
316 --target=TARGET configure for TARGET [TARGET=HOST]
317 Features and packages:
318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
320 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
321 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
322 --x-includes=DIR X include files are in DIR
323 --x-libraries=DIR X library files are in DIR
325 if test -n "$ac_help"; then
326 echo "--enable and --with options recognized:$ac_help"
330 -host | --host | --hos | --ho)
332 -host=* | --host=* | --hos=* | --ho=*)
335 -includedir | --includedir | --includedi | --included | --include \
336 | --includ | --inclu | --incl | --inc)
337 ac_prev=includedir ;;
338 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
339 | --includ=* | --inclu=* | --incl=* | --inc=*)
340 includedir="$ac_optarg" ;;
342 -infodir | --infodir | --infodi | --infod | --info | --inf)
344 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
345 infodir="$ac_optarg" ;;
347 -libdir | --libdir | --libdi | --libd)
349 -libdir=* | --libdir=* | --libdi=* | --libd=*)
350 libdir="$ac_optarg" ;;
352 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
353 | --libexe | --libex | --libe)
354 ac_prev=libexecdir ;;
355 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
356 | --libexe=* | --libex=* | --libe=*)
357 libexecdir="$ac_optarg" ;;
359 -localstatedir | --localstatedir | --localstatedi | --localstated \
360 | --localstate | --localstat | --localsta | --localst \
361 | --locals | --local | --loca | --loc | --lo)
362 ac_prev=localstatedir ;;
363 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
364 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
365 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
366 localstatedir="$ac_optarg" ;;
368 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
370 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
371 mandir="$ac_optarg" ;;
374 # Obsolete; use --without-fp.
377 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
381 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
382 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
385 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
386 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
387 | --oldin | --oldi | --old | --ol | --o)
388 ac_prev=oldincludedir ;;
389 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
390 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
391 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
392 oldincludedir="$ac_optarg" ;;
394 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
396 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
397 prefix="$ac_optarg" ;;
399 -program-prefix | --program-prefix | --program-prefi | --program-pref \
400 | --program-pre | --program-pr | --program-p)
401 ac_prev=program_prefix ;;
402 -program-prefix=* | --program-prefix=* | --program-prefi=* \
403 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
404 program_prefix="$ac_optarg" ;;
406 -program-suffix | --program-suffix | --program-suffi | --program-suff \
407 | --program-suf | --program-su | --program-s)
408 ac_prev=program_suffix ;;
409 -program-suffix=* | --program-suffix=* | --program-suffi=* \
410 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
411 program_suffix="$ac_optarg" ;;
413 -program-transform-name | --program-transform-name \
414 | --program-transform-nam | --program-transform-na \
415 | --program-transform-n | --program-transform- \
416 | --program-transform | --program-transfor \
417 | --program-transfo | --program-transf \
418 | --program-trans | --program-tran \
419 | --progr-tra | --program-tr | --program-t)
420 ac_prev=program_transform_name ;;
421 -program-transform-name=* | --program-transform-name=* \
422 | --program-transform-nam=* | --program-transform-na=* \
423 | --program-transform-n=* | --program-transform-=* \
424 | --program-transform=* | --program-transfor=* \
425 | --program-transfo=* | --program-transf=* \
426 | --program-trans=* | --program-tran=* \
427 | --progr-tra=* | --program-tr=* | --program-t=*)
428 program_transform_name="$ac_optarg" ;;
430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
431 | -silent | --silent | --silen | --sile | --sil)
434 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
436 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
438 sbindir="$ac_optarg" ;;
440 -sharedstatedir | --sharedstatedir | --sharedstatedi \
441 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
442 | --sharedst | --shareds | --shared | --share | --shar \
444 ac_prev=sharedstatedir ;;
445 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
446 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
447 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
449 sharedstatedir="$ac_optarg" ;;
451 -site | --site | --sit)
453 -site=* | --site=* | --sit=*)
456 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
458 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
459 srcdir="$ac_optarg" ;;
461 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
462 | --syscon | --sysco | --sysc | --sys | --sy)
463 ac_prev=sysconfdir ;;
464 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
465 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
466 sysconfdir="$ac_optarg" ;;
468 -target | --target | --targe | --targ | --tar | --ta | --t)
470 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
471 target="$ac_optarg" ;;
473 -v | -verbose | --verbose | --verbos | --verbo | --verb)
476 -version | --version | --versio | --versi | --vers)
477 echo "configure generated by autoconf version 2.13"
481 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
482 # Reject names that are not valid shell variable names.
483 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
484 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
486 ac_package=`echo $ac_package| sed 's/-/_/g'`
491 eval "with_${ac_package}='$ac_optarg'" ;;
493 -without-* | --without-*)
494 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
495 # Reject names that are not valid shell variable names.
496 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
497 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
499 ac_package=`echo $ac_package| sed 's/-/_/g'`
500 eval "with_${ac_package}=no" ;;
503 # Obsolete; use --with-x.
506 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
507 | --x-incl | --x-inc | --x-in | --x-i)
508 ac_prev=x_includes ;;
509 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
510 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
511 x_includes="$ac_optarg" ;;
513 -x-libraries | --x-libraries | --x-librarie | --x-librari \
514 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
515 ac_prev=x_libraries ;;
516 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
517 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
518 x_libraries="$ac_optarg" ;;
520 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
524 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
525 echo "configure: warning: $ac_option: invalid host type" 1>&2
527 if test "x$nonopt" != xNONE; then
528 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
536 if test -n "$ac_prev"; then
537 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
540 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
542 # File descriptor usage:
545 # 2 errors and warnings
546 # 3 some systems may open it to /dev/tty
547 # 4 used on the Kubota Titan
548 # 6 checking for... messages and results
549 # 5 compiler messages saved in config.log
550 if test "$silent" = yes; then
558 This file contains any messages produced by compilers while
559 running configure, to aid debugging if configure makes a mistake.
562 # Strip out --no-create and --no-recursion so they do not pile up.
563 # Also quote any args containing shell metacharacters.
568 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
569 | --no-cr | --no-c) ;;
570 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
571 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
572 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
573 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
574 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
579 # Only set these to C if already set. These must not be set unconditionally
580 # because not all systems understand e.g. LANG=C (notably SCO).
581 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
582 # Non-C LC_CTYPE values break the ctype check.
583 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
584 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
585 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
586 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
588 # confdefs.h avoids OS command line length limits that DEFS can exceed.
589 rm -rf conftest* confdefs.h
590 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
593 # A filename unique to this package, relative to the directory that
594 # configure is in, which we can look for to find out if srcdir is correct.
595 ac_unique_file=include/main.h
597 # Find the source files, if location was not specified.
598 if test -z "$srcdir"; then
599 ac_srcdir_defaulted=yes
600 # Try the directory containing this script, then its parent.
602 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
603 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
605 if test ! -r $srcdir/$ac_unique_file; then
609 ac_srcdir_defaulted=no
611 if test ! -r $srcdir/$ac_unique_file; then
612 if test "$ac_srcdir_defaulted" = yes; then
613 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
615 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
618 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
620 # Prefer explicitly selected file to automatically selected ones.
621 if test -z "$CONFIG_SITE"; then
622 if test "x$prefix" != xNONE; then
623 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
625 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
628 for ac_site_file in $CONFIG_SITE; do
629 if test -r "$ac_site_file"; then
630 echo "loading site script $ac_site_file"
635 if test -r "$cache_file"; then
636 echo "loading cache $cache_file"
639 echo "creating cache $cache_file"
644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
645 ac_cpp='$CPP $CPPFLAGS'
646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
647 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
648 cross_compiling=$ac_cv_prog_cc_cross
652 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
653 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
654 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
661 ac_n= ac_c='\c' ac_t=
667 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
668 if test -f $ac_dir/install-sh; then
670 ac_install_sh="$ac_aux_dir/install-sh -c"
672 elif test -f $ac_dir/install.sh; then
674 ac_install_sh="$ac_aux_dir/install.sh -c"
678 if test -z "$ac_aux_dir"; then
679 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
681 ac_config_guess=$ac_aux_dir/config.guess
682 ac_config_sub=$ac_aux_dir/config.sub
683 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
686 # Do some error checking and defaulting for the host and target type.
688 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
691 # 1. You are not allowed to specify --host, --target, and nonopt at the
693 # 2. Host defaults to nonopt.
694 # 3. If nonopt is not specified, then host defaults to the current host,
695 # as determined by config.guess.
696 # 4. Target and build default to nonopt.
697 # 5. If nonopt is not specified, then target and build default to host.
699 # The aliases save the names the user supplied, while $host etc.
700 # will get canonicalized.
701 case $host---$target---$nonopt in
702 NONE---*---* | *---NONE---* | *---*---NONE) ;;
703 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
707 # Make sure we can run config.sub.
708 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
709 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
712 echo $ac_n "checking host system type""... $ac_c" 1>&6
713 echo "configure:714: checking host system type" >&5
716 case "$host_alias" in
720 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
721 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
723 *) host_alias=$nonopt ;;
727 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
728 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
729 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
730 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
731 echo "$ac_t""$host" 1>&6
733 echo $ac_n "checking target system type""... $ac_c" 1>&6
734 echo "configure:735: checking target system type" >&5
737 case "$target_alias" in
740 NONE) target_alias=$host_alias ;;
741 *) target_alias=$nonopt ;;
745 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
746 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
749 echo "$ac_t""$target" 1>&6
751 echo $ac_n "checking build system type""... $ac_c" 1>&6
752 echo "configure:753: checking build system type" >&5
755 case "$build_alias" in
758 NONE) build_alias=$host_alias ;;
759 *) build_alias=$nonopt ;;
763 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
764 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
765 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
766 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
767 echo "$ac_t""$build" 1>&6
769 test "$host_alias" != "$target_alias" &&
770 test "$program_prefix$program_suffix$program_transform_name" = \
772 program_prefix=${target_alias}-
779 save_CFLAGS="${CFLAGS}"
780 save_CPPFLAGS="${CPPFLAGS}"
781 save_LDFLAGS="${LDFLAGS}"
783 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
784 echo "configure:785: checking whether ${MAKE-make} sets \${MAKE}" >&5
785 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
786 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 cat > conftestmake <<\EOF
791 @echo 'ac_maketemp="${MAKE}"'
793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
794 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
795 if test -n "$ac_maketemp"; then
796 eval ac_cv_prog_make_${ac_make}_set=yes
798 eval ac_cv_prog_make_${ac_make}_set=no
802 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
803 echo "$ac_t""yes" 1>&6
806 echo "$ac_t""no" 1>&6
807 SET_MAKE="MAKE=${MAKE-make}"
810 # Extract the first word of "gcc", so it can be a program name with args.
811 set dummy gcc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
822 for ac_dir in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir=.
824 if test -f $ac_dir/$ac_word; then
833 if test -n "$CC"; then
834 echo "$ac_t""$CC" 1>&6
836 echo "$ac_t""no" 1>&6
839 if test -z "$CC"; then
840 # Extract the first word of "cc", so it can be a program name with args.
841 set dummy cc; ac_word=$2
842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
843 echo "configure:844: checking for $ac_word" >&5
844 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
847 if test -n "$CC"; then
848 ac_cv_prog_CC="$CC" # Let the user override the test.
850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
853 for ac_dir in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir=.
855 if test -f $ac_dir/$ac_word; then
856 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
865 if test $ac_prog_rejected = yes; then
866 # We found a bogon in the path, so make sure we never use it.
867 set dummy $ac_cv_prog_CC
869 if test $# -gt 0; then
870 # We chose a different compiler from the bogus one.
871 # However, it has the same basename, so the bogon will be chosen
872 # first if we set CC to just the basename; use the full file name.
874 set dummy "$ac_dir/$ac_word" "$@"
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
885 echo "$ac_t""no" 1>&6
888 if test -z "$CC"; then
891 # Extract the first word of "cl", so it can be a program name with args.
892 set dummy cl; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 if test -n "$CC"; then
899 ac_cv_prog_CC="$CC" # Let the user override the test.
901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
903 for ac_dir in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
917 echo "$ac_t""no" 1>&6
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cc_cross
935 cat > conftest.$ac_ext << EOF
937 #line 938 "configure"
938 #include "confdefs.h"
942 if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
943 ac_cv_prog_cc_works=yes
944 # If we can't run a trivial program, we are probably using a cross compiler.
945 if (./conftest; exit) 2>/dev/null; then
946 ac_cv_prog_cc_cross=no
948 ac_cv_prog_cc_cross=yes
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
953 ac_cv_prog_cc_works=no
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling=$ac_cv_prog_cc_cross
963 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
964 if test $ac_cv_prog_cc_works = no; then
965 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
970 cross_compiling=$ac_cv_prog_cc_cross
972 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 cat > conftest.c <<EOF
982 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
989 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
991 if test $ac_cv_prog_gcc = yes; then
997 ac_test_CFLAGS="${CFLAGS+set}"
998 ac_save_CFLAGS="$CFLAGS"
1000 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${CC-cc} accepts -g" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 echo 'void f(){}' > conftest.c
1006 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1015 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1016 if test "$ac_test_CFLAGS" = set; then
1017 CFLAGS="$ac_save_CFLAGS"
1018 elif test $ac_cv_prog_cc_g = yes; then
1019 if test "$GCC" = yes; then
1025 if test "$GCC" = yes; then
1032 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1033 echo "configure:1034: checking how to run the C preprocessor" >&5
1034 # On Suns, sometimes $CPP names a directory.
1035 if test -n "$CPP" && test -d "$CPP"; then
1038 if test -z "$CPP"; then
1039 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 # This must be in double quotes, not single quotes, because CPP may get
1043 # substituted into the Makefile and "${CC-cc}" will confuse make.
1045 # On the NeXT, cc -E runs the code through the compiler's parser,
1046 # not just through cpp.
1047 cat > conftest.$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1054 { (eval echo configure:1055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1056 if test -z "$ac_err"; then
1060 echo "configure: failed program was:" >&5
1061 cat conftest.$ac_ext >&5
1063 CPP="${CC-cc} -E -traditional-cpp"
1064 cat > conftest.$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1071 { (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1073 if test -z "$ac_err"; then
1077 echo "configure: failed program was:" >&5
1078 cat conftest.$ac_ext >&5
1080 CPP="${CC-cc} -nologo -E"
1081 cat > conftest.$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1088 { (eval echo configure:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1090 if test -z "$ac_err"; then
1094 echo "configure: failed program was:" >&5
1095 cat conftest.$ac_ext >&5
1104 ac_cv_prog_CPP="$CPP"
1106 CPP="$ac_cv_prog_CPP"
1108 ac_cv_prog_CPP="$CPP"
1110 echo "$ac_t""$CPP" 1>&6
1113 if test $host != $build; then
1114 ac_tool_prefix=${host_alias}-
1119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 if test -n "$RANLIB"; then
1127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1131 for ac_dir in $ac_dummy; do
1132 test -z "$ac_dir" && ac_dir=.
1133 if test -f $ac_dir/$ac_word; then
1134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1141 RANLIB="$ac_cv_prog_RANLIB"
1142 if test -n "$RANLIB"; then
1143 echo "$ac_t""$RANLIB" 1>&6
1145 echo "$ac_t""no" 1>&6
1149 if test -z "$ac_cv_prog_RANLIB"; then
1150 if test -n "$ac_tool_prefix"; then
1151 # Extract the first word of "ranlib", so it can be a program name with args.
1152 set dummy ranlib; ac_word=$2
1153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 echo "configure:1155: checking for $ac_word" >&5
1155 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1158 if test -n "$RANLIB"; then
1159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1163 for ac_dir in $ac_dummy; do
1164 test -z "$ac_dir" && ac_dir=.
1165 if test -f $ac_dir/$ac_word; then
1166 ac_cv_prog_RANLIB="ranlib"
1171 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1174 RANLIB="$ac_cv_prog_RANLIB"
1175 if test -n "$RANLIB"; then
1176 echo "$ac_t""$RANLIB" 1>&6
1178 echo "$ac_t""no" 1>&6
1186 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1187 set dummy ${ac_tool_prefix}strip; ac_word=$2
1188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189 echo "configure:1190: checking for $ac_word" >&5
1190 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 if test -n "$STRIP"; then
1194 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1198 for ac_dir in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir=.
1200 if test -f $ac_dir/$ac_word; then
1201 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1208 STRIP="$ac_cv_prog_STRIP"
1209 if test -n "$STRIP"; then
1210 echo "$ac_t""$STRIP" 1>&6
1212 echo "$ac_t""no" 1>&6
1216 if test -z "$ac_cv_prog_STRIP"; then
1217 if test -n "$ac_tool_prefix"; then
1218 # Extract the first word of "strip", so it can be a program name with args.
1219 set dummy strip; ac_word=$2
1220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1221 echo "configure:1222: checking for $ac_word" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 if test -n "$STRIP"; then
1226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1230 for ac_dir in $ac_dummy; do
1231 test -z "$ac_dir" && ac_dir=.
1232 if test -f $ac_dir/$ac_word; then
1233 ac_cv_prog_STRIP="strip"
1238 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1241 STRIP="$ac_cv_prog_STRIP"
1242 if test -n "$STRIP"; then
1243 echo "$ac_t""$STRIP" 1>&6
1245 echo "$ac_t""no" 1>&6
1254 # Extract the first word of "gmake", so it can be a program name with args.
1255 set dummy gmake; ac_word=$2
1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_word" >&5
1258 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1263 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1266 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1271 for ac_dir in $ac_dummy; do
1272 test -z "$ac_dir" && ac_dir=.
1273 if test -f $ac_dir/$ac_word; then
1274 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1279 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1283 GMAKE="$ac_cv_path_GMAKE"
1284 if test -n "$GMAKE"; then
1285 echo "$ac_t""$GMAKE" 1>&6
1287 echo "$ac_t""no" 1>&6
1290 if test "x$GMAKE" = "xno"; then
1291 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1292 echo "configure:1293: checking whether GNU make is installed" >&5
1293 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 if make --version | grep -q -i gnu; then
1299 echo "This software needs you to install GNU make to compile properly."
1300 echo "You can get it from http://www.gnu.org/."
1305 echo "$ac_t""$ac_cv_gmake" 1>&6
1311 ALL_LINGUAS="de en_GB fr ja no ru nl"
1313 cat >> confdefs.h <<EOF
1314 #define VLC_PACKAGE "$PACKAGE"
1317 cat >> confdefs.h <<EOF
1318 #define VLC_VERSION "$VERSION"
1321 # Extract the first word of "ranlib", so it can be a program name with args.
1322 set dummy ranlib; ac_word=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 if test -n "$RANLIB"; then
1329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1333 for ac_dir in $ac_dummy; do
1334 test -z "$ac_dir" && ac_dir=.
1335 if test -f $ac_dir/$ac_word; then
1336 ac_cv_prog_RANLIB="ranlib"
1341 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1344 RANLIB="$ac_cv_prog_RANLIB"
1345 if test -n "$RANLIB"; then
1346 echo "$ac_t""$RANLIB" 1>&6
1348 echo "$ac_t""no" 1>&6
1352 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1353 echo "configure:1354: checking for strerror in -lcposix" >&5
1354 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 ac_save_LIBS="$LIBS"
1359 LIBS="-lcposix $LIBS"
1360 cat > conftest.$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1363 /* Override any gcc2 internal prototype to avoid an error. */
1364 /* We use char because int might match the return type of a gcc2
1365 builtin and then its argument prototype would still apply. */
1372 if { (eval echo configure:1373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1374 eval "ac_cv_lib_$ac_lib_var=yes"
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1379 eval "ac_cv_lib_$ac_lib_var=no"
1382 LIBS="$ac_save_LIBS"
1385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1386 echo "$ac_t""yes" 1>&6
1387 LIBS="$LIBS -lcposix"
1389 echo "$ac_t""no" 1>&6
1394 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1395 echo "configure:1396: checking for ANSI C header files" >&5
1396 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1408 { (eval echo configure:1409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1410 if test -z "$ac_err"; then
1412 ac_cv_header_stdc=yes
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1418 ac_cv_header_stdc=no
1422 if test $ac_cv_header_stdc = yes; then
1423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1430 egrep "memchr" >/dev/null 2>&1; then
1434 ac_cv_header_stdc=no
1440 if test $ac_cv_header_stdc = yes; then
1441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1442 cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1448 egrep "free" >/dev/null 2>&1; then
1452 ac_cv_header_stdc=no
1458 if test $ac_cv_header_stdc = yes; then
1459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1460 if test "$cross_compiling" = yes; then
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1467 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1468 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1470 int main () { int i; for (i = 0; i < 256; i++)
1471 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1475 if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1479 echo "configure: failed program was:" >&5
1480 cat conftest.$ac_ext >&5
1482 ac_cv_header_stdc=no
1490 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1491 if test $ac_cv_header_stdc = yes; then
1492 cat >> confdefs.h <<\EOF
1493 #define STDC_HEADERS 1
1498 echo $ac_n "checking for working const""... $ac_c" 1>&6
1499 echo "configure:1500: checking for working const" >&5
1500 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1509 /* Ultrix mips cc rejects this. */
1510 typedef int charset[2]; const charset x;
1511 /* SunOS 4.1.1 cc rejects this. */
1512 char const *const *ccp;
1514 /* NEC SVR4.0.2 mips cc rejects this. */
1515 struct point {int x, y;};
1516 static struct point const zero = {0,0};
1517 /* AIX XL C 1.02.0.0 rejects this.
1518 It does not let you subtract one const X* pointer from another in an arm
1519 of an if-expression whose if-part is not a constant expression */
1520 const char *g = "string";
1521 ccp = &g + (g ? g-g : 0);
1522 /* HPUX 7.0 cc rejects these. */
1525 ccp = (char const *const *) p;
1526 { /* SCO 3.2v4 cc rejects this. */
1528 char const *s = 0 ? (char *) 0 : (char const *) 0;
1532 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1534 const int *foo = &x[0];
1537 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1538 typedef const int *iptr;
1542 { /* AIX XL C 1.02.0.0 rejects this saying
1543 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1544 struct s { int j; const int *ap[3]; };
1545 struct s *b; b->j = 5;
1547 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1553 if { (eval echo configure:1554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1565 echo "$ac_t""$ac_cv_c_const" 1>&6
1566 if test $ac_cv_c_const = no; then
1567 cat >> confdefs.h <<\EOF
1573 echo $ac_n "checking for inline""... $ac_c" 1>&6
1574 echo "configure:1575: checking for inline" >&5
1575 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1579 for ac_kw in inline __inline__ __inline; do
1580 cat > conftest.$ac_ext <<EOF
1581 #line 1582 "configure"
1582 #include "confdefs.h"
1588 if { (eval echo configure:1589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1590 ac_cv_c_inline=$ac_kw; break
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1600 echo "$ac_t""$ac_cv_c_inline" 1>&6
1601 case "$ac_cv_c_inline" in
1603 no) cat >> confdefs.h <<\EOF
1607 *) cat >> confdefs.h <<EOF
1608 #define inline $ac_cv_c_inline
1613 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1614 echo "configure:1615: checking for off_t" >&5
1615 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1621 #include <sys/types.h>
1627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1628 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1630 ac_cv_type_off_t=yes
1638 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1639 if test $ac_cv_type_off_t = no; then
1640 cat >> confdefs.h <<\EOF
1646 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1647 echo "configure:1648: checking for size_t" >&5
1648 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 #include <sys/types.h>
1660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1661 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1663 ac_cv_type_size_t=yes
1666 ac_cv_type_size_t=no
1671 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1672 if test $ac_cv_type_size_t = no; then
1673 cat >> confdefs.h <<\EOF
1674 #define size_t unsigned
1679 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1680 # for constant arguments. Useless!
1681 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1682 echo "configure:1683: checking for working alloca.h" >&5
1683 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 cat > conftest.$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1691 char *p = alloca(2 * sizeof(int));
1694 if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1696 ac_cv_header_alloca_h=yes
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1701 ac_cv_header_alloca_h=no
1706 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1707 if test $ac_cv_header_alloca_h = yes; then
1708 cat >> confdefs.h <<\EOF
1709 #define HAVE_ALLOCA_H 1
1714 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1715 echo "configure:1716: checking for alloca" >&5
1716 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 cat > conftest.$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1724 # define alloca __builtin_alloca
1727 # include <malloc.h>
1728 # define alloca _alloca
1731 # include <alloca.h>
1736 # ifndef alloca /* predefined by HP cc +Olibcalls */
1745 char *p = (char *) alloca(1);
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1750 ac_cv_func_alloca_works=yes
1752 echo "configure: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1755 ac_cv_func_alloca_works=no
1760 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1761 if test $ac_cv_func_alloca_works = yes; then
1762 cat >> confdefs.h <<\EOF
1763 #define HAVE_ALLOCA 1
1768 if test $ac_cv_func_alloca_works = no; then
1769 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1770 # that cause trouble. Some versions do not even contain alloca or
1771 # contain a buggy version. If you still want to use their alloca,
1772 # use ar to extract alloca.o from them instead of compiling alloca.c.
1773 ALLOCA=alloca.${ac_objext}
1774 cat >> confdefs.h <<\EOF
1779 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether alloca needs Cray hooks" >&5
1781 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 cat > conftest.$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 #if defined(CRAY) && ! defined(CRAY2)
1794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1795 egrep "webecray" >/dev/null 2>&1; then
1806 echo "$ac_t""$ac_cv_os_cray" 1>&6
1807 if test $ac_cv_os_cray = yes; then
1808 for ac_func in _getb67 GETB67 getb67; do
1809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_func" >&5
1811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 /* System header to define __stub macros and hopefully few prototypes,
1818 which can conflict with char $ac_func(); below. */
1820 /* Override any gcc2 internal prototype to avoid an error. */
1821 /* We use char because int might match the return type of a gcc2
1822 builtin and then its argument prototype would still apply. */
1827 /* The GNU C library defines this for functions which it implements
1828 to always fail with ENOSYS. Some functions are actually named
1829 something starting with __ and the normal name is an alias. */
1830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1840 eval "ac_cv_func_$ac_func=yes"
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1845 eval "ac_cv_func_$ac_func=no"
1850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1851 echo "$ac_t""yes" 1>&6
1852 cat >> confdefs.h <<EOF
1853 #define CRAY_STACKSEG_END $ac_func
1858 echo "$ac_t""no" 1>&6
1864 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1865 echo "configure:1866: checking stack direction for C alloca" >&5
1866 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 if test "$cross_compiling" = yes; then
1870 ac_cv_c_stack_direction=0
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1875 find_stack_direction ()
1877 static char *addr = 0;
1882 return find_stack_direction ();
1885 return (&dummy > addr) ? 1 : -1;
1889 exit (find_stack_direction() < 0);
1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1894 ac_cv_c_stack_direction=1
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 ac_cv_c_stack_direction=-1
1906 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1907 cat >> confdefs.h <<EOF
1908 #define STACK_DIRECTION $ac_cv_c_stack_direction
1913 for ac_hdr in unistd.h
1915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_hdr" >&5
1918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1927 { (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1929 if test -z "$ac_err"; then
1931 eval "ac_cv_header_$ac_safe=yes"
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1937 eval "ac_cv_header_$ac_safe=no"
1941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1942 echo "$ac_t""yes" 1>&6
1943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1944 cat >> confdefs.h <<EOF
1945 #define $ac_tr_hdr 1
1949 echo "$ac_t""no" 1>&6
1953 for ac_func in getpagesize
1955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1956 echo "configure:1957: checking for $ac_func" >&5
1957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963 /* System header to define __stub macros and hopefully few prototypes,
1964 which can conflict with char $ac_func(); below. */
1966 /* Override any gcc2 internal prototype to avoid an error. */
1967 /* We use char because int might match the return type of a gcc2
1968 builtin and then its argument prototype would still apply. */
1973 /* The GNU C library defines this for functions which it implements
1974 to always fail with ENOSYS. Some functions are actually named
1975 something starting with __ and the normal name is an alias. */
1976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1984 if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1986 eval "ac_cv_func_$ac_func=yes"
1988 echo "configure: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1991 eval "ac_cv_func_$ac_func=no"
1996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1997 echo "$ac_t""yes" 1>&6
1998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1999 cat >> confdefs.h <<EOF
2000 #define $ac_tr_func 1
2004 echo "$ac_t""no" 1>&6
2008 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2009 echo "configure:2010: checking for working mmap" >&5
2010 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 if test "$cross_compiling" = yes; then
2014 ac_cv_func_mmap_fixed_mapped=no
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2020 /* Thanks to Mike Haertel and Jim Avera for this test.
2021 Here is a matrix of mmap possibilities:
2022 mmap private not fixed
2023 mmap private fixed at somewhere currently unmapped
2024 mmap private fixed at somewhere already mapped
2025 mmap shared not fixed
2026 mmap shared fixed at somewhere currently unmapped
2027 mmap shared fixed at somewhere already mapped
2028 For private mappings, we should verify that changes cannot be read()
2029 back from the file, nor mmap's back from the file at a different
2030 address. (There have been systems where private was not correctly
2031 implemented like the infamous i386 svr4.0, and systems where the
2032 VM page cache was not coherent with the filesystem buffer cache
2033 like early versions of FreeBSD and possibly contemporary NetBSD.)
2034 For shared mappings, we should conversely verify that changes get
2035 propogated back to all the places they're supposed to be.
2037 Grep wants private fixed already mapped.
2038 The main things grep needs to know about mmap are:
2039 * does it exist and is it safe to write into the mmap'd area
2040 * how to use it (BSD variants) */
2041 #include <sys/types.h>
2043 #include <sys/mman.h>
2045 /* This mess was copied from the GNU getpagesize.h. */
2046 #ifndef HAVE_GETPAGESIZE
2047 # ifdef HAVE_UNISTD_H
2048 # include <unistd.h>
2051 /* Assume that all systems that can run configure have sys/param.h. */
2052 # ifndef HAVE_SYS_PARAM_H
2053 # define HAVE_SYS_PARAM_H 1
2056 # ifdef _SC_PAGESIZE
2057 # define getpagesize() sysconf(_SC_PAGESIZE)
2058 # else /* no _SC_PAGESIZE */
2059 # ifdef HAVE_SYS_PARAM_H
2060 # include <sys/param.h>
2061 # ifdef EXEC_PAGESIZE
2062 # define getpagesize() EXEC_PAGESIZE
2063 # else /* no EXEC_PAGESIZE */
2065 # define getpagesize() NBPG * CLSIZE
2068 # endif /* no CLSIZE */
2069 # else /* no NBPG */
2071 # define getpagesize() NBPC
2072 # else /* no NBPC */
2074 # define getpagesize() PAGESIZE
2075 # endif /* PAGESIZE */
2076 # endif /* no NBPC */
2077 # endif /* no NBPG */
2078 # endif /* no EXEC_PAGESIZE */
2079 # else /* no HAVE_SYS_PARAM_H */
2080 # define getpagesize() 8192 /* punt totally */
2081 # endif /* no HAVE_SYS_PARAM_H */
2082 # endif /* no _SC_PAGESIZE */
2084 #endif /* no HAVE_GETPAGESIZE */
2087 extern "C" { void *malloc(unsigned); }
2095 char *data, *data2, *data3;
2099 pagesize = getpagesize();
2102 * First, make a file with some known garbage in it.
2104 data = malloc(pagesize);
2107 for (i = 0; i < pagesize; ++i)
2108 *(data + i) = rand();
2110 fd = creat("conftestmmap", 0600);
2113 if (write(fd, data, pagesize) != pagesize)
2118 * Next, try to mmap the file at a fixed address which
2119 * already has something else allocated at it. If we can,
2120 * also make sure that we see the same garbage.
2122 fd = open("conftestmmap", O_RDWR);
2125 data2 = malloc(2 * pagesize);
2128 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2129 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2130 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2132 for (i = 0; i < pagesize; ++i)
2133 if (*(data + i) != *(data2 + i))
2137 * Finally, make sure that changes to the mapped area
2138 * do not percolate back to the file as seen by read().
2139 * (This is a bug on some variants of i386 svr4.0.)
2141 for (i = 0; i < pagesize; ++i)
2142 *(data2 + i) = *(data2 + i) + 1;
2143 data3 = malloc(pagesize);
2146 if (read(fd, data3, pagesize) != pagesize)
2148 for (i = 0; i < pagesize; ++i)
2149 if (*(data + i) != *(data3 + i))
2152 unlink("conftestmmap");
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2159 ac_cv_func_mmap_fixed_mapped=yes
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2164 ac_cv_func_mmap_fixed_mapped=no
2171 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2172 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2173 cat >> confdefs.h <<\EOF
2180 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2181 echo "configure:2182: checking whether we are using the GNU C Library 2.1 or newer" >&5
2182 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2189 #include <features.h>
2190 #ifdef __GNU_LIBRARY__
2191 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2198 egrep "Lucky GNU user" >/dev/null 2>&1; then
2200 ac_cv_gnu_library_2_1=yes
2203 ac_cv_gnu_library_2_1=no
2211 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2213 GLIBC21="$ac_cv_gnu_library_2_1"
2217 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2218 stdlib.h string.h unistd.h sys/param.h
2220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_hdr" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2232 { (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2234 if test -z "$ac_err"; then
2236 eval "ac_cv_header_$ac_safe=yes"
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2242 eval "ac_cv_header_$ac_safe=no"
2246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2249 cat >> confdefs.h <<EOF
2250 #define $ac_tr_hdr 1
2254 echo "$ac_t""no" 1>&6
2258 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2259 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2260 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_func" >&5
2264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 /* System header to define __stub macros and hopefully few prototypes,
2271 which can conflict with char $ac_func(); below. */
2273 /* Override any gcc2 internal prototype to avoid an error. */
2274 /* We use char because int might match the return type of a gcc2
2275 builtin and then its argument prototype would still apply. */
2280 /* The GNU C library defines this for functions which it implements
2281 to always fail with ENOSYS. Some functions are actually named
2282 something starting with __ and the normal name is an alias. */
2283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2291 if { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2293 eval "ac_cv_func_$ac_func=yes"
2295 echo "configure: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2298 eval "ac_cv_func_$ac_func=no"
2303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2304 echo "$ac_t""yes" 1>&6
2305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2306 cat >> confdefs.h <<EOF
2307 #define $ac_tr_func 1
2311 echo "$ac_t""no" 1>&6
2318 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2319 if test "${with_libiconv_prefix+set}" = set; then
2320 withval="$with_libiconv_prefix"
2322 for dir in `echo "$withval" | tr : ' '`; do
2323 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2324 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2330 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2331 echo "configure:2332: checking for iconv" >&5
2332 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2336 am_cv_func_iconv="no, consider installing GNU libiconv"
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2344 iconv_t cd = iconv_open("","");
2345 iconv(cd,NULL,NULL,NULL,NULL);
2349 if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2351 am_cv_func_iconv=yes
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2357 if test "$am_cv_func_iconv" != yes; then
2358 am_save_LIBS="$LIBS"
2359 LIBS="$LIBS -liconv"
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2366 iconv_t cd = iconv_open("","");
2367 iconv(cd,NULL,NULL,NULL,NULL);
2371 if { (eval echo configure:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2374 am_cv_func_iconv=yes
2376 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2380 LIBS="$am_save_LIBS"
2385 echo "$ac_t""$am_cv_func_iconv" 1>&6
2386 if test "$am_cv_func_iconv" = yes; then
2387 cat >> confdefs.h <<\EOF
2388 #define HAVE_ICONV 1
2391 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2392 echo "configure:2393: checking for iconv declaration" >&5
2393 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2407 #if defined(__STDC__) || defined(__cplusplus)
2408 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2417 if { (eval echo configure:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2419 am_cv_proto_iconv_arg1=""
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2424 am_cv_proto_iconv_arg1="const"
2427 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2430 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2431 echo "$ac_t""${ac_t:-
2432 }$am_cv_proto_iconv" 1>&6
2433 cat >> confdefs.h <<EOF
2434 #define ICONV_CONST $am_cv_proto_iconv_arg1
2439 if test "$am_cv_lib_iconv" = yes; then
2445 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2446 echo "configure:2447: checking for nl_langinfo and CODESET" >&5
2447 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 #include <langinfo.h>
2455 char* cs = nl_langinfo(CODESET);
2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2460 am_cv_langinfo_codeset=yes
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2465 am_cv_langinfo_codeset=no
2471 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2472 if test $am_cv_langinfo_codeset = yes; then
2473 cat >> confdefs.h <<\EOF
2474 #define HAVE_LANGINFO_CODESET 1
2479 if test $ac_cv_header_locale_h = yes; then
2480 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2481 echo "configure:2482: checking for LC_MESSAGES" >&5
2482 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2493 if { (eval echo configure:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2495 am_cv_val_LC_MESSAGES=yes
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2500 am_cv_val_LC_MESSAGES=no
2505 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2506 if test $am_cv_val_LC_MESSAGES = yes; then
2507 cat >> confdefs.h <<\EOF
2508 #define HAVE_LC_MESSAGES 1
2513 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2514 echo "configure:2515: checking whether NLS is requested" >&5
2515 # Check whether --enable-nls or --disable-nls was given.
2516 if test "${enable_nls+set}" = set; then
2517 enableval="$enable_nls"
2523 echo "$ac_t""$USE_NLS" 1>&6
2526 BUILD_INCLUDED_LIBINTL=no
2527 USE_INCLUDED_LIBINTL=no
2530 if test "$USE_NLS" = "yes"; then
2531 cat >> confdefs.h <<\EOF
2532 #define ENABLE_NLS 1
2535 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2536 echo "configure:2537: checking whether included gettext is requested" >&5
2537 # Check whether --with-included-gettext or --without-included-gettext was given.
2538 if test "${with_included_gettext+set}" = set; then
2539 withval="$with_included_gettext"
2540 nls_cv_force_use_gnu_gettext=$withval
2542 nls_cv_force_use_gnu_gettext=no
2545 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2547 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2548 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2554 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2555 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2556 echo "configure:2557: checking for libintl.h" >&5
2557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 cat > conftest.$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2563 #include <libintl.h>
2565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2566 { (eval echo configure:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2568 if test -z "$ac_err"; then
2570 eval "ac_cv_header_$ac_safe=yes"
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2576 eval "ac_cv_header_$ac_safe=no"
2580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2582 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2583 echo "configure:2584: checking for GNU gettext in libc" >&5
2584 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <libintl.h>
2591 extern int _nl_msg_cat_cntr;
2593 bindtextdomain ("", "");
2594 return (int) gettext ("") + _nl_msg_cat_cntr
2597 if { (eval echo configure:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2599 gt_cv_func_gnugettext1_libc=yes
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2604 gt_cv_func_gnugettext1_libc=no
2609 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2611 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2612 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2613 echo "configure:2614: checking for GNU gettext in libintl" >&5
2614 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 gt_save_LIBS="$LIBS"
2618 LIBS="$LIBS -lintl $LIBICONV"
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 #include <libintl.h>
2623 extern int _nl_msg_cat_cntr;
2625 bindtextdomain ("", "");
2626 return (int) gettext ("") + _nl_msg_cat_cntr
2629 if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2631 gt_cv_func_gnugettext1_libintl=yes
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2636 gt_cv_func_gnugettext1_libintl=no
2639 LIBS="$gt_save_LIBS"
2642 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2645 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2646 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2647 && test "$PACKAGE" != gettext; }; then
2648 cat >> confdefs.h <<\EOF
2649 #define HAVE_GETTEXT 1
2653 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2654 INTLLIBS="-lintl $LIBICONV"
2657 gt_save_LIBS="$LIBS"
2658 LIBS="$LIBS $INTLLIBS"
2659 for ac_func in dcgettext
2661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2662 echo "configure:2663: checking for $ac_func" >&5
2663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 /* System header to define __stub macros and hopefully few prototypes,
2670 which can conflict with char $ac_func(); below. */
2672 /* Override any gcc2 internal prototype to avoid an error. */
2673 /* We use char because int might match the return type of a gcc2
2674 builtin and then its argument prototype would still apply. */
2679 /* The GNU C library defines this for functions which it implements
2680 to always fail with ENOSYS. Some functions are actually named
2681 something starting with __ and the normal name is an alias. */
2682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2690 if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2692 eval "ac_cv_func_$ac_func=yes"
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2697 eval "ac_cv_func_$ac_func=no"
2702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2703 echo "$ac_t""yes" 1>&6
2704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2705 cat >> confdefs.h <<EOF
2706 #define $ac_tr_func 1
2710 echo "$ac_t""no" 1>&6
2714 LIBS="$gt_save_LIBS"
2716 # Extract the first word of "msgfmt", so it can be a program name with args.
2717 set dummy msgfmt; ac_word=$2
2718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2719 echo "configure:2720: checking for $ac_word" >&5
2720 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2725 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2729 for ac_dir in $PATH; do
2730 test -z "$ac_dir" && ac_dir=.
2731 if test -f $ac_dir/$ac_word; then
2732 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2733 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2739 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2743 MSGFMT="$ac_cv_path_MSGFMT"
2744 if test "$MSGFMT" != ":"; then
2745 echo "$ac_t""$MSGFMT" 1>&6
2747 echo "$ac_t""no" 1>&6
2750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2751 set dummy gmsgfmt; ac_word=$2
2752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_word" >&5
2754 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2759 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2762 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2767 for ac_dir in $ac_dummy; do
2768 test -z "$ac_dir" && ac_dir=.
2769 if test -f $ac_dir/$ac_word; then
2770 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2775 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2779 GMSGFMT="$ac_cv_path_GMSGFMT"
2780 if test -n "$GMSGFMT"; then
2781 echo "$ac_t""$GMSGFMT" 1>&6
2783 echo "$ac_t""no" 1>&6
2787 # Extract the first word of "xgettext", so it can be a program name with args.
2788 set dummy xgettext; ac_word=$2
2789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_word" >&5
2791 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2796 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2800 for ac_dir in $PATH; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2803 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2804 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2810 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2814 XGETTEXT="$ac_cv_path_XGETTEXT"
2815 if test "$XGETTEXT" != ":"; then
2816 echo "$ac_t""$XGETTEXT" 1>&6
2818 echo "$ac_t""no" 1>&6
2826 echo "$ac_t""no" 1>&6
2830 if test "$CATOBJEXT" = "NONE"; then
2831 nls_cv_use_gnu_gettext=yes
2835 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2836 INTLOBJS="\$(GETTOBJS)"
2837 # Extract the first word of "msgfmt", so it can be a program name with args.
2838 set dummy msgfmt; ac_word=$2
2839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2840 echo "configure:2841: checking for $ac_word" >&5
2841 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2846 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2850 for ac_dir in $PATH; do
2851 test -z "$ac_dir" && ac_dir=.
2852 if test -f $ac_dir/$ac_word; then
2853 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2854 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2860 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2864 MSGFMT="$ac_cv_path_MSGFMT"
2865 if test "$MSGFMT" != ":"; then
2866 echo "$ac_t""$MSGFMT" 1>&6
2868 echo "$ac_t""no" 1>&6
2871 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2872 set dummy gmsgfmt; ac_word=$2
2873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_word" >&5
2875 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2880 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2883 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2888 for ac_dir in $ac_dummy; do
2889 test -z "$ac_dir" && ac_dir=.
2890 if test -f $ac_dir/$ac_word; then
2891 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2896 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2900 GMSGFMT="$ac_cv_path_GMSGFMT"
2901 if test -n "$GMSGFMT"; then
2902 echo "$ac_t""$GMSGFMT" 1>&6
2904 echo "$ac_t""no" 1>&6
2907 # Extract the first word of "xgettext", so it can be a program name with args.
2908 set dummy xgettext; ac_word=$2
2909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_word" >&5
2911 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2916 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2920 for ac_dir in $PATH; do
2921 test -z "$ac_dir" && ac_dir=.
2922 if test -f $ac_dir/$ac_word; then
2923 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2924 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2930 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2934 XGETTEXT="$ac_cv_path_XGETTEXT"
2935 if test "$XGETTEXT" != ":"; then
2936 echo "$ac_t""$XGETTEXT" 1>&6
2938 echo "$ac_t""no" 1>&6
2942 BUILD_INCLUDED_LIBINTL=yes
2943 USE_INCLUDED_LIBINTL=yes
2945 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2946 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2949 if test "$GMSGFMT" != ":"; then
2950 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2953 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2958 if test "$XGETTEXT" != ":"; then
2959 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2962 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2972 if test "$PACKAGE" = gettext; then
2973 BUILD_INCLUDED_LIBINTL=yes
2976 for ac_prog in bison
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2981 echo "configure:2982: checking for $ac_word" >&5
2982 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 if test -n "$INTLBISON"; then
2986 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2990 for ac_dir in $ac_dummy; do
2991 test -z "$ac_dir" && ac_dir=.
2992 if test -f $ac_dir/$ac_word; then
2993 ac_cv_prog_INTLBISON="$ac_prog"
3000 INTLBISON="$ac_cv_prog_INTLBISON"
3001 if test -n "$INTLBISON"; then
3002 echo "$ac_t""$INTLBISON" 1>&6
3004 echo "$ac_t""no" 1>&6
3007 test -n "$INTLBISON" && break
3010 if test -z "$INTLBISON"; then
3013 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3014 echo "configure:3015: checking version of bison" >&5
3015 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3016 case $ac_prog_version in
3017 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3018 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3019 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3020 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3022 echo "$ac_t""$ac_prog_version" 1>&6
3024 if test $ac_verc_fail = yes; then
3028 for lang in $ALL_LINGUAS; do
3029 GMOFILES="$GMOFILES $lang.gmo"
3030 POFILES="$POFILES $lang.po"
3044 nls_cv_header_libgt=
3056 if test "x$CATOBJEXT" != "x"; then
3057 if test "x$ALL_LINGUAS" = "x"; then
3060 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3061 echo "configure:3062: checking for catalogs to be installed" >&5
3063 for presentlang in $ALL_LINGUAS; do
3065 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3066 # Use the presentlang catalog if desiredlang is
3067 # a. equal to presentlang, or
3068 # b. a variant of presentlang (because in this case,
3069 # presentlang can be used as a fallback for messages
3070 # which are not translated in the desiredlang catalog).
3071 case "$desiredlang" in
3072 "$presentlang"*) useit=yes;;
3075 if test $useit = yes; then
3076 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3079 LINGUAS=$NEW_LINGUAS
3080 echo "$ac_t""$LINGUAS" 1>&6
3083 if test -n "$LINGUAS"; then
3084 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3089 if test -n "$ac_aux_dir"; then
3090 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3092 if test -z "$MKINSTALLDIRS"; then
3093 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3097 INTL_LIBTOOL_SUFFIX_PREFIX=
3101 # Find a good install program. We prefer a C program (faster),
3102 # so one script is as good as another. But avoid the broken or
3103 # incompatible versions:
3104 # SysV /etc/install, /usr/sbin/install
3105 # SunOS /usr/etc/install
3106 # IRIX /sbin/install
3108 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3109 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3110 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3111 # ./install, which can be erroneously created by make from ./install.sh.
3112 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3113 echo "configure:3114: checking for a BSD compatible install" >&5
3114 if test -z "$INSTALL"; then
3115 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3119 for ac_dir in $PATH; do
3120 # Account for people who put trailing slashes in PATH elements.
3122 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3124 # OSF1 and SCO ODT 3.0 have their own names for install.
3125 # Don't use installbsd from OSF since it installs stuff as root
3127 for ac_prog in ginstall scoinst install; do
3128 if test -f $ac_dir/$ac_prog; then
3129 if test $ac_prog = install &&
3130 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3131 # AIX install. It has an incompatible calling convention.
3134 ac_cv_path_install="$ac_dir/$ac_prog -c"
3145 if test "${ac_cv_path_install+set}" = set; then
3146 INSTALL="$ac_cv_path_install"
3148 # As a last resort, use the slow shell script. We don't cache a
3149 # path for INSTALL within a source directory, because that will
3150 # break other packages using the cache if that directory is
3151 # removed, or if the path is relative.
3152 INSTALL="$ac_install_sh"
3155 echo "$ac_t""$INSTALL" 1>&6
3157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3158 # It thinks the first close brace ends the variable substitution.
3159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3161 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3163 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3166 case x"${target_os}" in
3175 save_CFLAGS="${save_CFLAGS} -pthread"
3176 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3177 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3181 save_CFLAGS="${save_CFLAGS} -pthread"
3185 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3189 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}windres; ac_word=$2
3191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_word" >&5
3193 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3196 if test -n "$WINDRES"; then
3197 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3201 for ac_dir in $ac_dummy; do
3202 test -z "$ac_dir" && ac_dir=.
3203 if test -f $ac_dir/$ac_word; then
3204 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3211 WINDRES="$ac_cv_prog_WINDRES"
3212 if test -n "$WINDRES"; then
3213 echo "$ac_t""$WINDRES" 1>&6
3215 echo "$ac_t""no" 1>&6
3219 if test -z "$ac_cv_prog_WINDRES"; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "windres", so it can be a program name with args.
3222 set dummy windres; ac_word=$2
3223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3224 echo "configure:3225: checking for $ac_word" >&5
3225 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 if test -n "$WINDRES"; then
3229 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3233 for ac_dir in $ac_dummy; do
3234 test -z "$ac_dir" && ac_dir=.
3235 if test -f $ac_dir/$ac_word; then
3236 ac_cv_prog_WINDRES="windres"
3241 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3244 WINDRES="$ac_cv_prog_WINDRES"
3245 if test -n "$WINDRES"; then
3246 echo "$ac_t""$WINDRES" 1>&6
3248 echo "$ac_t""no" 1>&6
3256 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3257 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3258 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3259 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3260 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3264 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3265 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3269 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3270 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3271 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3272 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3273 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3280 if test x"${SYS}" = xmingw32
3282 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3284 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3287 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3289 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3292 echo "configure:3293: checking for $ac_func" >&5
3293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 /* System header to define __stub macros and hopefully few prototypes,
3300 which can conflict with char $ac_func(); below. */
3302 /* Override any gcc2 internal prototype to avoid an error. */
3303 /* We use char because int might match the return type of a gcc2
3304 builtin and then its argument prototype would still apply. */
3309 /* The GNU C library defines this for functions which it implements
3310 to always fail with ENOSYS. Some functions are actually named
3311 something starting with __ and the normal name is an alias. */
3312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3322 eval "ac_cv_func_$ac_func=yes"
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3327 eval "ac_cv_func_$ac_func=no"
3332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3333 echo "$ac_t""yes" 1>&6
3334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3335 cat >> confdefs.h <<EOF
3336 #define $ac_tr_func 1
3340 echo "$ac_t""no" 1>&6
3345 echo $ac_n "checking for connect""... $ac_c" 1>&6
3346 echo "configure:3347: checking for connect" >&5
3347 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 /* System header to define __stub macros and hopefully few prototypes,
3354 which can conflict with char connect(); below. */
3356 /* Override any gcc2 internal prototype to avoid an error. */
3357 /* We use char because int might match the return type of a gcc2
3358 builtin and then its argument prototype would still apply. */
3363 /* The GNU C library defines this for functions which it implements
3364 to always fail with ENOSYS. Some functions are actually named
3365 something starting with __ and the normal name is an alias. */
3366 #if defined (__stub_connect) || defined (__stub___connect)
3374 if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3376 eval "ac_cv_func_connect=yes"
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3381 eval "ac_cv_func_connect=no"
3386 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3387 echo "$ac_t""yes" 1>&6
3390 echo "$ac_t""no" 1>&6
3392 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3393 echo "configure:3394: checking for connect in -lsocket" >&5
3394 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 ac_save_LIBS="$LIBS"
3399 LIBS="-lsocket $LIBS"
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3414 eval "ac_cv_lib_$ac_lib_var=yes"
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3419 eval "ac_cv_lib_$ac_lib_var=no"
3422 LIBS="$ac_save_LIBS"
3425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3428 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3431 echo "$ac_t""no" 1>&6
3436 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3437 echo "configure:3438: checking for gethostbyname" >&5
3438 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 /* System header to define __stub macros and hopefully few prototypes,
3445 which can conflict with char gethostbyname(); below. */
3447 /* Override any gcc2 internal prototype to avoid an error. */
3448 /* We use char because int might match the return type of a gcc2
3449 builtin and then its argument prototype would still apply. */
3450 char gethostbyname();
3454 /* The GNU C library defines this for functions which it implements
3455 to always fail with ENOSYS. Some functions are actually named
3456 something starting with __ and the normal name is an alias. */
3457 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3465 if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3467 eval "ac_cv_func_gethostbyname=yes"
3469 echo "configure: failed program was:" >&5
3470 cat conftest.$ac_ext >&5
3472 eval "ac_cv_func_gethostbyname=no"
3477 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3478 echo "$ac_t""yes" 1>&6
3481 echo "$ac_t""no" 1>&6
3483 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3484 echo "configure:3485: checking for gethostbyname in -lnsl" >&5
3485 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 ac_save_LIBS="$LIBS"
3491 cat > conftest.$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3494 /* Override any gcc2 internal prototype to avoid an error. */
3495 /* We use char because int might match the return type of a gcc2
3496 builtin and then its argument prototype would still apply. */
3497 char gethostbyname();
3503 if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3505 eval "ac_cv_lib_$ac_lib_var=yes"
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3510 eval "ac_cv_lib_$ac_lib_var=no"
3513 LIBS="$ac_save_LIBS"
3516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3518 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3520 echo "$ac_t""no" 1>&6
3526 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3527 echo "configure:3528: checking for gethostbyname" >&5
3528 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 /* System header to define __stub macros and hopefully few prototypes,
3535 which can conflict with char gethostbyname(); below. */
3537 /* Override any gcc2 internal prototype to avoid an error. */
3538 /* We use char because int might match the return type of a gcc2
3539 builtin and then its argument prototype would still apply. */
3540 char gethostbyname();
3544 /* The GNU C library defines this for functions which it implements
3545 to always fail with ENOSYS. Some functions are actually named
3546 something starting with __ and the normal name is an alias. */
3547 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3555 if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3557 eval "ac_cv_func_gethostbyname=yes"
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3562 eval "ac_cv_func_gethostbyname=no"
3567 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3571 echo "$ac_t""no" 1>&6
3573 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3574 echo "configure:3575: checking for gethostbyname in -lbind" >&5
3575 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 ac_save_LIBS="$LIBS"
3581 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 /* Override any gcc2 internal prototype to avoid an error. */
3585 /* We use char because int might match the return type of a gcc2
3586 builtin and then its argument prototype would still apply. */
3587 char gethostbyname();
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3595 eval "ac_cv_lib_$ac_lib_var=yes"
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 eval "ac_cv_lib_$ac_lib_var=no"
3603 LIBS="$ac_save_LIBS"
3606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3608 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3610 echo "$ac_t""no" 1>&6
3616 for ac_func in nanosleep
3618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3619 echo "configure:3620: checking for $ac_func" >&5
3620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char $ac_func(); below. */
3629 /* Override any gcc2 internal prototype to avoid an error. */
3630 /* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3636 /* The GNU C library defines this for functions which it implements
3637 to always fail with ENOSYS. Some functions are actually named
3638 something starting with __ and the normal name is an alias. */
3639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3647 if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3649 eval "ac_cv_func_$ac_func=yes"
3651 echo "configure: failed program was:" >&5
3652 cat conftest.$ac_ext >&5
3654 eval "ac_cv_func_$ac_func=no"
3659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3660 echo "$ac_t""yes" 1>&6
3661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3662 cat >> confdefs.h <<EOF
3663 #define $ac_tr_func 1
3667 echo "$ac_t""no" 1>&6
3668 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3669 echo "configure:3670: checking for nanosleep in -lrt" >&5
3670 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3674 ac_save_LIBS="$LIBS"
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 /* Override any gcc2 internal prototype to avoid an error. */
3680 /* We use char because int might match the return type of a gcc2
3681 builtin and then its argument prototype would still apply. */
3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3690 eval "ac_cv_lib_$ac_lib_var=yes"
3692 echo "configure: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3695 eval "ac_cv_lib_$ac_lib_var=no"
3698 LIBS="$ac_save_LIBS"
3701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3702 echo "$ac_t""yes" 1>&6
3703 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3705 echo "$ac_t""no" 1>&6
3706 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3707 echo "configure:3708: checking for nanosleep in -lposix4" >&5
3708 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3712 ac_save_LIBS="$LIBS"
3713 LIBS="-lposix4 $LIBS"
3714 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3717 /* Override any gcc2 internal prototype to avoid an error. */
3718 /* We use char because int might match the return type of a gcc2
3719 builtin and then its argument prototype would still apply. */
3726 if { (eval echo configure:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3728 eval "ac_cv_lib_$ac_lib_var=yes"
3730 echo "configure: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3733 eval "ac_cv_lib_$ac_lib_var=no"
3736 LIBS="$ac_save_LIBS"
3739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3740 echo "$ac_t""yes" 1>&6
3741 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3743 echo "$ac_t""no" 1>&6
3753 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3754 echo "configure:3755: checking for inet_aton" >&5
3755 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 /* System header to define __stub macros and hopefully few prototypes,
3762 which can conflict with char inet_aton(); below. */
3764 /* Override any gcc2 internal prototype to avoid an error. */
3765 /* We use char because int might match the return type of a gcc2
3766 builtin and then its argument prototype would still apply. */
3771 /* The GNU C library defines this for functions which it implements
3772 to always fail with ENOSYS. Some functions are actually named
3773 something starting with __ and the normal name is an alias. */
3774 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3782 if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3784 eval "ac_cv_func_inet_aton=yes"
3786 echo "configure: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3789 eval "ac_cv_func_inet_aton=no"
3794 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3798 echo "$ac_t""no" 1>&6
3800 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3801 echo "configure:3802: checking for inet_aton in -lresolv" >&5
3802 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3806 ac_save_LIBS="$LIBS"
3807 LIBS="-lresolv $LIBS"
3808 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3811 /* Override any gcc2 internal prototype to avoid an error. */
3812 /* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3820 if { (eval echo configure:3821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3822 eval "ac_cv_lib_$ac_lib_var=yes"
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3827 eval "ac_cv_lib_$ac_lib_var=no"
3830 LIBS="$ac_save_LIBS"
3833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3837 echo "$ac_t""no" 1>&6
3843 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3844 echo "configure:3845: checking for textdomain" >&5
3845 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3851 /* System header to define __stub macros and hopefully few prototypes,
3852 which can conflict with char textdomain(); below. */
3854 /* Override any gcc2 internal prototype to avoid an error. */
3855 /* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3861 /* The GNU C library defines this for functions which it implements
3862 to always fail with ENOSYS. Some functions are actually named
3863 something starting with __ and the normal name is an alias. */
3864 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3872 if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3874 eval "ac_cv_func_textdomain=yes"
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3879 eval "ac_cv_func_textdomain=no"
3884 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3885 echo "$ac_t""yes" 1>&6
3888 echo "$ac_t""no" 1>&6
3890 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3891 echo "configure:3892: checking for textdomain in -lintl" >&5
3892 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3896 ac_save_LIBS="$LIBS"
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3901 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3912 eval "ac_cv_lib_$ac_lib_var=yes"
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3917 eval "ac_cv_lib_$ac_lib_var=no"
3920 LIBS="$ac_save_LIBS"
3923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3924 echo "$ac_t""yes" 1>&6
3925 save_LDFLAGS="${save_LDFLAGS} -lintl"
3927 echo "$ac_t""no" 1>&6
3935 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3936 echo "configure:3937: checking for getopt_long" >&5
3937 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 /* System header to define __stub macros and hopefully few prototypes,
3944 which can conflict with char getopt_long(); below. */
3946 /* Override any gcc2 internal prototype to avoid an error. */
3947 /* We use char because int might match the return type of a gcc2
3948 builtin and then its argument prototype would still apply. */
3953 /* The GNU C library defines this for functions which it implements
3954 to always fail with ENOSYS. Some functions are actually named
3955 something starting with __ and the normal name is an alias. */
3956 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3964 if { (eval echo configure:3965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3966 eval "ac_cv_func_getopt_long=yes"
3968 echo "configure: failed program was:" >&5
3969 cat conftest.$ac_ext >&5
3971 eval "ac_cv_func_getopt_long=no"
3976 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3977 echo "$ac_t""yes" 1>&6
3978 cat >> confdefs.h <<\EOF
3979 #define HAVE_GETOPT_LONG 1
3983 echo "$ac_t""no" 1>&6
3984 # FreeBSD has a gnugetopt library for this:
3985 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3986 echo "configure:3987: checking for getopt_long in -lgnugetopt" >&5
3987 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3991 ac_save_LIBS="$LIBS"
3992 LIBS="-lgnugetopt $LIBS"
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996 /* Override any gcc2 internal prototype to avoid an error. */
3997 /* We use char because int might match the return type of a gcc2
3998 builtin and then its argument prototype would still apply. */
4005 if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4007 eval "ac_cv_lib_$ac_lib_var=yes"
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4012 eval "ac_cv_lib_$ac_lib_var=no"
4015 LIBS="$ac_save_LIBS"
4018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4019 echo "$ac_t""yes" 1>&6
4020 cat >> confdefs.h <<\EOF
4021 #define HAVE_GETOPT_LONG 1
4023 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4025 echo "$ac_t""no" 1>&6
4032 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4033 echo "configure:4034: checking return type of signal handlers" >&5
4034 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4037 cat > conftest.$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4040 #include <sys/types.h>
4046 extern "C" void (*signal (int, void (*)(int)))(int);
4048 void (*signal ()) ();
4055 if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4057 ac_cv_type_signal=void
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4062 ac_cv_type_signal=int
4067 echo "$ac_t""$ac_cv_type_signal" 1>&6
4068 cat >> confdefs.h <<EOF
4069 #define RETSIGTYPE $ac_cv_type_signal
4073 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4074 echo "configure:4075: checking for dlopen in -ldl" >&5
4075 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4079 ac_save_LIBS="$LIBS"
4081 cat > conftest.$ac_ext <<EOF
4082 #line 4083 "configure"
4083 #include "confdefs.h"
4084 /* Override any gcc2 internal prototype to avoid an error. */
4085 /* We use char because int might match the return type of a gcc2
4086 builtin and then its argument prototype would still apply. */
4093 if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4095 eval "ac_cv_lib_$ac_lib_var=yes"
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4100 eval "ac_cv_lib_$ac_lib_var=no"
4103 LIBS="$ac_save_LIBS"
4106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4107 echo "$ac_t""yes" 1>&6
4108 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4110 echo "$ac_t""no" 1>&6
4113 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4114 echo "configure:4115: checking for cos in -lm" >&5
4115 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4119 ac_save_LIBS="$LIBS"
4121 cat > conftest.$ac_ext <<EOF
4122 #line 4123 "configure"
4123 #include "confdefs.h"
4124 /* Override any gcc2 internal prototype to avoid an error. */
4125 /* We use char because int might match the return type of a gcc2
4126 builtin and then its argument prototype would still apply. */
4133 if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4135 eval "ac_cv_lib_$ac_lib_var=yes"
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4140 eval "ac_cv_lib_$ac_lib_var=no"
4143 LIBS="$ac_save_LIBS"
4146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4147 echo "$ac_t""yes" 1>&6
4148 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4149 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4151 echo "$ac_t""no" 1>&6
4154 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4155 echo "configure:4156: checking for pow in -lm" >&5
4156 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4160 ac_save_LIBS="$LIBS"
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 /* Override any gcc2 internal prototype to avoid an error. */
4166 /* We use char because int might match the return type of a gcc2
4167 builtin and then its argument prototype would still apply. */
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4176 eval "ac_cv_lib_$ac_lib_var=yes"
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4181 eval "ac_cv_lib_$ac_lib_var=no"
4184 LIBS="$ac_save_LIBS"
4187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4188 echo "$ac_t""yes" 1>&6
4189 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4190 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4191 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4192 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4195 echo "$ac_t""no" 1>&6
4200 if test "x${THREAD_LIB}" = xerror; then
4201 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4202 echo "configure:4203: checking for pthread_attr_init in -lpthread" >&5
4203 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4207 ac_save_LIBS="$LIBS"
4208 LIBS="-lpthread $LIBS"
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4212 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4215 char pthread_attr_init();
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4223 eval "ac_cv_lib_$ac_lib_var=yes"
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4228 eval "ac_cv_lib_$ac_lib_var=no"
4231 LIBS="$ac_save_LIBS"
4234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4235 echo "$ac_t""yes" 1>&6
4236 THREAD_LIB="-lpthread"
4238 echo "$ac_t""no" 1>&6
4242 if test "x${THREAD_LIB}" = xerror; then
4243 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4244 echo "configure:4245: checking for pthread_attr_init in -lpthreads" >&5
4245 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4249 ac_save_LIBS="$LIBS"
4250 LIBS="-lpthreads $LIBS"
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 /* Override any gcc2 internal prototype to avoid an error. */
4255 /* We use char because int might match the return type of a gcc2
4256 builtin and then its argument prototype would still apply. */
4257 char pthread_attr_init();
4263 if { (eval echo configure:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4265 eval "ac_cv_lib_$ac_lib_var=yes"
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4270 eval "ac_cv_lib_$ac_lib_var=no"
4273 LIBS="$ac_save_LIBS"
4276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4277 echo "$ac_t""yes" 1>&6
4278 THREAD_LIB="-lpthreads"
4280 echo "$ac_t""no" 1>&6
4284 if test "x${THREAD_LIB}" = xerror; then
4285 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4286 echo "configure:4287: checking for pthread_attr_init in -lc_r" >&5
4287 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4291 ac_save_LIBS="$LIBS"
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4299 char pthread_attr_init();
4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4307 eval "ac_cv_lib_$ac_lib_var=yes"
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4312 eval "ac_cv_lib_$ac_lib_var=no"
4315 LIBS="$ac_save_LIBS"
4318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4322 echo "$ac_t""no" 1>&6
4326 if test "x${THREAD_LIB}" = xerror; then
4327 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4328 echo "configure:4329: checking for pthread_attr_init" >&5
4329 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 /* System header to define __stub macros and hopefully few prototypes,
4336 which can conflict with char pthread_attr_init(); below. */
4338 /* Override any gcc2 internal prototype to avoid an error. */
4339 /* We use char because int might match the return type of a gcc2
4340 builtin and then its argument prototype would still apply. */
4341 char pthread_attr_init();
4345 /* The GNU C library defines this for functions which it implements
4346 to always fail with ENOSYS. Some functions are actually named
4347 something starting with __ and the normal name is an alias. */
4348 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4351 pthread_attr_init();
4356 if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4358 eval "ac_cv_func_pthread_attr_init=yes"
4360 echo "configure: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4363 eval "ac_cv_func_pthread_attr_init=no"
4368 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4369 echo "$ac_t""yes" 1>&6
4372 echo "$ac_t""no" 1>&6
4378 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4379 echo "configure:4380: checking for cthread_fork in -lthreads" >&5
4380 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 ac_save_LIBS="$LIBS"
4385 LIBS="-lthreads $LIBS"
4386 cat > conftest.$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4389 /* Override any gcc2 internal prototype to avoid an error. */
4390 /* We use char because int might match the return type of a gcc2
4391 builtin and then its argument prototype would still apply. */
4392 char cthread_fork();
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4400 eval "ac_cv_lib_$ac_lib_var=yes"
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 eval "ac_cv_lib_$ac_lib_var=no"
4408 LIBS="$ac_save_LIBS"
4411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4412 echo "$ac_t""yes" 1>&6
4413 THREAD_LIB="-lthreads"
4415 echo "$ac_t""no" 1>&6
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 #include <pthread.h>
4424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4425 egrep "pthread_cond_t" >/dev/null 2>&1; then
4428 cat >> confdefs.h <<\EOF
4429 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4435 cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4438 #include <strings.h>
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 egrep "strncasecmp" >/dev/null 2>&1; then
4444 cat >> confdefs.h <<\EOF
4445 #define STRNCASECMP_IN_STRINGS_H 1
4452 for ac_hdr in getopt.h strings.h
4454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4456 echo "configure:4457: checking for $ac_hdr" >&5
4457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4466 { (eval echo configure:4467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4468 if test -z "$ac_err"; then
4470 eval "ac_cv_header_$ac_safe=yes"
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4476 eval "ac_cv_header_$ac_safe=no"
4480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4483 cat >> confdefs.h <<EOF
4484 #define $ac_tr_hdr 1
4488 echo "$ac_t""no" 1>&6
4492 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4496 echo "configure:4497: checking for $ac_hdr" >&5
4497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4506 { (eval echo configure:4507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4508 if test -z "$ac_err"; then
4510 eval "ac_cv_header_$ac_safe=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_header_$ac_safe=no"
4520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4521 echo "$ac_t""yes" 1>&6
4522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4523 cat >> confdefs.h <<EOF
4524 #define $ac_tr_hdr 1
4528 echo "$ac_t""no" 1>&6
4532 for ac_hdr in dlfcn.h image.h
4534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4536 echo "configure:4537: checking for $ac_hdr" >&5
4537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4540 cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4546 { (eval echo configure:4547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4548 if test -z "$ac_err"; then
4550 eval "ac_cv_header_$ac_safe=yes"
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4556 eval "ac_cv_header_$ac_safe=no"
4560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4563 cat >> confdefs.h <<EOF
4564 #define $ac_tr_hdr 1
4568 echo "$ac_t""no" 1>&6
4572 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4576 echo "configure:4577: checking for $ac_hdr" >&5
4577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4586 { (eval echo configure:4587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4588 if test -z "$ac_err"; then
4590 eval "ac_cv_header_$ac_safe=yes"
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4596 eval "ac_cv_header_$ac_safe=no"
4600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4601 echo "$ac_t""yes" 1>&6
4602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4603 cat >> confdefs.h <<EOF
4604 #define $ac_tr_hdr 1
4608 echo "$ac_t""no" 1>&6
4612 for ac_hdr in machine/param.h sys/shm.h
4614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4616 echo "configure:4617: checking for $ac_hdr" >&5
4617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4626 { (eval echo configure:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4628 if test -z "$ac_err"; then
4630 eval "ac_cv_header_$ac_safe=yes"
4633 echo "configure: failed program was:" >&5
4634 cat conftest.$ac_ext >&5
4636 eval "ac_cv_header_$ac_safe=no"
4640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4643 cat >> confdefs.h <<EOF
4644 #define $ac_tr_hdr 1
4648 echo "$ac_t""no" 1>&6
4652 for ac_hdr in linux/version.h
4654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4656 echo "configure:4657: checking for $ac_hdr" >&5
4657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4666 { (eval echo configure:4667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4668 if test -z "$ac_err"; then
4670 eval "ac_cv_header_$ac_safe=yes"
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4676 eval "ac_cv_header_$ac_safe=no"
4680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4683 cat >> confdefs.h <<EOF
4684 #define $ac_tr_hdr 1
4688 echo "$ac_t""no" 1>&6
4693 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4694 echo "configure:4695: checking whether time.h and sys/time.h may both be included" >&5
4695 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4701 #include <sys/types.h>
4702 #include <sys/time.h>
4708 if { (eval echo configure:4709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4710 ac_cv_header_time=yes
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4715 ac_cv_header_time=no
4720 echo "$ac_t""$ac_cv_header_time" 1>&6
4721 if test $ac_cv_header_time = yes; then
4722 cat >> confdefs.h <<\EOF
4723 #define TIME_WITH_SYS_TIME 1
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4735 egrep "nanosleep" >/dev/null 2>&1; then
4738 cat >> confdefs.h <<\EOF
4739 #define HAVE_DECL_NANOSLEEP 1
4747 cat > conftest.$ac_ext <<EOF
4748 #line 4749 "configure"
4749 #include "confdefs.h"
4750 #include <sys/time.h>
4752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753 egrep "timespec" >/dev/null 2>&1; then
4756 cat >> confdefs.h <<\EOF
4757 #define HAVE_STRUCT_TIMESPEC 1
4765 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4769 echo "configure:4770: checking for $ac_hdr" >&5
4770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4779 { (eval echo configure:4780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4781 if test -z "$ac_err"; then
4783 eval "ac_cv_header_$ac_safe=yes"
4786 echo "configure: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
4789 eval "ac_cv_header_$ac_safe=no"
4793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4794 echo "$ac_t""yes" 1>&6
4795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4796 cat >> confdefs.h <<EOF
4797 #define $ac_tr_hdr 1
4801 echo "$ac_t""no" 1>&6
4806 if test x$SYS != xmingw32
4808 if test x$x_includes = xNONE; then
4809 x_includes=/usr/X11R6/include
4811 if test x$x_libraries = xNONE; then
4812 x_libraries=/usr/X11R6/lib
4814 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4815 for ac_hdr in X11/extensions/dpms.h
4817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4819 echo "configure:4820: checking for $ac_hdr" >&5
4820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4829 { (eval echo configure:4830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4831 if test -z "$ac_err"; then
4833 eval "ac_cv_header_$ac_safe=yes"
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4839 eval "ac_cv_header_$ac_safe=no"
4843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4846 cat >> confdefs.h <<EOF
4847 #define $ac_tr_hdr 1
4850 cat > conftest.$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4853 #include <X11/extensions/dpms.h>
4855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4856 egrep "DPMSInfo" >/dev/null 2>&1; then
4859 cat >> confdefs.h <<\EOF
4860 #define DPMSINFO_IN_DPMS_H 1
4869 echo "$ac_t""no" 1>&6
4873 CPPFLAGS="$save_CPPFLAGS"
4876 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4877 echo "configure:4878: checking for ntohl in sys/param.h" >&5
4878 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 CFLAGS="${save_CFLAGS} -Wall -Werror"
4882 cat > conftest.$ac_ext <<EOF
4883 #line 4884 "configure"
4884 #include "confdefs.h"
4885 #include <sys/param.h>
4887 void foo() { int meuh; ntohl(meuh); }
4890 if { (eval echo configure:4891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4892 ac_cv_c_ntohl_sys_param_h=yes
4894 echo "configure: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4897 ac_cv_c_ntohl_sys_param_h=no
4902 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4903 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4904 cat >> confdefs.h <<\EOF
4905 #define NTOHL_IN_SYS_PARAM_H 1
4910 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4911 echo "configure:4912: checking if \$CC accepts -finline-limit" >&5
4912 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4916 cat > conftest.$ac_ext <<EOF
4917 #line 4918 "configure"
4918 #include "confdefs.h"
4924 if { (eval echo configure:4925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4926 ac_cv_c_inline_limit=yes
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4931 ac_cv_c_inline_limit=no
4936 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4937 if test x"$ac_cv_c_inline_limit" != x"no"; then
4938 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4941 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4942 echo "configure:4943: checking if \$CC accepts -Wall -Winline" >&5
4943 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4946 CFLAGS="${save_CFLAGS} -Wall -Winline"
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4955 if { (eval echo configure:4956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4957 ac_cv_c_Wall_Winline=yes
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4962 ac_cv_c_Wall_Winline=no
4967 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4968 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4969 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4971 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4972 echo "configure:4973: checking if \$CC accepts -wall -winline" >&5
4973 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 CFLAGS="${save_CFLAGS} -wall -winline"
4977 cat > conftest.$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4985 if { (eval echo configure:4986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4987 ac_cv_c_wall_winline=yes
4989 echo "configure: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4992 ac_cv_c_wall_winline=no
4997 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4998 if test x"$ac_cv_c_wall_winline" != x"no"; then
4999 save_CFLAGS="${save_CFLAGS} -wall -winline"
5003 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5004 echo "configure:5005: checking if \$CC accepts -pipe" >&5
5005 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5008 CFLAGS="${save_CFLAGS} -pipe"
5009 cat > conftest.$ac_ext <<EOF
5010 #line 5011 "configure"
5011 #include "confdefs.h"
5017 if { (eval echo configure:5018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5021 echo "configure: failed program was:" >&5
5022 cat conftest.$ac_ext >&5
5029 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5030 if test x"$ac_cv_c_pipe" != x"no"; then
5031 save_CFLAGS="${save_CFLAGS} -pipe"
5034 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5035 echo "configure:5036: checking if \$CC accepts -O3" >&5
5036 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5039 CFLAGS="${save_CFLAGS} -O3"
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5048 if { (eval echo configure:5049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5052 echo "configure: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5060 echo "$ac_t""$ac_cv_c_o3" 1>&6
5061 if test x"$ac_cv_c_o3" != x"no"; then
5062 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5064 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5065 echo "configure:5066: checking if \$CC accepts -O2" >&5
5066 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5069 CFLAGS="${save_CFLAGS} -O2"
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5078 if { (eval echo configure:5079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5082 echo "configure: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5090 echo "$ac_t""$ac_cv_c_o2" 1>&6
5091 if test x"$ac_cv_c_o2" != x"no"; then
5092 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5094 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5095 echo "configure:5096: checking if \$CC accepts -O" >&5
5096 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5099 CFLAGS="${save_CFLAGS} -O"
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5108 if { (eval echo configure:5109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5112 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5120 echo "$ac_t""$ac_cv_c_o" 1>&6
5121 if test x"$ac_cv_c_o" != x"no"; then
5122 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5127 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5128 echo "configure:5129: checking if \$CC accepts -ffast-math" >&5
5129 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5132 CFLAGS="${save_CFLAGS} -ffast-math"
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5141 if { (eval echo configure:5142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5143 ac_cv_c_fast_math=yes
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5148 ac_cv_c_fast_math=no
5153 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5154 if test x"$ac_cv_c_fast_math" != x"no"; then
5155 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5158 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5159 echo "configure:5160: checking if \$CC accepts -funroll-loops" >&5
5160 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5161 echo $ac_n "(cached) $ac_c" 1>&6
5163 CFLAGS="${save_CFLAGS} -funroll-loops"
5164 cat > conftest.$ac_ext <<EOF
5165 #line 5166 "configure"
5166 #include "confdefs.h"
5172 if { (eval echo configure:5173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5174 ac_cv_c_unroll_loops=yes
5176 echo "configure: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5179 ac_cv_c_unroll_loops=no
5184 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5185 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5186 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5189 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5190 echo "configure:5191: checking if \$CC accepts -fomit-frame-pointer" >&5
5191 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5192 echo $ac_n "(cached) $ac_c" 1>&6
5194 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5195 cat > conftest.$ac_ext <<EOF
5196 #line 5197 "configure"
5197 #include "confdefs.h"
5203 if { (eval echo configure:5204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5205 ac_cv_c_omit_frame_pointer=yes
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5210 ac_cv_c_omit_frame_pointer=no
5215 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5216 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5217 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5220 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5221 echo "configure:5222: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5222 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5225 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5226 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5234 if { (eval echo configure:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5246 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5247 if test x"$ac_cv_ld_darwin" != x"no"; then
5248 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5251 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5252 echo "configure:5253: checking if \$CC accepts -shared" >&5
5253 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5256 CFLAGS="${save_CFLAGS} -shared"
5257 cat > conftest.$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5265 if { (eval echo configure:5266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5267 ac_cv_ld_plugins=yes
5269 echo "configure: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5277 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5278 if test x"$ac_cv_ld_plugins" != x"no"; then
5279 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5282 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5283 echo "configure:5284: checking for variadic cpp macros" >&5
5284 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5287 CFLAGS="${save_CFLAGS}"
5288 cat > conftest.$ac_ext <<EOF
5289 #line 5290 "configure"
5290 #include "confdefs.h"
5292 #define a(b,c...) printf(b,##c)
5294 a("foo");a("%s","bar");a("%s%s","baz","quux");
5297 if { (eval echo configure:5298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5299 ac_cv_cpp_variadic_macros=yes
5301 echo "configure: failed program was:" >&5
5302 cat conftest.$ac_ext >&5
5304 ac_cv_cpp_variadic_macros=no
5309 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5310 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5311 cat >> confdefs.h <<\EOF
5312 #define HAVE_VARIADIC_MACROS 1
5317 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5318 echo "configure:5319: checking __attribute__ ((aligned ())) support" >&5
5319 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 ac_cv_c_attribute_aligned=0
5323 CFLAGS="${save_CFLAGS} -Werror"
5324 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5330 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5333 if { (eval echo configure:5334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5335 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5337 echo "configure: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5344 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5345 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5346 cat >> confdefs.h <<EOF
5347 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5352 CFLAGS="${save_CFLAGS}"
5353 CPPFLAGS="${save_CPPFLAGS}"
5354 LDFLAGS="${save_LDFLAGS}"
5356 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5357 echo "configure:5358: checking for boolean_t in sys/types.h" >&5
5358 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5359 echo $ac_n "(cached) $ac_c" 1>&6
5361 cat > conftest.$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5364 #include <sys/types.h>
5369 if { (eval echo configure:5370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5371 ac_cv_c_boolean_t_sys_types_h=yes
5373 echo "configure: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5376 ac_cv_c_boolean_t_sys_types_h=no
5381 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5382 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5383 cat >> confdefs.h <<\EOF
5384 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5389 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5390 echo "configure:5391: checking for boolean_t in pthread.h" >&5
5391 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5394 cat > conftest.$ac_ext <<EOF
5395 #line 5396 "configure"
5396 #include "confdefs.h"
5397 #include <pthread.h>
5402 if { (eval echo configure:5403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5404 ac_cv_c_boolean_t_pthread_h=yes
5406 echo "configure: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5409 ac_cv_c_boolean_t_pthread_h=no
5414 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5415 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5416 cat >> confdefs.h <<\EOF
5417 #define BOOLEAN_T_IN_PTHREAD_H 1
5422 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5423 echo "configure:5424: checking for boolean_t in cthreads.h" >&5
5424 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5427 cat > conftest.$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 #include <cthreads.h>
5435 if { (eval echo configure:5436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5437 ac_cv_c_boolean_t_cthreads_h=yes
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5442 ac_cv_c_boolean_t_cthreads_h=no
5447 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5448 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5449 cat >> confdefs.h <<\EOF
5450 #define BOOLEAN_T_IN_CTHREADS_H 1
5455 case x"${target_cpu}" in
5460 ARCH="${target_cpu}"
5464 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
5465 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone fx_scope"
5467 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5468 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5469 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5470 SSE_MODULES="imdctsse downmixsse"
5471 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5473 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5474 echo "configure:5475: checking if \$CC groks MMX inline assembly" >&5
5475 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5483 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5486 if { (eval echo configure:5487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5488 ac_cv_mmx_inline=yes
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5498 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5499 if test x"$ac_cv_mmx_inline" != x"no"; then
5500 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5503 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5504 echo "configure:5505: checking if \$CC groks MMX EXT inline assembly" >&5
5505 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5506 echo $ac_n "(cached) $ac_c" 1>&6
5508 cat > conftest.$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5513 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5516 if { (eval echo configure:5517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5518 ac_cv_mmxext_inline=yes
5520 echo "configure: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5523 ac_cv_mmxext_inline=no
5528 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5529 if test x"$ac_cv_mmxext_inline" != x"no"; then
5530 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5533 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5534 echo "configure:5535: checking if \$CC groks 3D Now! inline assembly" >&5
5535 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5536 echo $ac_n "(cached) $ac_c" 1>&6
5538 cat > conftest.$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5543 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5546 if { (eval echo configure:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5548 ac_cv_3dnow_inline=yes
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5553 ac_cv_3dnow_inline=no
5558 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5559 if test x"$ac_cv_3dnow_inline" != x"no"; then
5560 cat >> confdefs.h <<\EOF
5561 #define CAN_COMPILE_3DNOW 1
5564 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5567 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5568 echo "configure:5569: checking if \$CC groks SSE inline assembly" >&5
5569 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5572 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5577 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5580 if { (eval echo configure:5581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5582 ac_cv_sse_inline=yes
5584 echo "configure: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5592 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5593 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5594 cat >> confdefs.h <<\EOF
5595 #define CAN_COMPILE_SSE 1
5598 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5601 # don't try to grok altivec with native mingw32 it doesn't work right now
5602 # we should be able to remove this test with future versions of mingw32
5603 if test x$SYS != xmingw32; then
5604 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5605 echo "configure:5606: checking if \$CC groks Altivec inline assembly" >&5
5606 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5609 cat > conftest.$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5614 asm volatile("vperm 0,1,2,3");
5617 if { (eval echo configure:5618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5619 ac_cv_altivec_inline=yes
5621 echo "configure: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5625 CFLAGS="$CFLAGS -Wa,-m7400"
5626 cat > conftest.$ac_ext <<EOF
5627 #line 5628 "configure"
5628 #include "confdefs.h"
5631 asm volatile("vperm 0,1,2,3");
5634 if { (eval echo configure:5635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5636 ac_cv_altivec_inline="-Wa,-m7400"
5638 echo "configure: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5641 ac_cv_altivec_inline=no
5650 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5651 if test x"$ac_cv_altivec_inline" != x"no"; then
5652 cat >> confdefs.h <<\EOF
5653 #define CAN_COMPILE_ALTIVEC 1
5656 if test x"$ac_cv_altivec_inline" != x"yes"; then
5657 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5658 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5659 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5660 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5662 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5665 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5666 echo "configure:5667: checking if \$CC groks Altivec C extensions" >&5
5667 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5671 CFLAGS="$CFLAGS -faltivec"
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5678 vec_mtvscr((vector unsigned int)(0));
5681 if { (eval echo configure:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5683 ac_cv_c_altivec=-faltivec
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5690 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5696 vec_mtvscr((vector unsigned int)(0));
5699 if { (eval echo configure:5700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5701 ac_cv_c_altivec="-fvec"
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5716 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5717 if test x"$ac_cv_c_altivec" != x"no"; then
5718 cat >> confdefs.h <<\EOF
5719 #define CAN_COMPILE_C_ALTIVEC 1
5722 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5723 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5724 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5725 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5726 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5729 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5730 echo "configure:5731: checking if linker needs -framework vecLib" >&5
5731 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5734 save_LDFLAGS=$LDFLAGS
5735 LDFLAGS="$LDFLAGS -framework vecLib"
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5744 if { (eval echo configure:5745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5746 ac_cv_ld_altivec=yes
5748 echo "configure: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5754 LDFLAGS=$save_LDFLAGS
5758 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5759 if test x"$ac_cv_ld_altivec" != x"no"; then
5760 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5761 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5762 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5763 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5768 # Check whether --with- or --without- was given.
5769 if test "${with_+set}" = set; then
5774 # Check whether --with- or --without- was given.
5775 if test "${with_+set}" = set; then
5781 # Check whether --with-tuning or --without-tuning was given.
5782 if test "${with_tuning+set}" = set; then
5783 withval="$with_tuning"
5787 if test "x$with_tuning" != "x"; then
5788 TUNING="$with_tuning"
5790 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5792 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5796 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5799 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5802 # Check whether --enable-optimizations or --disable-optimizations was given.
5803 if test "${enable_optimizations+set}" = set; then
5804 enableval="$enable_optimizations"
5805 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5811 # Check whether --enable-altivec or --disable-altivec was given.
5812 if test "${enable_altivec+set}" = set; then
5813 enableval="$enable_altivec"
5814 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5815 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5817 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5818 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5823 # Check whether --enable-debug or --disable-debug was given.
5824 if test "${enable_debug+set}" = set; then
5825 enableval="$enable_debug"
5826 if test x$enable_debug = xyes; then DEBUG=1; fi
5831 # Check whether --enable-release or --disable-release was given.
5832 if test "${enable_release+set}" = set; then
5833 enableval="$enable_release"
5834 if test x$enable_release = xyes; then RELEASE=1; fi
5836 VERSION="${VERSION}_`date +%Y-%m-%d`"
5841 # Check whether --with- or --without- was given.
5842 if test "${with_+set}" = set; then
5848 # Check whether --enable-dvd or --disable-dvd was given.
5849 if test "${enable_dvd+set}" = set; then
5850 enableval="$enable_dvd"
5854 if test "x$enable_dvd" != "xno"
5856 # Check whether --with-dvdcss or --without-dvdcss was given.
5857 if test "${with_dvdcss+set}" = set; then
5858 withval="$with_dvdcss"
5862 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5863 if test "${with_dvdcss_tree+set}" = set; then
5864 withval="$with_dvdcss_tree"
5868 case "x$with_dvdcss" in
5870 if test "x$with_dvdcss_tree" = x
5872 for ac_hdr in dvdcss/dvdcss.h
5874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5876 echo "configure:5877: checking for $ac_hdr" >&5
5877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5878 echo $ac_n "(cached) $ac_c" 1>&6
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5886 { (eval echo configure:5887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5888 if test -z "$ac_err"; then
5890 eval "ac_cv_header_$ac_safe=yes"
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5896 eval "ac_cv_header_$ac_safe=no"
5900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5901 echo "$ac_t""yes" 1>&6
5902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5903 cat >> confdefs.h <<EOF
5904 #define $ac_tr_hdr 1
5906 PLUGINS="${PLUGINS} dvd"
5907 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5909 echo "$ac_t""no" 1>&6
5910 echo "configure: warning: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." 1>&2
5911 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5916 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5917 echo "configure:5918: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5918 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5919 if test "x$real_dvdcss_tree" = x
5921 echo "$ac_t""no" 1>&6
5922 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5924 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5926 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5927 BUILTINS="${BUILTINS} dvd"
5928 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5929 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5931 echo "$ac_t""no" 1>&6
5932 { echo "configure: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" 1>&2; exit 1; }
5937 PLUGINS="${PLUGINS} dvd"
5938 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5939 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5942 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5943 echo "configure:5944: checking for dvdcss headers in ${with_dvdcss}" >&5
5944 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5946 echo "$ac_t""yes" 1>&6
5947 PLUGINS="${PLUGINS} dvd"
5948 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5949 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5951 echo "$ac_t""no" 1>&6
5952 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5958 # Check whether --enable-dvdread or --disable-dvdread was given.
5959 if test "${enable_dvdread+set}" = set; then
5960 enableval="$enable_dvdread"
5964 if test "x$enable_dvdread" != "xno"
5966 # Check whether --with-dvdread or --without-dvdread was given.
5967 if test "${with_dvdread+set}" = set; then
5968 withval="$with_dvdread"
5972 if test "x$with_dvdread" = x
5977 test_LDFLAGS="-L${with_dvdread}/lib"
5978 test_CFLAGS="-I${with_dvdread}/include"
5980 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5981 for ac_hdr in dvdread/dvd_reader.h
5983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5985 echo "configure:5986: checking for $ac_hdr" >&5
5986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5987 echo $ac_n "(cached) $ac_c" 1>&6
5989 cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5995 { (eval echo configure:5996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5997 if test -z "$ac_err"; then
5999 eval "ac_cv_header_$ac_safe=yes"
6002 echo "configure: failed program was:" >&5
6003 cat conftest.$ac_ext >&5
6005 eval "ac_cv_header_$ac_safe=no"
6009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6010 echo "$ac_t""yes" 1>&6
6011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6012 cat >> confdefs.h <<EOF
6013 #define $ac_tr_hdr 1
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 #include <dvdread/dvd_reader.h>
6021 void foo() { int i=DVD_VIDEO_LB_LEN; }
6024 if { (eval echo configure:6025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6027 PLUGINS="${PLUGINS} dvdread"
6028 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6029 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6032 echo "configure: failed program was:" >&5
6033 cat conftest.$ac_ext >&5
6036 if test "x$enable_dvdread" != x
6038 { echo "configure: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" 1>&2; exit 1; }
6045 echo "$ac_t""no" 1>&6
6046 if test "x$enable_dvdread" != x
6048 if test "x$with_dvdread" != x
6050 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6052 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6059 CPPFLAGS="$save_CPPFLAGS"
6062 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6063 if test "${enable_dvbpsi+set}" = set; then
6064 enableval="$enable_dvbpsi"
6068 if test "x$enable_dvbpsi" != "xno"
6070 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6071 if test "${with_dvbpsi+set}" = set; then
6072 withval="$with_dvbpsi"
6076 if test "x$with_dvbpsi" = x
6081 test_LDFLAGS="-L${with_dvbpsi}/lib"
6082 test_CFLAGS="-I${with_dvbpsi}/include"
6084 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6085 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6086 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6087 echo "configure:6088: checking for dvbpsi/dr.h" >&5
6088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 #include <dvbpsi/dr.h>
6096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6097 { (eval echo configure:6098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6099 if test -z "$ac_err"; then
6101 eval "ac_cv_header_$ac_safe=yes"
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6107 eval "ac_cv_header_$ac_safe=no"
6111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6112 echo "$ac_t""yes" 1>&6
6114 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6115 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6116 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6119 echo "$ac_t""no" 1>&6
6121 if test "x$enable_dvbpsi" != x
6123 { echo "configure: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" 1>&2; exit 1; }
6128 CPPFLAGS="$save_CPPFLAGS"
6131 # Check whether --enable-vcd or --disable-vcd was given.
6132 if test "${enable_vcd+set}" = set; then
6133 enableval="$enable_vcd"
6138 if test x$enable_vcd != xno
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 #include <linux/cdrom.h>
6145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6146 egrep "cdrom_msf0" >/dev/null 2>&1; then
6149 PLUGINS="${PLUGINS} vcd"
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 #include <sys/cdio.h>
6160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6161 egrep "ioc_toc_header " >/dev/null 2>&1; then
6164 PLUGINS="${PLUGINS} vcd"
6165 cat >> confdefs.h <<\EOF
6166 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6174 if test "x${SYS}" = "xbsdi"
6176 PLUGINS="${PLUGINS} vcd"
6179 if test "x${SYS}" = "xdarwin"
6181 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6182 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6186 # Check whether --enable-satellite or --disable-satellite was given.
6187 if test "${enable_satellite+set}" = set; then
6188 enableval="$enable_satellite"
6189 if test x$enable_satellite = xyes
6191 PLUGINS="${PLUGINS} satellite"
6196 if test x$SYS != xnto
6198 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6199 echo "configure:6200: checking for inet_pton" >&5
6200 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 /* System header to define __stub macros and hopefully few prototypes,
6207 which can conflict with char inet_pton(); below. */
6209 /* Override any gcc2 internal prototype to avoid an error. */
6210 /* We use char because int might match the return type of a gcc2
6211 builtin and then its argument prototype would still apply. */
6216 /* The GNU C library defines this for functions which it implements
6217 to always fail with ENOSYS. Some functions are actually named
6218 something starting with __ and the normal name is an alias. */
6219 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6227 if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6229 eval "ac_cv_func_inet_pton=yes"
6231 echo "configure: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6234 eval "ac_cv_func_inet_pton=no"
6239 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6240 echo "$ac_t""yes" 1>&6
6241 PLUGINS="${PLUGINS} ipv6"
6243 echo "$ac_t""no" 1>&6
6248 # Check whether --enable-avi or --disable-avi was given.
6249 if test "${enable_avi+set}" = set; then
6250 enableval="$enable_avi"
6254 if test x$enable_avi != xno
6256 PLUGINS="${PLUGINS} avi"
6260 # Check whether --with- or --without- was given.
6261 if test "${with_+set}" = set; then
6267 # Check whether --enable-mad or --disable-mad was given.
6268 if test "${enable_mad+set}" = set; then
6269 enableval="$enable_mad"
6273 if test x$enable_mad = xyes
6275 # Check whether --with-mad or --without-mad was given.
6276 if test "${with_mad+set}" = set; then
6281 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6283 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6284 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6287 # Check whether --with-mad-tree or --without-mad-tree was given.
6288 if test "${with_mad_tree+set}" = set; then
6289 withval="$with_mad_tree"
6293 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6295 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6296 if test "x$real_mad_tree" = x
6298 echo "$ac_t""no" 1>&6
6299 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6301 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6302 echo "configure:6303: checking for mad.h in ${real_mad_tree}/libmad" >&5
6303 if test -f ${real_mad_tree}/libmad/mad.h
6305 echo "$ac_t""yes" 1>&6
6306 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6307 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6308 save_LDFLAGS=$LDFLAGS
6309 LDFLAGS=$mad_LDFLAGS
6310 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6311 echo "configure:6312: checking for mad_bit_init in -lmad" >&5
6312 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6314 echo $ac_n "(cached) $ac_c" 1>&6
6316 ac_save_LIBS="$LIBS"
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6321 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6324 char mad_bit_init();
6330 if { (eval echo configure:6331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6332 eval "ac_cv_lib_$ac_lib_var=yes"
6334 echo "configure: failed program was:" >&5
6335 cat conftest.$ac_ext >&5
6337 eval "ac_cv_lib_$ac_lib_var=no"
6340 LIBS="$ac_save_LIBS"
6343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6344 echo "$ac_t""yes" 1>&6
6346 BUILTINS="${BUILTINS} mad"
6347 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6350 echo "$ac_t""no" 1>&6
6351 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6355 LDFLAGS=$save_LDFLAGS
6357 echo "$ac_t""no" 1>&6
6358 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6362 save_LDFLAGS=$LDFLAGS
6363 CFLAGS="$CFLAGS $mad_CFLAGS"
6364 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6369 echo "configure:6370: checking for $ac_hdr" >&5
6370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6373 cat > conftest.$ac_ext <<EOF
6374 #line 6375 "configure"
6375 #include "confdefs.h"
6378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6379 { (eval echo configure:6380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6381 if test -z "$ac_err"; then
6383 eval "ac_cv_header_$ac_safe=yes"
6386 echo "configure: failed program was:" >&5
6387 cat conftest.$ac_ext >&5
6389 eval "ac_cv_header_$ac_safe=no"
6393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6396 cat >> confdefs.h <<EOF
6397 #define $ac_tr_hdr 1
6401 echo "$ac_t""no" 1>&6
6402 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6406 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6407 echo "configure:6408: checking for mad_bit_init in -lmad" >&5
6408 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6410 echo $ac_n "(cached) $ac_c" 1>&6
6412 ac_save_LIBS="$LIBS"
6414 cat > conftest.$ac_ext <<EOF
6415 #line 6416 "configure"
6416 #include "confdefs.h"
6417 /* Override any gcc2 internal prototype to avoid an error. */
6418 /* We use char because int might match the return type of a gcc2
6419 builtin and then its argument prototype would still apply. */
6420 char mad_bit_init();
6426 if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6428 eval "ac_cv_lib_$ac_lib_var=yes"
6430 echo "configure: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6433 eval "ac_cv_lib_$ac_lib_var=no"
6436 LIBS="$ac_save_LIBS"
6439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6440 echo "$ac_t""yes" 1>&6
6441 PLUGINS="${PLUGINS} mad"
6442 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6444 echo "$ac_t""no" 1>&6
6445 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6449 LDFLAGS=$save_LDFLAGS
6453 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6454 if test "${enable_ffmpeg+set}" = set; then
6455 enableval="$enable_ffmpeg"
6459 if test "x$enable_ffmpeg" = "xyes"
6461 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6462 if test "${with_ffmpeg+set}" = set; then
6463 withval="$with_ffmpeg"
6467 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6469 BUILTINS="${BUILTINS} ffmpeg"
6470 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6471 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6474 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6475 if test "${with_ffmpeg_tree+set}" = set; then
6476 withval="$with_ffmpeg_tree"
6480 if test "x$with_ffmpeg_tree" != "x"
6482 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6483 echo "configure:6484: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6484 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6485 if test "x$real_ffmpeg_tree" = x
6487 echo "$ac_t""no" 1>&6
6488 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6490 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6492 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6493 BUILTINS="${BUILTINS} ffmpeg"
6494 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6495 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6497 echo "$ac_t""no" 1>&6
6498 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6502 save_LDFLAGS=$LDFLAGS
6503 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6504 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS"
6505 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6506 echo "configure:6507: checking for avcodec_init in -lavcodec" >&5
6507 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6511 ac_save_LIBS="$LIBS"
6512 LIBS="-lavcodec $LIBS"
6513 cat > conftest.$ac_ext <<EOF
6514 #line 6515 "configure"
6515 #include "confdefs.h"
6516 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6519 char avcodec_init();
6525 if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6527 eval "ac_cv_lib_$ac_lib_var=yes"
6529 echo "configure: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6532 eval "ac_cv_lib_$ac_lib_var=no"
6535 LIBS="$ac_save_LIBS"
6538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6540 BUITLINS="${BUILTINS} ffmpeg"
6541 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
6543 echo "$ac_t""no" 1>&6
6544 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6548 LDFLAGS=$save_LDFLAGS
6553 if test x$SYS = xbeos
6555 PLUGINS="${PLUGINS} beos"
6558 # Check whether --enable-a52 or --disable-a52 was given.
6559 if test "${enable_a52+set}" = set; then
6560 enableval="$enable_a52"
6564 if test "x$enable_a52" != "xno"
6566 # Check whether --with-a52-tree or --without-a52-tree was given.
6567 if test "${with_a52_tree+set}" = set; then
6568 withval="$with_a52_tree"
6572 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6574 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6575 if test "x$real_a52_tree" = x
6577 echo "$ac_t""no" 1>&6
6578 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6580 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6581 echo "configure:6582: checking for a52.h in ${real_a52_tree}/include" >&5
6582 if test -f ${real_a52_tree}/include/a52.h
6584 echo "$ac_t""yes" 1>&6
6585 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6586 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6587 save_LDFLAGS=$LDFLAGS
6588 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6589 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6590 echo "configure:6591: checking for a52_free in -la52" >&5
6591 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6593 echo $ac_n "(cached) $ac_c" 1>&6
6595 ac_save_LIBS="$LIBS"
6596 LIBS="-la52 -lm $LIBS"
6597 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 /* Override any gcc2 internal prototype to avoid an error. */
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 eval "ac_cv_lib_$ac_lib_var=yes"
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6616 eval "ac_cv_lib_$ac_lib_var=no"
6619 LIBS="$ac_save_LIBS"
6622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6623 echo "$ac_t""yes" 1>&6
6625 BUILTINS="${BUILTINS} a52"
6626 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6627 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6630 echo "$ac_t""no" 1>&6
6632 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6634 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6636 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6641 LDFLAGS=$save_LDFLAGS
6643 echo "$ac_t""no" 1>&6
6644 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6646 else for ac_hdr in a52dec/a52.h
6648 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6649 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6650 echo "configure:6651: checking for $ac_hdr" >&5
6651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6652 echo $ac_n "(cached) $ac_c" 1>&6
6654 cat > conftest.$ac_ext <<EOF
6655 #line 6656 "configure"
6656 #include "confdefs.h"
6659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6660 { (eval echo configure:6661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6662 if test -z "$ac_err"; then
6664 eval "ac_cv_header_$ac_safe=yes"
6667 echo "configure: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6670 eval "ac_cv_header_$ac_safe=no"
6674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6675 echo "$ac_t""yes" 1>&6
6676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6677 cat >> confdefs.h <<EOF
6678 #define $ac_tr_hdr 1
6681 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6682 echo "configure:6683: checking for a52_free in -la52" >&5
6683 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6685 echo $ac_n "(cached) $ac_c" 1>&6
6687 ac_save_LIBS="$LIBS"
6688 LIBS="-la52 -lm $LIBS"
6689 cat > conftest.$ac_ext <<EOF
6690 #line 6691 "configure"
6691 #include "confdefs.h"
6692 /* Override any gcc2 internal prototype to avoid an error. */
6693 /* We use char because int might match the return type of a gcc2
6694 builtin and then its argument prototype would still apply. */
6701 if { (eval echo configure:6702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6703 eval "ac_cv_lib_$ac_lib_var=yes"
6705 echo "configure: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6708 eval "ac_cv_lib_$ac_lib_var=no"
6711 LIBS="$ac_save_LIBS"
6714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6715 echo "$ac_t""yes" 1>&6
6717 BUILTINS="${BUILTINS} a52"
6718 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6719 a52_CFLAGS="${a52_CFLAGS}"
6722 echo "$ac_t""no" 1>&6
6727 echo "$ac_t""no" 1>&6
6734 # Check whether --enable-vorbis or --disable-vorbis was given.
6735 if test "${enable_vorbis+set}" = set; then
6736 enableval="$enable_vorbis"
6740 if test "x$enable_vorbis" != "xno"
6742 for ac_hdr in ogg/ogg.h
6744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6746 echo "configure:6747: checking for $ac_hdr" >&5
6747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6748 echo $ac_n "(cached) $ac_c" 1>&6
6750 cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6756 { (eval echo configure:6757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6758 if test -z "$ac_err"; then
6760 eval "ac_cv_header_$ac_safe=yes"
6763 echo "configure: failed program was:" >&5
6764 cat conftest.$ac_ext >&5
6766 eval "ac_cv_header_$ac_safe=no"
6770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6771 echo "$ac_t""yes" 1>&6
6772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6773 cat >> confdefs.h <<EOF
6774 #define $ac_tr_hdr 1
6777 #PLUGINS="${PLUGINS} vorbis"
6778 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6781 echo "$ac_t""no" 1>&6
6788 # Check whether --with- or --without- was given.
6789 if test "${with_+set}" = set; then
6795 # Check whether --enable-x11 or --disable-x11 was given.
6796 if test "${enable_x11+set}" = set; then
6797 enableval="$enable_x11"
6801 if test x$enable_x11 != xno &&
6802 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6803 if test x$x_includes = xNONE; then
6804 x_includes=/usr/X11R6/include
6806 if test x$x_libraries = xNONE; then
6807 x_libraries=/usr/X11R6/lib
6809 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6810 for ac_hdr in X11/Xlib.h
6812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6814 echo "configure:6815: checking for $ac_hdr" >&5
6815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6816 echo $ac_n "(cached) $ac_c" 1>&6
6818 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure"
6820 #include "confdefs.h"
6823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6824 { (eval echo configure:6825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6826 if test -z "$ac_err"; then
6828 eval "ac_cv_header_$ac_safe=yes"
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6834 eval "ac_cv_header_$ac_safe=no"
6838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6839 echo "$ac_t""yes" 1>&6
6840 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6841 cat >> confdefs.h <<EOF
6842 #define $ac_tr_hdr 1
6845 PLUGINS="${PLUGINS} x11"
6846 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6847 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6850 echo "$ac_t""no" 1>&6
6854 CPPFLAGS="$save_CPPFLAGS"
6857 # Check whether --enable-xvideo or --disable-xvideo was given.
6858 if test "${enable_xvideo+set}" = set; then
6859 enableval="$enable_xvideo"
6863 if test x$enable_xvideo != xno &&
6864 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6865 if test x$x_includes = xNONE; then
6866 x_includes=/usr/X11R6/include
6868 if test x$x_libraries = xNONE; then
6869 x_libraries=/usr/X11R6/lib
6871 save_CPPFLAGS=$CPPFLAGS
6872 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6873 for ac_hdr in X11/extensions/Xv.h
6875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6877 echo "configure:6878: checking for $ac_hdr" >&5
6878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6881 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6887 { (eval echo configure:6888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6889 if test -z "$ac_err"; then
6891 eval "ac_cv_header_$ac_safe=yes"
6894 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6897 eval "ac_cv_header_$ac_safe=no"
6901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6902 echo "$ac_t""yes" 1>&6
6903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6904 cat >> confdefs.h <<EOF
6905 #define $ac_tr_hdr 1
6909 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6910 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6911 echo "configure:6912: checking for XvSetPortAttribute in -lXv_pic" >&5
6912 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6913 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6914 echo $ac_n "(cached) $ac_c" 1>&6
6916 ac_save_LIBS="$LIBS"
6917 LIBS="-lXv_pic $LIBS"
6918 cat > conftest.$ac_ext <<EOF
6919 #line 6920 "configure"
6920 #include "confdefs.h"
6921 /* Override any gcc2 internal prototype to avoid an error. */
6922 /* We use char because int might match the return type of a gcc2
6923 builtin and then its argument prototype would still apply. */
6924 char XvSetPortAttribute();
6927 XvSetPortAttribute()
6930 if { (eval echo configure:6931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6932 eval "ac_cv_lib_$ac_lib_var=yes"
6934 echo "configure: failed program was:" >&5
6935 cat conftest.$ac_ext >&5
6937 eval "ac_cv_lib_$ac_lib_var=no"
6940 LIBS="$ac_save_LIBS"
6943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6944 echo "$ac_t""yes" 1>&6
6945 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6946 PLUGINS="${PLUGINS} xvideo"
6947 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6948 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6950 echo "$ac_t""no" 1>&6
6951 # We don't have Xv_pic, let's make xvideo.a as builtin
6952 BUILTINS="${BUILTINS} xvideo"
6953 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6954 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6957 CFLAGS="$save_CFLAGS"
6959 CPPFLAGS="$save_CPPFLAGS"
6961 echo "$ac_t""no" 1>&6
6967 # Check whether --enable-sdl or --disable-sdl was given.
6968 if test "${enable_sdl+set}" = set; then
6969 enableval="$enable_sdl"
6973 if test "x$enable_sdl" != "xno"
6976 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6977 if test "${with_sdl_config_path+set}" = set; then
6978 withval="$with_sdl_config_path"
6979 if test "x$with_sdl_config_path" != "xno"
6981 SDL_PATH="$with_sdl_config_path:$PATH"
6985 # Extract the first word of "sdl12-config", so it can be a program name with args.
6986 set dummy sdl12-config; ac_word=$2
6987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6988 echo "configure:6989: checking for $ac_word" >&5
6989 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6990 echo $ac_n "(cached) $ac_c" 1>&6
6992 case "$SDL12_CONFIG" in
6994 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6997 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7001 ac_dummy="$SDL_PATH"
7002 for ac_dir in $ac_dummy; do
7003 test -z "$ac_dir" && ac_dir=.
7004 if test -f $ac_dir/$ac_word; then
7005 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7010 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7014 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7015 if test -n "$SDL12_CONFIG"; then
7016 echo "$ac_t""$SDL12_CONFIG" 1>&6
7018 echo "$ac_t""no" 1>&6
7021 SDL_CONFIG=${SDL12_CONFIG}
7022 SDL_HEADER="SDL12/SDL.h"
7023 if test x${SDL_CONFIG} = xno
7025 # Extract the first word of "sdl11-config", so it can be a program name with args.
7026 set dummy sdl11-config; ac_word=$2
7027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7028 echo "configure:7029: checking for $ac_word" >&5
7029 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7030 echo $ac_n "(cached) $ac_c" 1>&6
7032 case "$SDL11_CONFIG" in
7034 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7037 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7041 ac_dummy="$SDL_PATH"
7042 for ac_dir in $ac_dummy; do
7043 test -z "$ac_dir" && ac_dir=.
7044 if test -f $ac_dir/$ac_word; then
7045 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7050 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7054 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7055 if test -n "$SDL11_CONFIG"; then
7056 echo "$ac_t""$SDL11_CONFIG" 1>&6
7058 echo "$ac_t""no" 1>&6
7061 SDL_CONFIG=${SDL11_CONFIG}
7062 SDL_HEADER="SDL11/SDL.h"
7064 if test x${SDL_CONFIG} = xno
7066 # Extract the first word of "sdl-config", so it can be a program name with args.
7067 set dummy sdl-config; ac_word=$2
7068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7069 echo "configure:7070: checking for $ac_word" >&5
7070 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7071 echo $ac_n "(cached) $ac_c" 1>&6
7073 case "$SDL_CONFIG" in
7075 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7078 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7082 ac_dummy="$SDL_PATH"
7083 for ac_dir in $ac_dummy; do
7084 test -z "$ac_dir" && ac_dir=.
7085 if test -f $ac_dir/$ac_word; then
7086 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7091 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7095 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7096 if test -n "$SDL_CONFIG"; then
7097 echo "$ac_t""$SDL_CONFIG" 1>&6
7099 echo "$ac_t""no" 1>&6
7102 SDL_HEADER="SDL/SDL.h"
7104 if test x${SDL_CONFIG} != xno
7106 PLUGINS="${PLUGINS} sdl"
7107 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7108 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7109 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7110 for ac_hdr in ${SDL_HEADER}
7112 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7113 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7114 echo "configure:7115: checking for $ac_hdr" >&5
7115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7116 echo $ac_n "(cached) $ac_c" 1>&6
7118 cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7124 { (eval echo configure:7125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7126 if test -z "$ac_err"; then
7128 eval "ac_cv_header_$ac_safe=yes"
7131 echo "configure: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7134 eval "ac_cv_header_$ac_safe=no"
7138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7139 echo "$ac_t""yes" 1>&6
7140 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7141 cat >> confdefs.h <<EOF
7142 #define $ac_tr_hdr 1
7144 cat >> confdefs.h <<EOF
7145 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7149 echo "$ac_t""no" 1>&6
7150 { echo "configure: error: The development package for SDL is not installed.
7151 Please install it and try again. Alternatively you can also configure with
7152 --disable-sdl." 1>&2; exit 1; }
7157 CPPFLAGS="$save_CPPFLAGS"
7158 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7160 { echo "configure: error: The development package for SDL is not installed.
7161 Please install it and try again. Alternatively you can also configure with
7162 --disable-sdl." 1>&2; exit 1; }
7164 elif test "x$enable_sdl" = "xyes"
7166 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7167 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7172 # Check whether --enable-directx or --disable-directx was given.
7173 if test "${enable_directx+set}" = set; then
7174 enableval="$enable_directx"
7178 if test "x$enable_directx" != "xno"
7180 if test x$SYS = xmingw32
7182 # Check whether --with-directx or --without-directx was given.
7183 if test "${with_directx+set}" = set; then
7184 withval="$with_directx"
7188 if test "x$with_directx" = "x"
7190 for ac_hdr in ddraw.h
7192 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7193 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7194 echo "configure:7195: checking for $ac_hdr" >&5
7195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7196 echo $ac_n "(cached) $ac_c" 1>&6
7198 cat > conftest.$ac_ext <<EOF
7199 #line 7200 "configure"
7200 #include "confdefs.h"
7203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7204 { (eval echo configure:7205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7206 if test -z "$ac_err"; then
7208 eval "ac_cv_header_$ac_safe=yes"
7211 echo "configure: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7214 eval "ac_cv_header_$ac_safe=no"
7218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7219 echo "$ac_t""yes" 1>&6
7220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7221 cat >> confdefs.h <<EOF
7222 #define $ac_tr_hdr 1
7224 PLUGINS="${PLUGINS} directx"
7225 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7227 echo "$ac_t""no" 1>&6
7232 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7233 echo "configure:7234: checking for directX headers in ${with_directx}" >&5
7234 if test -f ${with_directx}/ddraw.h
7236 PLUGINS="${PLUGINS} directx"
7237 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7238 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7239 echo "$ac_t""yes" 1>&6
7241 echo "$ac_t""no" 1>&6
7242 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7248 # Check whether --enable-fb or --disable-fb was given.
7249 if test "${enable_fb+set}" = set; then
7250 enableval="$enable_fb"
7254 if test x$enable_fb != xno
7256 for ac_hdr in linux/fb.h
7258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7260 echo "configure:7261: checking for $ac_hdr" >&5
7261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7262 echo $ac_n "(cached) $ac_c" 1>&6
7264 cat > conftest.$ac_ext <<EOF
7265 #line 7266 "configure"
7266 #include "confdefs.h"
7269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7270 { (eval echo configure:7271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7272 if test -z "$ac_err"; then
7274 eval "ac_cv_header_$ac_safe=yes"
7277 echo "configure: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7280 eval "ac_cv_header_$ac_safe=no"
7284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7285 echo "$ac_t""yes" 1>&6
7286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7287 cat >> confdefs.h <<EOF
7288 #define $ac_tr_hdr 1
7291 PLUGINS="${PLUGINS} fb"
7294 echo "$ac_t""no" 1>&6
7300 # Check whether --enable-mga or --disable-mga was given.
7301 if test "${enable_mga+set}" = set; then
7302 enableval="$enable_mga"
7303 if test x$enable_mga = xyes
7305 PLUGINS="${PLUGINS} mga xmga"
7310 # Check whether --enable-ggi or --disable-ggi was given.
7311 if test "${enable_ggi+set}" = set; then
7312 enableval="$enable_ggi"
7316 if test x$enable_ggi = xyes
7318 PLUGINS="${PLUGINS} ggi"
7319 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7320 # Check whether --with-ggi or --without-ggi was given.
7321 if test "${with_ggi+set}" = set; then
7323 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7325 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7326 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7332 # Check whether --enable-glide or --disable-glide was given.
7333 if test "${enable_glide+set}" = set; then
7334 enableval="$enable_glide"
7338 if test x$enable_glide = xyes
7340 PLUGINS="${PLUGINS} glide"
7341 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7342 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7343 # Check whether --with-glide or --without-glide was given.
7344 if test "${with_glide+set}" = set; then
7345 withval="$with_glide"
7346 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7348 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7349 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7355 # Check whether --enable-aa or --disable-aa was given.
7356 if test "${enable_aa+set}" = set; then
7357 enableval="$enable_aa"
7361 if test x$enable_aa = xyes
7363 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7364 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7365 echo "configure:7366: checking for aalib.h" >&5
7366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7367 echo $ac_n "(cached) $ac_c" 1>&6
7369 cat > conftest.$ac_ext <<EOF
7370 #line 7371 "configure"
7371 #include "confdefs.h"
7374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7375 { (eval echo configure:7376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7377 if test -z "$ac_err"; then
7379 eval "ac_cv_header_$ac_safe=yes"
7382 echo "configure: failed program was:" >&5
7383 cat conftest.$ac_ext >&5
7385 eval "ac_cv_header_$ac_safe=no"
7389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7390 echo "$ac_t""yes" 1>&6
7393 echo "$ac_t""no" 1>&6
7397 if test x$have_aa = xtrue
7399 PLUGINS="${PLUGINS} aa"
7400 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7405 # Check whether --with- or --without- was given.
7406 if test "${with_+set}" = set; then
7412 # Check whether --enable-dsp or --disable-dsp was given.
7413 if test "${enable_dsp+set}" = set; then
7414 enableval="$enable_dsp"
7419 if test x$enable_dsp != xno &&
7420 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7422 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7426 echo "configure:7427: checking for $ac_hdr" >&5
7427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7428 echo $ac_n "(cached) $ac_c" 1>&6
7430 cat > conftest.$ac_ext <<EOF
7431 #line 7432 "configure"
7432 #include "confdefs.h"
7435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7436 { (eval echo configure:7437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7438 if test -z "$ac_err"; then
7440 eval "ac_cv_header_$ac_safe=yes"
7443 echo "configure: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7446 eval "ac_cv_header_$ac_safe=no"
7450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7451 echo "$ac_t""yes" 1>&6
7452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7453 cat >> confdefs.h <<EOF
7454 #define $ac_tr_hdr 1
7457 PLUGINS="${PLUGINS} dsp"
7458 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7459 echo "configure:7460: checking for main in -lossaudio" >&5
7460 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7462 echo $ac_n "(cached) $ac_c" 1>&6
7464 ac_save_LIBS="$LIBS"
7465 LIBS="-lossaudio $LIBS"
7466 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7474 if { (eval echo configure:7475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7476 eval "ac_cv_lib_$ac_lib_var=yes"
7478 echo "configure: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7481 eval "ac_cv_lib_$ac_lib_var=no"
7484 LIBS="$ac_save_LIBS"
7487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7488 echo "$ac_t""yes" 1>&6
7489 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7491 echo "$ac_t""no" 1>&6
7496 echo "$ac_t""no" 1>&6
7502 # Check whether --enable-esd or --disable-esd was given.
7503 if test "${enable_esd+set}" = set; then
7504 enableval="$enable_esd"
7505 if test x$enable_esd = xyes
7507 # Extract the first word of "esd-config", so it can be a program name with args.
7508 set dummy esd-config; ac_word=$2
7509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7510 echo "configure:7511: checking for $ac_word" >&5
7511 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7514 case "$ESD_CONFIG" in
7516 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7519 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7524 for ac_dir in $ac_dummy; do
7525 test -z "$ac_dir" && ac_dir=.
7526 if test -f $ac_dir/$ac_word; then
7527 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7532 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7536 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7537 if test -n "$ESD_CONFIG"; then
7538 echo "$ac_t""$ESD_CONFIG" 1>&6
7540 echo "$ac_t""no" 1>&6
7543 if test x${ESD_CONFIG} != xno
7545 PLUGINS="${PLUGINS} esd"
7546 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7547 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7553 # Check whether --enable-arts or --disable-arts was given.
7554 if test "${enable_arts+set}" = set; then
7555 enableval="$enable_arts"
7556 if test x$enable_arts = xyes
7558 # Extract the first word of "artsc-config", so it can be a program name with args.
7559 set dummy artsc-config; ac_word=$2
7560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7561 echo "configure:7562: checking for $ac_word" >&5
7562 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7565 case "$ARTS_CONFIG" in
7567 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7570 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7575 for ac_dir in $ac_dummy; do
7576 test -z "$ac_dir" && ac_dir=.
7577 if test -f $ac_dir/$ac_word; then
7578 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7583 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7587 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7588 if test -n "$ARTS_CONFIG"; then
7589 echo "$ac_t""$ARTS_CONFIG" 1>&6
7591 echo "$ac_t""no" 1>&6
7594 if test x${ARTS_CONFIG} != xno
7596 PLUGINS="${PLUGINS} arts"
7597 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7598 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7604 # Check whether --enable-alsa or --disable-alsa was given.
7605 if test "${enable_alsa+set}" = set; then
7606 enableval="$enable_alsa"
7607 if test x$enable_alsa = xyes
7609 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7610 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7611 echo "configure:7612: checking for alsa/asoundlib.h" >&5
7612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7613 echo $ac_n "(cached) $ac_c" 1>&6
7615 cat > conftest.$ac_ext <<EOF
7616 #line 7617 "configure"
7617 #include "confdefs.h"
7618 #include <alsa/asoundlib.h>
7620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7621 { (eval echo configure:7622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7623 if test -z "$ac_err"; then
7625 eval "ac_cv_header_$ac_safe=yes"
7628 echo "configure: failed program was:" >&5
7629 cat conftest.$ac_ext >&5
7631 eval "ac_cv_header_$ac_safe=no"
7635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7636 echo "$ac_t""yes" 1>&6
7637 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7638 echo "configure:7639: checking for main in -lasound" >&5
7639 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7643 ac_save_LIBS="$LIBS"
7644 LIBS="-lasound $LIBS"
7645 cat > conftest.$ac_ext <<EOF
7646 #line 7647 "configure"
7647 #include "confdefs.h"
7653 if { (eval echo configure:7654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7655 eval "ac_cv_lib_$ac_lib_var=yes"
7657 echo "configure: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7660 eval "ac_cv_lib_$ac_lib_var=no"
7663 LIBS="$ac_save_LIBS"
7666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7667 echo "$ac_t""yes" 1>&6
7670 echo "$ac_t""no" 1>&6
7675 echo "$ac_t""no" 1>&6
7679 if test x$have_alsa = xtrue
7681 PLUGINS="${PLUGINS} alsa"
7682 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7688 # Check whether --enable-waveout or --disable-waveout was given.
7689 if test "${enable_waveout+set}" = set; then
7690 enableval="$enable_waveout"
7694 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7696 PLUGINS="${PLUGINS} waveout"
7697 waveout_LDFLAGS="-lwinmm"
7701 # Check whether --with- or --without- was given.
7702 if test "${with_+set}" = set; then
7708 # Check whether --enable-gtk or --disable-gtk was given.
7709 if test "${enable_gtk+set}" = set; then
7710 enableval="$enable_gtk"
7714 if test x$enable_gtk != xno
7717 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7718 if test "${with_gtk_config_path+set}" = set; then
7719 withval="$with_gtk_config_path"
7720 if test "x$with_gtk_config_path" != "xno"
7722 GTK_PATH="$with_gtk_config_path:$PATH"
7726 # look for gtk-config
7727 # Extract the first word of "gtk12-config", so it can be a program name with args.
7728 set dummy gtk12-config; ac_word=$2
7729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7730 echo "configure:7731: checking for $ac_word" >&5
7731 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7734 case "$GTK12_CONFIG" in
7736 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7739 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7743 ac_dummy="$GTK_PATH"
7744 for ac_dir in $ac_dummy; do
7745 test -z "$ac_dir" && ac_dir=.
7746 if test -f $ac_dir/$ac_word; then
7747 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7752 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7756 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7757 if test -n "$GTK12_CONFIG"; then
7758 echo "$ac_t""$GTK12_CONFIG" 1>&6
7760 echo "$ac_t""no" 1>&6
7763 GTK_CONFIG=${GTK12_CONFIG}
7764 if test x${GTK_CONFIG} = xno
7766 # Extract the first word of "gtk-config", so it can be a program name with args.
7767 set dummy gtk-config; ac_word=$2
7768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7769 echo "configure:7770: checking for $ac_word" >&5
7770 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7771 echo $ac_n "(cached) $ac_c" 1>&6
7773 case "$GTK_CONFIG" in
7775 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7778 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7782 ac_dummy="$GTK_PATH"
7783 for ac_dir in $ac_dummy; do
7784 test -z "$ac_dir" && ac_dir=.
7785 if test -f $ac_dir/$ac_word; then
7786 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7791 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7795 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7796 if test -n "$GTK_CONFIG"; then
7797 echo "$ac_t""$GTK_CONFIG" 1>&6
7799 echo "$ac_t""no" 1>&6
7803 if test x${GTK_CONFIG} != xno
7805 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7807 { 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; }
7809 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7810 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7811 # now look for the gtk.h header
7812 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7813 ac_cv_gtk_headers=yes
7814 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7818 echo "configure:7819: checking for $ac_hdr" >&5
7819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7828 { (eval echo configure:7829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7830 if test -z "$ac_err"; then
7832 eval "ac_cv_header_$ac_safe=yes"
7835 echo "configure: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7838 eval "ac_cv_header_$ac_safe=no"
7842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7843 echo "$ac_t""yes" 1>&6
7844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7845 cat >> confdefs.h <<EOF
7846 #define $ac_tr_hdr 1
7850 echo "$ac_t""no" 1>&6
7851 ac_cv_gtk_headers=no
7852 echo "Cannot find gtk development headers."
7857 if test "x$ac_cv_gtk_headers" = xyes
7859 PLUGINS="${PLUGINS} gtk"
7860 ALIASES="${ALIASES} gvlc"
7862 CPPFLAGS="$save_CPPFLAGS"
7866 # Check whether --enable-gnome or --disable-gnome was given.
7867 if test "${enable_gnome+set}" = set; then
7868 enableval="$enable_gnome"
7869 if test x$enable_gnome = xyes; then
7870 # look for gnome-config
7871 # Extract the first word of "gnome-config", so it can be a program name with args.
7872 set dummy gnome-config; ac_word=$2
7873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7874 echo "configure:7875: checking for $ac_word" >&5
7875 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7876 echo $ac_n "(cached) $ac_c" 1>&6
7878 case "$GNOME_CONFIG" in
7880 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7883 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7888 for ac_dir in $ac_dummy; do
7889 test -z "$ac_dir" && ac_dir=.
7890 if test -f $ac_dir/$ac_word; then
7891 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7896 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7900 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7901 if test -n "$GNOME_CONFIG"; then
7902 echo "$ac_t""$GNOME_CONFIG" 1>&6
7904 echo "$ac_t""no" 1>&6
7907 if test -x ${GNOME_CONFIG}
7909 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7910 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7912 # now look for the gnome.h header
7913 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
7914 for ac_hdr in gnome.h
7916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7918 echo "configure:7919: checking for $ac_hdr" >&5
7919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7920 echo $ac_n "(cached) $ac_c" 1>&6
7922 cat > conftest.$ac_ext <<EOF
7923 #line 7924 "configure"
7924 #include "confdefs.h"
7927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7928 { (eval echo configure:7929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7930 if test -z "$ac_err"; then
7932 eval "ac_cv_header_$ac_safe=yes"
7935 echo "configure: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7938 eval "ac_cv_header_$ac_safe=no"
7942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7943 echo "$ac_t""yes" 1>&6
7944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7945 cat >> confdefs.h <<EOF
7946 #define $ac_tr_hdr 1
7949 PLUGINS="${PLUGINS} gnome"
7950 ALIASES="${ALIASES} gnome-vlc"
7953 echo "$ac_t""no" 1>&6
7954 { echo "configure: error: Can't find gnome headers. Please install the gnome
7955 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7960 CPPFLAGS="$save_CPPFLAGS"
7965 # Check whether --enable-qt or --disable-qt was given.
7966 if test "${enable_qt+set}" = set; then
7967 enableval="$enable_qt"
7968 if test x$enable_qt = xyes; then
7969 PLUGINS="${PLUGINS} qt"
7970 ALIASES="${ALIASES} qvlc"
7971 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7972 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7973 if test -x ${QTDIR}/bin/moc
7975 MOC=${QTDIR}/bin/moc
7983 # Check whether --enable-kde or --disable-kde was given.
7984 if test "${enable_kde+set}" = set; then
7985 enableval="$enable_kde"
7986 if test x$enable_kde = xyes; then
7987 PLUGINS="${PLUGINS} kde"
7988 ALIASES="${ALIASES} kvlc"
7989 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
7990 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
7991 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
7992 if test -x ${QTDIR}/bin/moc
7994 MOC=${QTDIR}/bin/moc
8002 # Check whether --enable-macosx or --disable-macosx was given.
8003 if test "${enable_macosx+set}" = set; then
8004 enableval="$enable_macosx"
8005 if test x$enable_macosx = xyes
8007 BUILTINS="${BUILTINS} macosx"
8008 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8011 for ac_hdr in Cocoa/Cocoa.h
8013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8015 echo "configure:8016: checking for $ac_hdr" >&5
8016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8017 echo $ac_n "(cached) $ac_c" 1>&6
8019 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8025 { (eval echo configure:8026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8027 if test -z "$ac_err"; then
8029 eval "ac_cv_header_$ac_safe=yes"
8032 echo "configure: failed program was:" >&5
8033 cat conftest.$ac_ext >&5
8035 eval "ac_cv_header_$ac_safe=no"
8039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8040 echo "$ac_t""yes" 1>&6
8041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8042 cat >> confdefs.h <<EOF
8043 #define $ac_tr_hdr 1
8045 BUILTINS="${BUILTINS} macosx"
8046 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8049 echo "$ac_t""no" 1>&6
8056 # Check whether --enable-qnx or --disable-qnx was given.
8057 if test "${enable_qnx+set}" = set; then
8058 enableval="$enable_qnx"
8062 if test x$enable_qnx != xno
8066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8068 echo "configure:8069: checking for $ac_hdr" >&5
8069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8072 cat > conftest.$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8078 { (eval echo configure:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8080 if test -z "$ac_err"; then
8082 eval "ac_cv_header_$ac_safe=yes"
8085 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5
8088 eval "ac_cv_header_$ac_safe=no"
8092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8093 echo "$ac_t""yes" 1>&6
8094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8095 cat >> confdefs.h <<EOF
8096 #define $ac_tr_hdr 1
8099 PLUGINS="${PLUGINS} qnx"
8100 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8103 echo "$ac_t""no" 1>&6
8109 # Check whether --enable-intfwin or --disable-intfwin was given.
8110 if test "${enable_intfwin+set}" = set; then
8111 enableval="$enable_intfwin"
8112 if test "x$enable_intfwin" != "xno"
8114 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8115 if test "${with_bcbuilder+set}" = set; then
8116 withval="$with_bcbuilder"
8120 if test "x$with_bcbuilder" != "x"
8122 BCBUILDER="$with_bcbuilder"
8124 PLUGINS="${PLUGINS} intfwin"
8129 # Check whether --enable-ncurses or --disable-ncurses was given.
8130 if test "${enable_ncurses+set}" = set; then
8131 enableval="$enable_ncurses"
8132 if test x$enable_ncurses = xyes; then
8133 PLUGINS="${PLUGINS} ncurses"
8134 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8139 # Check whether --enable-lirc or --disable-lirc was given.
8140 if test "${enable_lirc+set}" = set; then
8141 enableval="$enable_lirc"
8145 if test x$enable_lirc = xyes
8147 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8148 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8149 echo "configure:8150: checking for lirc/lirc_client.h" >&5
8150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8151 echo $ac_n "(cached) $ac_c" 1>&6
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 #include <lirc/lirc_client.h>
8158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8159 { (eval echo configure:8160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8161 if test -z "$ac_err"; then
8163 eval "ac_cv_header_$ac_safe=yes"
8166 echo "configure: failed program was:" >&5
8167 cat conftest.$ac_ext >&5
8169 eval "ac_cv_header_$ac_safe=no"
8173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8174 echo "$ac_t""yes" 1>&6
8175 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8176 echo "configure:8177: checking for lirc_init in -llirc_client" >&5
8177 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8179 echo $ac_n "(cached) $ac_c" 1>&6
8181 ac_save_LIBS="$LIBS"
8182 LIBS="-llirc_client $LIBS"
8183 cat > conftest.$ac_ext <<EOF
8184 #line 8185 "configure"
8185 #include "confdefs.h"
8186 /* Override any gcc2 internal prototype to avoid an error. */
8187 /* We use char because int might match the return type of a gcc2
8188 builtin and then its argument prototype would still apply. */
8195 if { (eval echo configure:8196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8197 eval "ac_cv_lib_$ac_lib_var=yes"
8199 echo "configure: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8202 eval "ac_cv_lib_$ac_lib_var=no"
8205 LIBS="$ac_save_LIBS"
8208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8209 echo "$ac_t""yes" 1>&6
8212 echo "$ac_t""no" 1>&6
8217 echo "$ac_t""no" 1>&6
8221 if test x$have_lirc = xtrue
8223 PLUGINS="${PLUGINS} lirc"
8224 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8228 # Check whether --with- or --without- was given.
8229 if test "${with_+set}" = set; then
8235 # Check whether --with-words or --without-words was given.
8236 if test "${with_words+set}" = set; then
8237 withval="$with_words"
8241 case "x$with_words" in
8243 ac_cv_c_bigendian=yes
8246 ac_cv_c_bigendian=no
8249 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8250 echo "configure:8251: checking whether the byte order is big-endian" >&5
8251 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8252 echo $ac_n "(cached) $ac_c" 1>&6
8254 ac_cv_c_bigendian=unknown
8255 cat >conftest.c <<EOF
8256 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8257 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8258 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8259 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8260 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8261 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8262 int main(void) { _a(); _e(); return 0; }
8265 if test -f conftest.c
8267 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8268 && test -f conftest.o
8270 if test "`strings conftest.o | grep BIGenDianSyS`"
8272 ac_cv_c_bigendian=yes
8274 if test "`strings conftest.o | grep LiTTleEnDian`"
8276 ac_cv_c_bigendian=no
8283 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8284 if test x$ac_cv_c_bigendian = xunknown
8286 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8290 if test $ac_cv_c_bigendian = yes
8292 cat >> confdefs.h <<\EOF
8293 #define WORDS_BIGENDIAN 1
8299 # Check whether --enable-gprof or --disable-gprof was given.
8300 if test "${enable_gprof+set}" = set; then
8301 enableval="$enable_gprof"
8302 if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
8307 # Check whether --enable-cprof or --disable-cprof was given.
8308 if test "${enable_cprof+set}" = set; then
8309 enableval="$enable_cprof"
8310 if test "x$enable_cprof" = "xyes";
8312 LDFLAGS="${LDFLAGS} -lcprof"
8319 # Check whether --enable-pth or --disable-pth was given.
8320 if test "${enable_pth+set}" = set; then
8321 enableval="$enable_pth"
8322 if test "x$enable_pth" = "xyes"; then
8323 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8324 echo "configure:8325: checking for pth_init in -lpth" >&5
8325 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8327 echo $ac_n "(cached) $ac_c" 1>&6
8329 ac_save_LIBS="$LIBS"
8331 cat > conftest.$ac_ext <<EOF
8332 #line 8333 "configure"
8333 #include "confdefs.h"
8334 /* Override any gcc2 internal prototype to avoid an error. */
8335 /* We use char because int might match the return type of a gcc2
8336 builtin and then its argument prototype would still apply. */
8343 if { (eval echo configure:8344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8345 eval "ac_cv_lib_$ac_lib_var=yes"
8347 echo "configure: failed program was:" >&5
8348 cat conftest.$ac_ext >&5
8350 eval "ac_cv_lib_$ac_lib_var=no"
8353 LIBS="$ac_save_LIBS"
8356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8357 echo "$ac_t""yes" 1>&6
8358 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8359 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8360 cat >> confdefs.h <<EOF
8361 #define $ac_tr_lib 1
8367 echo "$ac_t""no" 1>&6
8370 cat > conftest.$ac_ext <<EOF
8371 #line 8372 "configure"
8372 #include "confdefs.h"
8375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8376 egrep "pth_init" >/dev/null 2>&1; then
8379 cat >> confdefs.h <<\EOF
8380 #define PTH_INIT_IN_PTH_H 1
8392 # Check whether --enable-st or --disable-st was given.
8393 if test "${enable_st+set}" = set; then
8394 enableval="$enable_st"
8395 if test "x$enable_st" = "xyes"; then
8396 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8397 echo "configure:8398: checking for st_init in -lst" >&5
8398 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8400 echo $ac_n "(cached) $ac_c" 1>&6
8402 ac_save_LIBS="$LIBS"
8404 cat > conftest.$ac_ext <<EOF
8405 #line 8406 "configure"
8406 #include "confdefs.h"
8407 /* Override any gcc2 internal prototype to avoid an error. */
8408 /* We use char because int might match the return type of a gcc2
8409 builtin and then its argument prototype would still apply. */
8416 if { (eval echo configure:8417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8418 eval "ac_cv_lib_$ac_lib_var=yes"
8420 echo "configure: failed program was:" >&5
8421 cat conftest.$ac_ext >&5
8423 eval "ac_cv_lib_$ac_lib_var=no"
8426 LIBS="$ac_save_LIBS"
8429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8430 echo "$ac_t""yes" 1>&6
8431 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8432 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8433 cat >> confdefs.h <<EOF
8434 #define $ac_tr_lib 1
8440 echo "$ac_t""no" 1>&6
8443 cat > conftest.$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8449 egrep "st_init" >/dev/null 2>&1; then
8452 cat >> confdefs.h <<\EOF
8453 #define ST_INIT_IN_ST_H 1
8465 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
8467 # Check whether --enable-plugins or --disable-plugins was given.
8468 if test "${enable_plugins+set}" = set; then
8469 enableval="$enable_plugins"
8470 if test x$enable_plugins = xno
8472 BUILTINS="${BUILTINS} ${PLUGINS}"
8478 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8480 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8482 BUILTINS="${BUILTINS} ${PLUGINS}"
8486 cat >> confdefs.h <<EOF
8487 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8490 cat >> confdefs.h <<EOF
8491 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8495 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8496 cat >> confdefs.h <<EOF
8497 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8500 cat >> confdefs.h <<EOF
8501 #define MODULE_SYMBOL $VLC_SYMBOL
8505 DATA_PATH="${ac_tool_prefix}/share/videolan"
8507 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8604 cat > confcache <<\EOF
8605 # This file is a shell script that caches the results of configure
8606 # tests run on this system so they can be shared between configure
8607 # scripts and configure runs. It is not useful on other systems.
8608 # If it contains results you don't want to keep, you may remove or edit it.
8610 # By default, configure uses ./config.cache as the cache file,
8611 # creating it if it does not exist already. You can give configure
8612 # the --cache-file=FILE option to use a different cache file; that is
8613 # what configure does when it calls configure scripts in
8614 # subdirectories, so they share the cache.
8615 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8616 # config.status only pays attention to the cache file if you give it the
8617 # --recheck option to rerun configure.
8620 # The following way of writing the cache mishandles newlines in values,
8621 # but we know of no workaround that is simple, portable, and efficient.
8622 # So, don't put newlines in cache variables' values.
8623 # Ultrix sh set writes to stderr and can't be redirected directly,
8624 # and sets the high bit in the cache file unless we assign to the vars.
8626 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8628 # `set' does not quote correctly, so add quotes (double-quote substitution
8629 # turns \\\\ into \\, and sed turns \\ into \).
8631 -e "s/'/'\\\\''/g" \
8632 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8635 # `set' quotes correctly as required by POSIX, so do not add quotes.
8636 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8639 if cmp -s $cache_file confcache; then
8642 if test -w $cache_file; then
8643 echo "updating cache $cache_file"
8644 cat confcache > $cache_file
8646 echo "not updating unwritable cache $cache_file"
8651 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8653 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8654 # Let make expand exec_prefix.
8655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8657 # Any assignment to VPATH causes Sun make to only execute
8658 # the first set of double-colon rules, so remove it if not needed.
8659 # If there is a colon in the path, we need to keep it.
8660 if test "x$srcdir" = x.; then
8661 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8664 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8666 DEFS=-DHAVE_CONFIG_H
8668 # Without the "./", some shells look in PATH for config.status.
8669 : ${CONFIG_STATUS=./config.status}
8671 echo creating $CONFIG_STATUS
8672 rm -f $CONFIG_STATUS
8673 cat > $CONFIG_STATUS <<EOF
8675 # Generated automatically by configure.
8676 # Run this file to recreate the current configuration.
8677 # This directory was configured as follows,
8678 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8680 # $0 $ac_configure_args
8682 # Compiler output produced by configure, useful for debugging
8683 # configure, is in ./config.log if it exists.
8685 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8688 case "\$ac_option" in
8689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8690 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8691 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8692 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8693 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8695 -help | --help | --hel | --he | --h)
8696 echo "\$ac_cs_usage"; exit 0 ;;
8697 *) echo "\$ac_cs_usage"; exit 1 ;;
8701 ac_given_srcdir=$srcdir
8702 ac_given_INSTALL="$INSTALL"
8704 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8706 cat >> $CONFIG_STATUS <<EOF
8708 # Protect against being on the right side of a sed subst in config.status.
8709 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8710 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8714 s%@CFLAGS@%$CFLAGS%g
8715 s%@CPPFLAGS@%$CPPFLAGS%g
8716 s%@CXXFLAGS@%$CXXFLAGS%g
8717 s%@FFLAGS@%$FFLAGS%g
8719 s%@LDFLAGS@%$LDFLAGS%g
8721 s%@exec_prefix@%$exec_prefix%g
8722 s%@prefix@%$prefix%g
8723 s%@program_transform_name@%$program_transform_name%g
8724 s%@bindir@%$bindir%g
8725 s%@sbindir@%$sbindir%g
8726 s%@libexecdir@%$libexecdir%g
8727 s%@datadir@%$datadir%g
8728 s%@sysconfdir@%$sysconfdir%g
8729 s%@sharedstatedir@%$sharedstatedir%g
8730 s%@localstatedir@%$localstatedir%g
8731 s%@libdir@%$libdir%g
8732 s%@includedir@%$includedir%g
8733 s%@oldincludedir@%$oldincludedir%g
8734 s%@infodir@%$infodir%g
8735 s%@mandir@%$mandir%g
8737 s%@host_alias@%$host_alias%g
8738 s%@host_cpu@%$host_cpu%g
8739 s%@host_vendor@%$host_vendor%g
8740 s%@host_os@%$host_os%g
8741 s%@target@%$target%g
8742 s%@target_alias@%$target_alias%g
8743 s%@target_cpu@%$target_cpu%g
8744 s%@target_vendor@%$target_vendor%g
8745 s%@target_os@%$target_os%g
8747 s%@build_alias@%$build_alias%g
8748 s%@build_cpu@%$build_cpu%g
8749 s%@build_vendor@%$build_vendor%g
8750 s%@build_os@%$build_os%g
8751 s%@SET_MAKE@%$SET_MAKE%g
8754 s%@RANLIB@%$RANLIB%g
8757 s%@ALLOCA@%$ALLOCA%g
8758 s%@GLIBC21@%$GLIBC21%g
8759 s%@LIBICONV@%$LIBICONV%g
8760 s%@USE_NLS@%$USE_NLS%g
8761 s%@MSGFMT@%$MSGFMT%g
8762 s%@GMSGFMT@%$GMSGFMT%g
8763 s%@XGETTEXT@%$XGETTEXT%g
8764 s%@INTLBISON@%$INTLBISON%g
8765 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8766 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8767 s%@CATALOGS@%$CATALOGS%g
8768 s%@CATOBJEXT@%$CATOBJEXT%g
8769 s%@GMOFILES@%$GMOFILES%g
8770 s%@INTLLIBS@%$INTLLIBS%g
8771 s%@INTLOBJS@%$INTLOBJS%g
8772 s%@POFILES@%$POFILES%g
8774 s%@DATADIRNAME@%$DATADIRNAME%g
8775 s%@INSTOBJEXT@%$INSTOBJEXT%g
8776 s%@GENCAT@%$GENCAT%g
8777 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8778 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8779 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8780 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8781 s%@INSTALL_DATA@%$INSTALL_DATA%g
8782 s%@WINDRES@%$WINDRES%g
8783 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8784 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8785 s%@SDL_CONFIG@%$SDL_CONFIG%g
8786 s%@ESD_CONFIG@%$ESD_CONFIG%g
8787 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8788 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8789 s%@GTK_CONFIG@%$GTK_CONFIG%g
8790 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8791 s%@DATA_PATH@%$DATA_PATH%g
8792 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8795 s%@PLUGINS@%$PLUGINS%g
8796 s%@BUILTINS@%$BUILTINS%g
8797 s%@ALIASES@%$ALIASES%g
8802 s%@OPTIMS@%$OPTIMS%g
8803 s%@TUNING@%$TUNING%g
8804 s%@RELEASE@%$RELEASE%g
8806 s%@BCBUILDER@%$BCBUILDER%g
8807 s%@PACKAGE@%$PACKAGE%g
8808 s%@VERSION@%$VERSION%g
8809 s%@NEED_GETOPT@%$NEED_GETOPT%g
8810 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8811 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8812 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8813 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8814 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8815 s%@a52_CFLAGS@%$a52_CFLAGS%g
8816 s%@arts_CFLAGS@%$arts_CFLAGS%g
8817 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8818 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8819 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8820 s%@directx_CFLAGS@%$directx_CFLAGS%g
8821 s%@esd_CFLAGS@%$esd_CFLAGS%g
8822 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8823 s%@glide_CFLAGS@%$glide_CFLAGS%g
8824 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8825 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8826 s%@kde_CFLAGS@%$kde_CFLAGS%g
8827 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8828 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8829 s%@mad_CFLAGS@%$mad_CFLAGS%g
8830 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8831 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8832 s%@qt_CFLAGS@%$qt_CFLAGS%g
8833 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8834 s%@x11_CFLAGS@%$x11_CFLAGS%g
8835 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8836 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8837 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8838 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8839 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8840 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8841 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8842 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8843 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8844 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8845 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8846 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8847 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8848 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8849 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8850 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8851 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8852 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8853 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8854 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8855 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8856 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8857 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8858 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8859 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8860 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8861 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8862 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8863 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8864 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8865 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8866 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8867 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8868 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8869 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8870 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8871 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8872 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8873 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8874 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8875 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8876 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8877 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8882 cat >> $CONFIG_STATUS <<\EOF
8884 # Split the substitutions into bite-sized pieces for seds with
8885 # small command number limits, like on Digital OSF/1 and HP-UX.
8886 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8887 ac_file=1 # Number of current file.
8888 ac_beg=1 # First line for current file.
8889 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8892 while $ac_more_lines; do
8893 if test $ac_beg -gt 1; then
8894 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8896 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8898 if test ! -s conftest.s$ac_file; then
8900 rm -f conftest.s$ac_file
8902 if test -z "$ac_sed_cmds"; then
8903 ac_sed_cmds="sed -f conftest.s$ac_file"
8905 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8907 ac_file=`expr $ac_file + 1`
8909 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8912 if test -z "$ac_sed_cmds"; then
8917 cat >> $CONFIG_STATUS <<EOF
8919 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8921 cat >> $CONFIG_STATUS <<\EOF
8922 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8923 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8925 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8926 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8927 *) ac_file_in="${ac_file}.in" ;;
8930 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8932 # Remove last slash and all that follows it. Not all systems have dirname.
8933 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8934 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8935 # The file is in a subdirectory.
8936 test ! -d "$ac_dir" && mkdir "$ac_dir"
8937 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8938 # A "../" for each directory in $ac_dir_suffix.
8939 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8941 ac_dir_suffix= ac_dots=
8944 case "$ac_given_srcdir" in
8946 if test -z "$ac_dots"; then top_srcdir=.
8947 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8948 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8950 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8951 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8954 case "$ac_given_INSTALL" in
8955 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8956 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8959 echo creating "$ac_file"
8961 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8963 *Makefile*) ac_comsub="1i\\
8964 # $configure_input" ;;
8968 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8970 s%@configure_input@%$configure_input%g
8971 s%@srcdir@%$srcdir%g
8972 s%@top_srcdir@%$top_srcdir%g
8973 s%@INSTALL@%$INSTALL%g
8974 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8978 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8979 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8981 # ac_d sets the value in "#define NAME VALUE" lines.
8982 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8983 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8986 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8987 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8988 ac_uB='\([ ]\)%\1#\2define\3'
8991 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8992 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8993 ac_eB='$%\1#\2define\3'
8997 if test "${CONFIG_HEADERS+set}" != set; then
8999 cat >> $CONFIG_STATUS <<EOF
9000 CONFIG_HEADERS="include/defs.h"
9002 cat >> $CONFIG_STATUS <<\EOF
9004 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9005 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9007 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9008 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9009 *) ac_file_in="${ac_file}.in" ;;
9012 echo creating $ac_file
9014 rm -f conftest.frag conftest.in conftest.out
9015 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9016 cat $ac_file_inputs > conftest.in
9020 # Transform confdefs.h into a sed script conftest.vals that substitutes
9021 # the proper values into config.h.in to produce config.h. And first:
9022 # Protect against being on the right side of a sed subst in config.status.
9023 # Protect against being in an unquoted here document in config.status.
9025 cat > conftest.hdr <<\EOF
9028 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9032 sed -n -f conftest.hdr confdefs.h > conftest.vals
9035 # This sed command replaces #undef with comments. This is necessary, for
9036 # example, in the case of _POSIX_SOURCE, which is predefined and required
9037 # on some systems where configure will not decide to define it.
9038 cat >> conftest.vals <<\EOF
9039 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9042 # Break up conftest.vals because some shells have a limit on
9043 # the size of here documents, and old seds have small limits too.
9048 ac_lines=`grep -c . conftest.vals`
9049 # grep -c gives empty output for an empty file on some AIX systems.
9050 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9051 # Write a limited-size here document to conftest.frag.
9052 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9053 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9055 sed -f conftest.frag conftest.in > conftest.out
9057 mv conftest.out conftest.in
9059 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9061 mv conftest.tail conftest.vals
9065 cat >> $CONFIG_STATUS <<\EOF
9066 rm -f conftest.frag conftest.h
9067 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9068 cat conftest.in >> conftest.h
9070 if cmp -s $ac_file conftest.h 2>/dev/null; then
9071 echo "$ac_file is unchanged"
9074 # Remove last slash and all that follows it. Not all systems have dirname.
9075 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9076 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9077 # The file is in a subdirectory.
9078 test ! -d "$ac_dir" && mkdir "$ac_dir"
9081 mv conftest.h $ac_file
9086 cat >> $CONFIG_STATUS <<EOF
9090 cat >> $CONFIG_STATUS <<\EOF
9091 for ac_file in $CONFIG_FILES; do
9092 # Support "outfile[:infile[:infile...]]"
9094 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9096 # PO directories have a Makefile.in generated from Makefile.in.in.
9097 case "$ac_file" in */Makefile.in)
9098 # Adjust a relative srcdir.
9099 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9100 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9101 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9102 # In autoconf-2.13 it is called $ac_given_srcdir.
9103 # In autoconf-2.50 it is called $srcdir.
9104 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9105 case "$ac_given_srcdir" in
9106 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9107 /*) top_srcdir="$ac_given_srcdir" ;;
9108 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9110 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9111 rm -f "$ac_dir/POTFILES"
9112 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9113 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9114 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9115 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9123 chmod +x $CONFIG_STATUS
9124 rm -fr confdefs* $ac_clean_files
9125 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9130 --------------------
9131 vlc version : ${VERSION}
9133 architecture : ${ARCH}
9134 optimizations : ${OPTIMS}
9136 debug mode : ${DEBUG}
9137 release : ${RELEASE}
9138 cprof/gprof support : ${CPROF}/${GPROF}
9139 need builtin getopt : ${NEED_GETOPT}
9140 built-in modules :${BUILTINS}
9141 plug-in modules :${PLUGINS}
9142 vlc aliases :${ALIASES}
9144 You may now tune Makefile.opts at your convenience, for instance to choose
9145 which modules get compiled as plugins.
9147 To build vlc and its plugins, type \`$VLC_MAKE'.