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-vcd VCD support for Linux and MacOS X (default enabled)"
50 --enable-satellite satellite card support (default disabled)"
54 --enable-mad libmad module (default disabled)"
56 --with-mad=PATH path to libmad"
58 --enable-a52 AC3 support with liba52 (default enabled)"
60 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
64 --enable-x11 X11 support (default enabled)"
66 --enable-xvideo XVideo support (default enabled)"
68 --enable-sdl SDL support (default enabled)"
70 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
72 --enable-directx Win32 DirectX support (default enabled on Win32)"
74 --with-directx=PATH Win32 DirectX headers and libraries"
76 --enable-fb Linux framebuffer support (default enabled on Linux)"
78 --enable-mga Linux kernel Matrox support (default disabled)"
80 --enable-ggi GGI support (default disabled)"
82 --with-ggi=PATH path to libggi"
84 --enable-glide Glide (3dfx) support (default disabled)"
86 --with-glide=PATH path to libglide"
88 --enable-aa aalib output (default disabled)"
92 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
94 --enable-esd Esound library support (default disabled)"
96 --enable-arts aRts sound server (default disabled)"
98 --enable-alsa ALSA sound support for Linux (default disabled)"
100 --enable-waveout Win32 waveOut module (default enabled on Win32)"
104 --enable-gtk Gtk+ support (default enabled)"
106 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
108 --enable-gnome Gnome interface support (default disabled)"
110 --enable-qt Qt interface support (default disabled)"
112 --enable-kde KDE interface support (default disabled)"
114 --enable-macosx MacOS X support (default enabled on MacOS X)"
116 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
118 --enable-win32 Win32 interface support (default disabled)"
120 --enable-ncurses ncurses interface support (default disabled)"
122 --enable-lirc lirc support (default disabled)"
126 --with-words=endianness set endianness (big or little)"
128 --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)"
130 --enable-gprof gprof profiling (default disabled)"
132 --enable-cprof cprof profiling (default disabled)"
134 --enable-pth GNU Pth support (default disabled)"
136 --enable-st State Threads (default disabled)"
138 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
140 # Initialize some variables set by options.
141 # The variables have the same names as the options, with
142 # dashes changed to underlines.
144 cache_file=./config.cache
153 program_transform_name=s,x,x,
161 bindir='${exec_prefix}/bin'
162 sbindir='${exec_prefix}/sbin'
163 libexecdir='${exec_prefix}/libexec'
164 datadir='${prefix}/share'
165 sysconfdir='${prefix}/etc'
166 sharedstatedir='${prefix}/com'
167 localstatedir='${prefix}/var'
168 libdir='${exec_prefix}/lib'
169 includedir='${prefix}/include'
170 oldincludedir='/usr/include'
171 infodir='${prefix}/info'
172 mandir='${prefix}/man'
174 # Initialize some other variables.
177 SHELL=${CONFIG_SHELL-/bin/sh}
178 # Maximum number of lines to put in a shell here document.
185 # If the previous option needs an argument, assign it.
186 if test -n "$ac_prev"; then
187 eval "$ac_prev=\$ac_option"
193 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
197 # Accept the important Cygnus configure options, so we can diagnose typos.
201 -bindir | --bindir | --bindi | --bind | --bin | --bi)
203 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
204 bindir="$ac_optarg" ;;
206 -build | --build | --buil | --bui | --bu)
208 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
209 build="$ac_optarg" ;;
211 -cache-file | --cache-file | --cache-fil | --cache-fi \
212 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
213 ac_prev=cache_file ;;
214 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
215 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
216 cache_file="$ac_optarg" ;;
218 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
220 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
222 datadir="$ac_optarg" ;;
224 -disable-* | --disable-*)
225 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
226 # Reject names that are not valid shell variable names.
227 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
228 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
230 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
231 eval "enable_${ac_feature}=no" ;;
233 -enable-* | --enable-*)
234 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
235 # Reject names that are not valid shell variable names.
236 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
237 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
239 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
244 eval "enable_${ac_feature}='$ac_optarg'" ;;
246 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
247 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
248 | --exec | --exe | --ex)
249 ac_prev=exec_prefix ;;
250 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
251 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
252 | --exec=* | --exe=* | --ex=*)
253 exec_prefix="$ac_optarg" ;;
255 -gas | --gas | --ga | --g)
256 # Obsolete; use --with-gas.
259 -help | --help | --hel | --he)
260 # Omit some internal or obsolete options to make the list less imposing.
261 # This message is too long to be a string in the A/UX 3.1 sh.
263 Usage: configure [options] [host]
264 Options: [defaults in brackets after descriptions]
266 --cache-file=FILE cache test results in FILE
267 --help print this message
268 --no-create do not create output files
269 --quiet, --silent do not print \`checking...' messages
270 --version print the version of autoconf that created configure
271 Directory and file names:
272 --prefix=PREFIX install architecture-independent files in PREFIX
274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
276 --bindir=DIR user executables in DIR [EPREFIX/bin]
277 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
278 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
279 --datadir=DIR read-only architecture-independent data in DIR
281 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
282 --sharedstatedir=DIR modifiable architecture-independent data in DIR
284 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
285 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
286 --includedir=DIR C header files in DIR [PREFIX/include]
287 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
288 --infodir=DIR info documentation in DIR [PREFIX/info]
289 --mandir=DIR man documentation in DIR [PREFIX/man]
290 --srcdir=DIR find the sources in DIR [configure dir or ..]
291 --program-prefix=PREFIX prepend PREFIX to installed program names
292 --program-suffix=SUFFIX append SUFFIX to installed program names
293 --program-transform-name=PROGRAM
294 run sed PROGRAM on installed program names
298 --build=BUILD configure for building on BUILD [BUILD=HOST]
299 --host=HOST configure for HOST [guessed]
300 --target=TARGET configure for TARGET [TARGET=HOST]
301 Features and packages:
302 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
303 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
304 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
305 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
306 --x-includes=DIR X include files are in DIR
307 --x-libraries=DIR X library files are in DIR
309 if test -n "$ac_help"; then
310 echo "--enable and --with options recognized:$ac_help"
314 -host | --host | --hos | --ho)
316 -host=* | --host=* | --hos=* | --ho=*)
319 -includedir | --includedir | --includedi | --included | --include \
320 | --includ | --inclu | --incl | --inc)
321 ac_prev=includedir ;;
322 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
323 | --includ=* | --inclu=* | --incl=* | --inc=*)
324 includedir="$ac_optarg" ;;
326 -infodir | --infodir | --infodi | --infod | --info | --inf)
328 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
329 infodir="$ac_optarg" ;;
331 -libdir | --libdir | --libdi | --libd)
333 -libdir=* | --libdir=* | --libdi=* | --libd=*)
334 libdir="$ac_optarg" ;;
336 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
337 | --libexe | --libex | --libe)
338 ac_prev=libexecdir ;;
339 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
340 | --libexe=* | --libex=* | --libe=*)
341 libexecdir="$ac_optarg" ;;
343 -localstatedir | --localstatedir | --localstatedi | --localstated \
344 | --localstate | --localstat | --localsta | --localst \
345 | --locals | --local | --loca | --loc | --lo)
346 ac_prev=localstatedir ;;
347 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
348 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
349 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
350 localstatedir="$ac_optarg" ;;
352 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
354 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
355 mandir="$ac_optarg" ;;
358 # Obsolete; use --without-fp.
361 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
365 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
366 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
369 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
370 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
371 | --oldin | --oldi | --old | --ol | --o)
372 ac_prev=oldincludedir ;;
373 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
374 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
375 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
376 oldincludedir="$ac_optarg" ;;
378 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
380 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
381 prefix="$ac_optarg" ;;
383 -program-prefix | --program-prefix | --program-prefi | --program-pref \
384 | --program-pre | --program-pr | --program-p)
385 ac_prev=program_prefix ;;
386 -program-prefix=* | --program-prefix=* | --program-prefi=* \
387 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
388 program_prefix="$ac_optarg" ;;
390 -program-suffix | --program-suffix | --program-suffi | --program-suff \
391 | --program-suf | --program-su | --program-s)
392 ac_prev=program_suffix ;;
393 -program-suffix=* | --program-suffix=* | --program-suffi=* \
394 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
395 program_suffix="$ac_optarg" ;;
397 -program-transform-name | --program-transform-name \
398 | --program-transform-nam | --program-transform-na \
399 | --program-transform-n | --program-transform- \
400 | --program-transform | --program-transfor \
401 | --program-transfo | --program-transf \
402 | --program-trans | --program-tran \
403 | --progr-tra | --program-tr | --program-t)
404 ac_prev=program_transform_name ;;
405 -program-transform-name=* | --program-transform-name=* \
406 | --program-transform-nam=* | --program-transform-na=* \
407 | --program-transform-n=* | --program-transform-=* \
408 | --program-transform=* | --program-transfor=* \
409 | --program-transfo=* | --program-transf=* \
410 | --program-trans=* | --program-tran=* \
411 | --progr-tra=* | --program-tr=* | --program-t=*)
412 program_transform_name="$ac_optarg" ;;
414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
415 | -silent | --silent | --silen | --sile | --sil)
418 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
420 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
422 sbindir="$ac_optarg" ;;
424 -sharedstatedir | --sharedstatedir | --sharedstatedi \
425 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
426 | --sharedst | --shareds | --shared | --share | --shar \
428 ac_prev=sharedstatedir ;;
429 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
430 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
431 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
433 sharedstatedir="$ac_optarg" ;;
435 -site | --site | --sit)
437 -site=* | --site=* | --sit=*)
440 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
442 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
443 srcdir="$ac_optarg" ;;
445 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
446 | --syscon | --sysco | --sysc | --sys | --sy)
447 ac_prev=sysconfdir ;;
448 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
449 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
450 sysconfdir="$ac_optarg" ;;
452 -target | --target | --targe | --targ | --tar | --ta | --t)
454 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
455 target="$ac_optarg" ;;
457 -v | -verbose | --verbose | --verbos | --verbo | --verb)
460 -version | --version | --versio | --versi | --vers)
461 echo "configure generated by autoconf version 2.13"
465 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
466 # Reject names that are not valid shell variable names.
467 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
468 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
470 ac_package=`echo $ac_package| sed 's/-/_/g'`
475 eval "with_${ac_package}='$ac_optarg'" ;;
477 -without-* | --without-*)
478 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
479 # Reject names that are not valid shell variable names.
480 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
481 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
483 ac_package=`echo $ac_package| sed 's/-/_/g'`
484 eval "with_${ac_package}=no" ;;
487 # Obsolete; use --with-x.
490 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
491 | --x-incl | --x-inc | --x-in | --x-i)
492 ac_prev=x_includes ;;
493 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
494 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
495 x_includes="$ac_optarg" ;;
497 -x-libraries | --x-libraries | --x-librarie | --x-librari \
498 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
499 ac_prev=x_libraries ;;
500 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
501 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
502 x_libraries="$ac_optarg" ;;
504 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
508 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
509 echo "configure: warning: $ac_option: invalid host type" 1>&2
511 if test "x$nonopt" != xNONE; then
512 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
520 if test -n "$ac_prev"; then
521 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
524 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
526 # File descriptor usage:
529 # 2 errors and warnings
530 # 3 some systems may open it to /dev/tty
531 # 4 used on the Kubota Titan
532 # 6 checking for... messages and results
533 # 5 compiler messages saved in config.log
534 if test "$silent" = yes; then
542 This file contains any messages produced by compilers while
543 running configure, to aid debugging if configure makes a mistake.
546 # Strip out --no-create and --no-recursion so they do not pile up.
547 # Also quote any args containing shell metacharacters.
552 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
553 | --no-cr | --no-c) ;;
554 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
555 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
556 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
557 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
558 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
563 # Only set these to C if already set. These must not be set unconditionally
564 # because not all systems understand e.g. LANG=C (notably SCO).
565 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
566 # Non-C LC_CTYPE values break the ctype check.
567 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
568 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
569 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
570 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
572 # confdefs.h avoids OS command line length limits that DEFS can exceed.
573 rm -rf conftest* confdefs.h
574 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
577 # A filename unique to this package, relative to the directory that
578 # configure is in, which we can look for to find out if srcdir is correct.
579 ac_unique_file=include/main.h
581 # Find the source files, if location was not specified.
582 if test -z "$srcdir"; then
583 ac_srcdir_defaulted=yes
584 # Try the directory containing this script, then its parent.
586 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
587 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
589 if test ! -r $srcdir/$ac_unique_file; then
593 ac_srcdir_defaulted=no
595 if test ! -r $srcdir/$ac_unique_file; then
596 if test "$ac_srcdir_defaulted" = yes; then
597 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
599 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
602 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
604 # Prefer explicitly selected file to automatically selected ones.
605 if test -z "$CONFIG_SITE"; then
606 if test "x$prefix" != xNONE; then
607 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
609 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
612 for ac_site_file in $CONFIG_SITE; do
613 if test -r "$ac_site_file"; then
614 echo "loading site script $ac_site_file"
619 if test -r "$cache_file"; then
620 echo "loading cache $cache_file"
623 echo "creating cache $cache_file"
628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
629 ac_cpp='$CPP $CPPFLAGS'
630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
632 cross_compiling=$ac_cv_prog_cc_cross
636 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
637 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
638 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
645 ac_n= ac_c='\c' ac_t=
652 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
653 if test -f $ac_dir/install-sh; then
655 ac_install_sh="$ac_aux_dir/install-sh -c"
657 elif test -f $ac_dir/install.sh; then
659 ac_install_sh="$ac_aux_dir/install.sh -c"
663 if test -z "$ac_aux_dir"; then
664 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
666 ac_config_guess=$ac_aux_dir/config.guess
667 ac_config_sub=$ac_aux_dir/config.sub
668 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
671 # Do some error checking and defaulting for the host and target type.
673 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
676 # 1. You are not allowed to specify --host, --target, and nonopt at the
678 # 2. Host defaults to nonopt.
679 # 3. If nonopt is not specified, then host defaults to the current host,
680 # as determined by config.guess.
681 # 4. Target and build default to nonopt.
682 # 5. If nonopt is not specified, then target and build default to host.
684 # The aliases save the names the user supplied, while $host etc.
685 # will get canonicalized.
686 case $host---$target---$nonopt in
687 NONE---*---* | *---NONE---* | *---*---NONE) ;;
688 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
692 # Make sure we can run config.sub.
693 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
694 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
697 echo $ac_n "checking host system type""... $ac_c" 1>&6
698 echo "configure:699: checking host system type" >&5
701 case "$host_alias" in
705 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
706 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
708 *) host_alias=$nonopt ;;
712 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
713 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
714 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
715 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
716 echo "$ac_t""$host" 1>&6
718 echo $ac_n "checking target system type""... $ac_c" 1>&6
719 echo "configure:720: checking target system type" >&5
722 case "$target_alias" in
725 NONE) target_alias=$host_alias ;;
726 *) target_alias=$nonopt ;;
730 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
731 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
732 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
733 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
734 echo "$ac_t""$target" 1>&6
736 echo $ac_n "checking build system type""... $ac_c" 1>&6
737 echo "configure:738: checking build system type" >&5
740 case "$build_alias" in
743 NONE) build_alias=$host_alias ;;
744 *) build_alias=$nonopt ;;
748 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
749 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
750 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
751 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
752 echo "$ac_t""$build" 1>&6
754 test "$host_alias" != "$target_alias" &&
755 test "$program_prefix$program_suffix$program_transform_name" = \
757 program_prefix=${target_alias}-
763 save_CFLAGS="${CFLAGS}"
764 save_LDFLAGS="${LDFLAGS}"
766 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
767 echo "configure:768: checking whether ${MAKE-make} sets \${MAKE}" >&5
768 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
769 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 cat > conftestmake <<\EOF
774 @echo 'ac_maketemp="${MAKE}"'
776 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
777 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
778 if test -n "$ac_maketemp"; then
779 eval ac_cv_prog_make_${ac_make}_set=yes
781 eval ac_cv_prog_make_${ac_make}_set=no
785 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
786 echo "$ac_t""yes" 1>&6
789 echo "$ac_t""no" 1>&6
790 SET_MAKE="MAKE=${MAKE-make}"
793 # Extract the first word of "gcc", so it can be a program name with args.
794 set dummy gcc; ac_word=$2
795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
796 echo "configure:797: checking for $ac_word" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 if test -n "$CC"; then
801 ac_cv_prog_CC="$CC" # Let the user override the test.
803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
805 for ac_dir in $ac_dummy; do
806 test -z "$ac_dir" && ac_dir=.
807 if test -f $ac_dir/$ac_word; then
816 if test -n "$CC"; then
817 echo "$ac_t""$CC" 1>&6
819 echo "$ac_t""no" 1>&6
822 if test -z "$CC"; then
823 # Extract the first word of "cc", so it can be a program name with args.
824 set dummy cc; ac_word=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 if test -n "$CC"; then
831 ac_cv_prog_CC="$CC" # Let the user override the test.
833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
836 for ac_dir in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir=.
838 if test -f $ac_dir/$ac_word; then
839 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
848 if test $ac_prog_rejected = yes; then
849 # We found a bogon in the path, so make sure we never use it.
850 set dummy $ac_cv_prog_CC
852 if test $# -gt 0; then
853 # We chose a different compiler from the bogus one.
854 # However, it has the same basename, so the bogon will be chosen
855 # first if we set CC to just the basename; use the full file name.
857 set dummy "$ac_dir/$ac_word" "$@"
865 if test -n "$CC"; then
866 echo "$ac_t""$CC" 1>&6
868 echo "$ac_t""no" 1>&6
871 if test -z "$CC"; then
874 # Extract the first word of "cl", so it can be a program name with args.
875 set dummy cl; ac_word=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 echo "configure:878: checking for $ac_word" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 if test -n "$CC"; then
882 ac_cv_prog_CC="$CC" # Let the user override the test.
884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
886 for ac_dir in $ac_dummy; do
887 test -z "$ac_dir" && ac_dir=.
888 if test -f $ac_dir/$ac_word; then
897 if test -n "$CC"; then
898 echo "$ac_t""$CC" 1>&6
900 echo "$ac_t""no" 1>&6
905 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
908 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
909 echo "configure:910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
913 ac_cpp='$CPP $CPPFLAGS'
914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
916 cross_compiling=$ac_cv_prog_cc_cross
918 cat > conftest.$ac_ext << EOF
920 #line 921 "configure"
921 #include "confdefs.h"
925 if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
926 ac_cv_prog_cc_works=yes
927 # If we can't run a trivial program, we are probably using a cross compiler.
928 if (./conftest; exit) 2>/dev/null; then
929 ac_cv_prog_cc_cross=no
931 ac_cv_prog_cc_cross=yes
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
936 ac_cv_prog_cc_works=no
940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
941 ac_cpp='$CPP $CPPFLAGS'
942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
944 cross_compiling=$ac_cv_prog_cc_cross
946 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
947 if test $ac_cv_prog_cc_works = no; then
948 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
950 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
951 echo "configure:952: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
952 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
953 cross_compiling=$ac_cv_prog_cc_cross
955 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
956 echo "configure:957: checking whether we are using GNU C" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 cat > conftest.c <<EOF
965 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
972 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
974 if test $ac_cv_prog_gcc = yes; then
980 ac_test_CFLAGS="${CFLAGS+set}"
981 ac_save_CFLAGS="$CFLAGS"
983 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
984 echo "configure:985: checking whether ${CC-cc} accepts -g" >&5
985 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 echo 'void f(){}' > conftest.c
989 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
998 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
999 if test "$ac_test_CFLAGS" = set; then
1000 CFLAGS="$ac_save_CFLAGS"
1001 elif test $ac_cv_prog_cc_g = yes; then
1002 if test "$GCC" = yes; then
1008 if test "$GCC" = yes; then
1015 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1016 echo "configure:1017: checking how to run the C preprocessor" >&5
1017 # On Suns, sometimes $CPP names a directory.
1018 if test -n "$CPP" && test -d "$CPP"; then
1021 if test -z "$CPP"; then
1022 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 # This must be in double quotes, not single quotes, because CPP may get
1026 # substituted into the Makefile and "${CC-cc}" will confuse make.
1028 # On the NeXT, cc -E runs the code through the compiler's parser,
1029 # not just through cpp.
1030 cat > conftest.$ac_ext <<EOF
1031 #line 1032 "configure"
1032 #include "confdefs.h"
1036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1037 { (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1039 if test -z "$ac_err"; then
1043 echo "configure: failed program was:" >&5
1044 cat conftest.$ac_ext >&5
1046 CPP="${CC-cc} -E -traditional-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} -nologo -E"
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
1087 ac_cv_prog_CPP="$CPP"
1089 CPP="$ac_cv_prog_CPP"
1091 ac_cv_prog_CPP="$CPP"
1093 echo "$ac_t""$CPP" 1>&6
1096 if test $host != $build; then
1097 ac_tool_prefix=${host_alias}-
1102 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105 echo "configure:1106: checking for $ac_word" >&5
1106 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 if test -n "$RANLIB"; then
1110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1114 for ac_dir in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir=.
1116 if test -f $ac_dir/$ac_word; then
1117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1124 RANLIB="$ac_cv_prog_RANLIB"
1125 if test -n "$RANLIB"; then
1126 echo "$ac_t""$RANLIB" 1>&6
1128 echo "$ac_t""no" 1>&6
1132 if test -z "$ac_cv_prog_RANLIB"; then
1133 if test -n "$ac_tool_prefix"; then
1134 # Extract the first word of "ranlib", so it can be a program name with args.
1135 set dummy ranlib; ac_word=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 if test -n "$RANLIB"; then
1142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1146 for ac_dir in $ac_dummy; do
1147 test -z "$ac_dir" && ac_dir=.
1148 if test -f $ac_dir/$ac_word; then
1149 ac_cv_prog_RANLIB="ranlib"
1154 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1157 RANLIB="$ac_cv_prog_RANLIB"
1158 if test -n "$RANLIB"; then
1159 echo "$ac_t""$RANLIB" 1>&6
1161 echo "$ac_t""no" 1>&6
1170 # Extract the first word of "gmake", so it can be a program name with args.
1171 set dummy gmake; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1179 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1182 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1187 for ac_dir in $ac_dummy; do
1188 test -z "$ac_dir" && ac_dir=.
1189 if test -f $ac_dir/$ac_word; then
1190 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1195 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1199 GMAKE="$ac_cv_path_GMAKE"
1200 if test -n "$GMAKE"; then
1201 echo "$ac_t""$GMAKE" 1>&6
1203 echo "$ac_t""no" 1>&6
1206 if test "x$GMAKE" = "xno"; then
1207 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether GNU make is installed" >&5
1209 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 if make --version | grep -q -i gnu; then
1215 echo "This software needs you to install GNU make to compile properly."
1216 echo "You can get it from http://www.gnu.org/."
1221 echo "$ac_t""$ac_cv_gmake" 1>&6
1227 ALL_LINGUAS="de fr ja no ru nl"
1229 cat >> confdefs.h <<EOF
1230 #define PACKAGE "vlc"
1233 cat >> confdefs.h <<EOF
1234 #define VERSION "$VERSION"
1237 # Extract the first word of "ranlib", so it can be a program name with args.
1238 set dummy ranlib; ac_word=$2
1239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1240 echo "configure:1241: checking for $ac_word" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 if test -n "$RANLIB"; then
1245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1249 for ac_dir in $ac_dummy; do
1250 test -z "$ac_dir" && ac_dir=.
1251 if test -f $ac_dir/$ac_word; then
1252 ac_cv_prog_RANLIB="ranlib"
1257 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1260 RANLIB="$ac_cv_prog_RANLIB"
1261 if test -n "$RANLIB"; then
1262 echo "$ac_t""$RANLIB" 1>&6
1264 echo "$ac_t""no" 1>&6
1268 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1269 echo "configure:1270: checking for strerror in -lcposix" >&5
1270 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 ac_save_LIBS="$LIBS"
1275 LIBS="-lcposix $LIBS"
1276 cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1279 /* Override any gcc2 internal prototype to avoid an error. */
1280 /* We use char because int might match the return type of a gcc2
1281 builtin and then its argument prototype would still apply. */
1288 if { (eval echo configure:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1290 eval "ac_cv_lib_$ac_lib_var=yes"
1292 echo "configure: failed program was:" >&5
1293 cat conftest.$ac_ext >&5
1295 eval "ac_cv_lib_$ac_lib_var=no"
1298 LIBS="$ac_save_LIBS"
1301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1302 echo "$ac_t""yes" 1>&6
1303 LIBS="$LIBS -lcposix"
1305 echo "$ac_t""no" 1>&6
1310 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1311 echo "configure:1312: checking for ANSI C header files" >&5
1312 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1324 { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1326 if test -z "$ac_err"; then
1328 ac_cv_header_stdc=yes
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1334 ac_cv_header_stdc=no
1338 if test $ac_cv_header_stdc = yes; then
1339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1346 egrep "memchr" >/dev/null 2>&1; then
1350 ac_cv_header_stdc=no
1356 if test $ac_cv_header_stdc = yes; then
1357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1364 egrep "free" >/dev/null 2>&1; then
1368 ac_cv_header_stdc=no
1374 if test $ac_cv_header_stdc = yes; then
1375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1376 if test "$cross_compiling" = yes; then
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1383 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1384 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1386 int main () { int i; for (i = 0; i < 256; i++)
1387 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1391 if { (eval echo configure:1392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1395 echo "configure: failed program was:" >&5
1396 cat conftest.$ac_ext >&5
1398 ac_cv_header_stdc=no
1406 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1407 if test $ac_cv_header_stdc = yes; then
1408 cat >> confdefs.h <<\EOF
1409 #define STDC_HEADERS 1
1414 echo $ac_n "checking for working const""... $ac_c" 1>&6
1415 echo "configure:1416: checking for working const" >&5
1416 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1425 /* Ultrix mips cc rejects this. */
1426 typedef int charset[2]; const charset x;
1427 /* SunOS 4.1.1 cc rejects this. */
1428 char const *const *ccp;
1430 /* NEC SVR4.0.2 mips cc rejects this. */
1431 struct point {int x, y;};
1432 static struct point const zero = {0,0};
1433 /* AIX XL C 1.02.0.0 rejects this.
1434 It does not let you subtract one const X* pointer from another in an arm
1435 of an if-expression whose if-part is not a constant expression */
1436 const char *g = "string";
1437 ccp = &g + (g ? g-g : 0);
1438 /* HPUX 7.0 cc rejects these. */
1441 ccp = (char const *const *) p;
1442 { /* SCO 3.2v4 cc rejects this. */
1444 char const *s = 0 ? (char *) 0 : (char const *) 0;
1448 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1450 const int *foo = &x[0];
1453 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1454 typedef const int *iptr;
1458 { /* AIX XL C 1.02.0.0 rejects this saying
1459 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1460 struct s { int j; const int *ap[3]; };
1461 struct s *b; b->j = 5;
1463 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1469 if { (eval echo configure:1470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1473 echo "configure: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
1481 echo "$ac_t""$ac_cv_c_const" 1>&6
1482 if test $ac_cv_c_const = no; then
1483 cat >> confdefs.h <<\EOF
1489 echo $ac_n "checking for inline""... $ac_c" 1>&6
1490 echo "configure:1491: checking for inline" >&5
1491 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1495 for ac_kw in inline __inline__ __inline; do
1496 cat > conftest.$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1504 if { (eval echo configure:1505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1506 ac_cv_c_inline=$ac_kw; break
1508 echo "configure: failed program was:" >&5
1509 cat conftest.$ac_ext >&5
1516 echo "$ac_t""$ac_cv_c_inline" 1>&6
1517 case "$ac_cv_c_inline" in
1519 no) cat >> confdefs.h <<\EOF
1523 *) cat >> confdefs.h <<EOF
1524 #define inline $ac_cv_c_inline
1529 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1530 echo "configure:1531: checking for off_t" >&5
1531 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1537 #include <sys/types.h>
1543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1544 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1546 ac_cv_type_off_t=yes
1554 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1555 if test $ac_cv_type_off_t = no; then
1556 cat >> confdefs.h <<\EOF
1562 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1563 echo "configure:1564: checking for size_t" >&5
1564 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 #include <sys/types.h>
1576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1577 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1579 ac_cv_type_size_t=yes
1582 ac_cv_type_size_t=no
1587 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1588 if test $ac_cv_type_size_t = no; then
1589 cat >> confdefs.h <<\EOF
1590 #define size_t unsigned
1595 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1596 # for constant arguments. Useless!
1597 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1598 echo "configure:1599: checking for working alloca.h" >&5
1599 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1607 char *p = alloca(2 * sizeof(int));
1610 if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1612 ac_cv_header_alloca_h=yes
1614 echo "configure: failed program was:" >&5
1615 cat conftest.$ac_ext >&5
1617 ac_cv_header_alloca_h=no
1622 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1623 if test $ac_cv_header_alloca_h = yes; then
1624 cat >> confdefs.h <<\EOF
1625 #define HAVE_ALLOCA_H 1
1630 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1631 echo "configure:1632: checking for alloca" >&5
1632 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 cat > conftest.$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1640 # define alloca __builtin_alloca
1643 # include <malloc.h>
1644 # define alloca _alloca
1647 # include <alloca.h>
1652 # ifndef alloca /* predefined by HP cc +Olibcalls */
1661 char *p = (char *) alloca(1);
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1666 ac_cv_func_alloca_works=yes
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1671 ac_cv_func_alloca_works=no
1676 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1677 if test $ac_cv_func_alloca_works = yes; then
1678 cat >> confdefs.h <<\EOF
1679 #define HAVE_ALLOCA 1
1684 if test $ac_cv_func_alloca_works = no; then
1685 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1686 # that cause trouble. Some versions do not even contain alloca or
1687 # contain a buggy version. If you still want to use their alloca,
1688 # use ar to extract alloca.o from them instead of compiling alloca.c.
1689 ALLOCA=alloca.${ac_objext}
1690 cat >> confdefs.h <<\EOF
1695 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1696 echo "configure:1697: checking whether alloca needs Cray hooks" >&5
1697 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 cat > conftest.$ac_ext <<EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1703 #if defined(CRAY) && ! defined(CRAY2)
1710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1711 egrep "webecray" >/dev/null 2>&1; then
1722 echo "$ac_t""$ac_cv_os_cray" 1>&6
1723 if test $ac_cv_os_cray = yes; then
1724 for ac_func in _getb67 GETB67 getb67; do
1725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1726 echo "configure:1727: checking for $ac_func" >&5
1727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1733 /* System header to define __stub macros and hopefully few prototypes,
1734 which can conflict with char $ac_func(); below. */
1736 /* Override any gcc2 internal prototype to avoid an error. */
1737 /* We use char because int might match the return type of a gcc2
1738 builtin and then its argument prototype would still apply. */
1743 /* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1756 eval "ac_cv_func_$ac_func=yes"
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1761 eval "ac_cv_func_$ac_func=no"
1766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1767 echo "$ac_t""yes" 1>&6
1768 cat >> confdefs.h <<EOF
1769 #define CRAY_STACKSEG_END $ac_func
1774 echo "$ac_t""no" 1>&6
1780 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1781 echo "configure:1782: checking stack direction for C alloca" >&5
1782 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 if test "$cross_compiling" = yes; then
1786 ac_cv_c_stack_direction=0
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 find_stack_direction ()
1793 static char *addr = 0;
1798 return find_stack_direction ();
1801 return (&dummy > addr) ? 1 : -1;
1805 exit (find_stack_direction() < 0);
1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1810 ac_cv_c_stack_direction=1
1812 echo "configure: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1815 ac_cv_c_stack_direction=-1
1822 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1823 cat >> confdefs.h <<EOF
1824 #define STACK_DIRECTION $ac_cv_c_stack_direction
1829 for ac_hdr in unistd.h
1831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_hdr" >&5
1834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1843 { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1845 if test -z "$ac_err"; then
1847 eval "ac_cv_header_$ac_safe=yes"
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1853 eval "ac_cv_header_$ac_safe=no"
1857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1858 echo "$ac_t""yes" 1>&6
1859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1860 cat >> confdefs.h <<EOF
1861 #define $ac_tr_hdr 1
1865 echo "$ac_t""no" 1>&6
1869 for ac_func in getpagesize
1871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1872 echo "configure:1873: checking for $ac_func" >&5
1873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $ac_func(); below. */
1882 /* Override any gcc2 internal prototype to avoid an error. */
1883 /* We use char because int might match the return type of a gcc2
1884 builtin and then its argument prototype would still apply. */
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1900 if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1902 eval "ac_cv_func_$ac_func=yes"
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 eval "ac_cv_func_$ac_func=no"
1912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1913 echo "$ac_t""yes" 1>&6
1914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1915 cat >> confdefs.h <<EOF
1916 #define $ac_tr_func 1
1920 echo "$ac_t""no" 1>&6
1924 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1925 echo "configure:1926: checking for working mmap" >&5
1926 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1929 if test "$cross_compiling" = yes; then
1930 ac_cv_func_mmap_fixed_mapped=no
1932 cat > conftest.$ac_ext <<EOF
1933 #line 1934 "configure"
1934 #include "confdefs.h"
1936 /* Thanks to Mike Haertel and Jim Avera for this test.
1937 Here is a matrix of mmap possibilities:
1938 mmap private not fixed
1939 mmap private fixed at somewhere currently unmapped
1940 mmap private fixed at somewhere already mapped
1941 mmap shared not fixed
1942 mmap shared fixed at somewhere currently unmapped
1943 mmap shared fixed at somewhere already mapped
1944 For private mappings, we should verify that changes cannot be read()
1945 back from the file, nor mmap's back from the file at a different
1946 address. (There have been systems where private was not correctly
1947 implemented like the infamous i386 svr4.0, and systems where the
1948 VM page cache was not coherent with the filesystem buffer cache
1949 like early versions of FreeBSD and possibly contemporary NetBSD.)
1950 For shared mappings, we should conversely verify that changes get
1951 propogated back to all the places they're supposed to be.
1953 Grep wants private fixed already mapped.
1954 The main things grep needs to know about mmap are:
1955 * does it exist and is it safe to write into the mmap'd area
1956 * how to use it (BSD variants) */
1957 #include <sys/types.h>
1959 #include <sys/mman.h>
1961 /* This mess was copied from the GNU getpagesize.h. */
1962 #ifndef HAVE_GETPAGESIZE
1963 # ifdef HAVE_UNISTD_H
1964 # include <unistd.h>
1967 /* Assume that all systems that can run configure have sys/param.h. */
1968 # ifndef HAVE_SYS_PARAM_H
1969 # define HAVE_SYS_PARAM_H 1
1972 # ifdef _SC_PAGESIZE
1973 # define getpagesize() sysconf(_SC_PAGESIZE)
1974 # else /* no _SC_PAGESIZE */
1975 # ifdef HAVE_SYS_PARAM_H
1976 # include <sys/param.h>
1977 # ifdef EXEC_PAGESIZE
1978 # define getpagesize() EXEC_PAGESIZE
1979 # else /* no EXEC_PAGESIZE */
1981 # define getpagesize() NBPG * CLSIZE
1984 # endif /* no CLSIZE */
1985 # else /* no NBPG */
1987 # define getpagesize() NBPC
1988 # else /* no NBPC */
1990 # define getpagesize() PAGESIZE
1991 # endif /* PAGESIZE */
1992 # endif /* no NBPC */
1993 # endif /* no NBPG */
1994 # endif /* no EXEC_PAGESIZE */
1995 # else /* no HAVE_SYS_PARAM_H */
1996 # define getpagesize() 8192 /* punt totally */
1997 # endif /* no HAVE_SYS_PARAM_H */
1998 # endif /* no _SC_PAGESIZE */
2000 #endif /* no HAVE_GETPAGESIZE */
2003 extern "C" { void *malloc(unsigned); }
2011 char *data, *data2, *data3;
2015 pagesize = getpagesize();
2018 * First, make a file with some known garbage in it.
2020 data = malloc(pagesize);
2023 for (i = 0; i < pagesize; ++i)
2024 *(data + i) = rand();
2026 fd = creat("conftestmmap", 0600);
2029 if (write(fd, data, pagesize) != pagesize)
2034 * Next, try to mmap the file at a fixed address which
2035 * already has something else allocated at it. If we can,
2036 * also make sure that we see the same garbage.
2038 fd = open("conftestmmap", O_RDWR);
2041 data2 = malloc(2 * pagesize);
2044 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2045 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2046 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2048 for (i = 0; i < pagesize; ++i)
2049 if (*(data + i) != *(data2 + i))
2053 * Finally, make sure that changes to the mapped area
2054 * do not percolate back to the file as seen by read().
2055 * (This is a bug on some variants of i386 svr4.0.)
2057 for (i = 0; i < pagesize; ++i)
2058 *(data2 + i) = *(data2 + i) + 1;
2059 data3 = malloc(pagesize);
2062 if (read(fd, data3, pagesize) != pagesize)
2064 for (i = 0; i < pagesize; ++i)
2065 if (*(data + i) != *(data3 + i))
2068 unlink("conftestmmap");
2073 if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2075 ac_cv_func_mmap_fixed_mapped=yes
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2080 ac_cv_func_mmap_fixed_mapped=no
2087 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2088 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2089 cat >> confdefs.h <<\EOF
2096 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2097 echo "configure:2098: checking whether we are using the GNU C Library 2.1 or newer" >&5
2098 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2105 #include <features.h>
2106 #ifdef __GNU_LIBRARY__
2107 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2114 egrep "Lucky GNU user" >/dev/null 2>&1; then
2116 ac_cv_gnu_library_2_1=yes
2119 ac_cv_gnu_library_2_1=no
2127 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2129 GLIBC21="$ac_cv_gnu_library_2_1"
2133 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2134 stdlib.h string.h unistd.h sys/param.h
2136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_hdr" >&5
2139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2148 { (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2150 if test -z "$ac_err"; then
2152 eval "ac_cv_header_$ac_safe=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2158 eval "ac_cv_header_$ac_safe=no"
2162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2163 echo "$ac_t""yes" 1>&6
2164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2165 cat >> confdefs.h <<EOF
2166 #define $ac_tr_hdr 1
2170 echo "$ac_t""no" 1>&6
2174 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2175 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2176 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2179 echo "configure:2180: checking for $ac_func" >&5
2180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 /* System header to define __stub macros and hopefully few prototypes,
2187 which can conflict with char $ac_func(); below. */
2189 /* Override any gcc2 internal prototype to avoid an error. */
2190 /* We use char because int might match the return type of a gcc2
2191 builtin and then its argument prototype would still apply. */
2196 /* The GNU C library defines this for functions which it implements
2197 to always fail with ENOSYS. Some functions are actually named
2198 something starting with __ and the normal name is an alias. */
2199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2207 if { (eval echo configure:2208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2209 eval "ac_cv_func_$ac_func=yes"
2211 echo "configure: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2214 eval "ac_cv_func_$ac_func=no"
2219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2220 echo "$ac_t""yes" 1>&6
2221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2222 cat >> confdefs.h <<EOF
2223 #define $ac_tr_func 1
2227 echo "$ac_t""no" 1>&6
2234 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2235 if test "${with_libiconv_prefix+set}" = set; then
2236 withval="$with_libiconv_prefix"
2238 for dir in `echo "$withval" | tr : ' '`; do
2239 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2240 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2246 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2247 echo "configure:2248: checking for iconv" >&5
2248 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2252 am_cv_func_iconv="no, consider installing GNU libiconv"
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2260 iconv_t cd = iconv_open("","");
2261 iconv(cd,NULL,NULL,NULL,NULL);
2265 if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2267 am_cv_func_iconv=yes
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2273 if test "$am_cv_func_iconv" != yes; then
2274 am_save_LIBS="$LIBS"
2275 LIBS="$LIBS -liconv"
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2282 iconv_t cd = iconv_open("","");
2283 iconv(cd,NULL,NULL,NULL,NULL);
2287 if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2290 am_cv_func_iconv=yes
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2296 LIBS="$am_save_LIBS"
2301 echo "$ac_t""$am_cv_func_iconv" 1>&6
2302 if test "$am_cv_func_iconv" = yes; then
2303 cat >> confdefs.h <<\EOF
2304 #define HAVE_ICONV 1
2307 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2308 echo "configure:2309: checking for iconv declaration" >&5
2309 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2323 #if defined(__STDC__) || defined(__cplusplus)
2324 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2333 if { (eval echo configure:2334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2335 am_cv_proto_iconv_arg1=""
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2340 am_cv_proto_iconv_arg1="const"
2343 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);"
2346 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2347 echo "$ac_t""${ac_t:-
2348 }$am_cv_proto_iconv" 1>&6
2349 cat >> confdefs.h <<EOF
2350 #define ICONV_CONST $am_cv_proto_iconv_arg1
2355 if test "$am_cv_lib_iconv" = yes; then
2361 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2362 echo "configure:2363: checking for nl_langinfo and CODESET" >&5
2363 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 #include <langinfo.h>
2371 char* cs = nl_langinfo(CODESET);
2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2376 am_cv_langinfo_codeset=yes
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2381 am_cv_langinfo_codeset=no
2387 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2388 if test $am_cv_langinfo_codeset = yes; then
2389 cat >> confdefs.h <<\EOF
2390 #define HAVE_LANGINFO_CODESET 1
2395 if test $ac_cv_header_locale_h = yes; then
2396 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2397 echo "configure:2398: checking for LC_MESSAGES" >&5
2398 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2411 am_cv_val_LC_MESSAGES=yes
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 am_cv_val_LC_MESSAGES=no
2421 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2422 if test $am_cv_val_LC_MESSAGES = yes; then
2423 cat >> confdefs.h <<\EOF
2424 #define HAVE_LC_MESSAGES 1
2429 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2430 echo "configure:2431: checking whether NLS is requested" >&5
2431 # Check whether --enable-nls or --disable-nls was given.
2432 if test "${enable_nls+set}" = set; then
2433 enableval="$enable_nls"
2439 echo "$ac_t""$USE_NLS" 1>&6
2442 BUILD_INCLUDED_LIBINTL=no
2443 USE_INCLUDED_LIBINTL=no
2446 if test "$USE_NLS" = "yes"; then
2447 cat >> confdefs.h <<\EOF
2448 #define ENABLE_NLS 1
2451 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2452 echo "configure:2453: checking whether included gettext is requested" >&5
2453 # Check whether --with-included-gettext or --without-included-gettext was given.
2454 if test "${with_included_gettext+set}" = set; then
2455 withval="$with_included_gettext"
2456 nls_cv_force_use_gnu_gettext=$withval
2458 nls_cv_force_use_gnu_gettext=no
2461 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2463 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2464 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2470 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2471 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2472 echo "configure:2473: checking for libintl.h" >&5
2473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2479 #include <libintl.h>
2481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2482 { (eval echo configure:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2484 if test -z "$ac_err"; then
2486 eval "ac_cv_header_$ac_safe=yes"
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2492 eval "ac_cv_header_$ac_safe=no"
2496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2499 echo "configure:2500: checking for GNU gettext in libc" >&5
2500 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506 #include <libintl.h>
2507 extern int _nl_msg_cat_cntr;
2509 bindtextdomain ("", "");
2510 return (int) gettext ("") + _nl_msg_cat_cntr
2513 if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2515 gt_cv_func_gnugettext1_libc=yes
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 gt_cv_func_gnugettext1_libc=no
2525 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2527 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2528 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2529 echo "configure:2530: checking for GNU gettext in libintl" >&5
2530 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2533 gt_save_LIBS="$LIBS"
2534 LIBS="$LIBS -lintl $LIBICONV"
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 #include <libintl.h>
2539 extern int _nl_msg_cat_cntr;
2541 bindtextdomain ("", "");
2542 return (int) gettext ("") + _nl_msg_cat_cntr
2545 if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2547 gt_cv_func_gnugettext1_libintl=yes
2549 echo "configure: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2552 gt_cv_func_gnugettext1_libintl=no
2555 LIBS="$gt_save_LIBS"
2558 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2561 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2562 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2563 && test "$PACKAGE" != gettext; }; then
2564 cat >> confdefs.h <<\EOF
2565 #define HAVE_GETTEXT 1
2569 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2570 INTLLIBS="-lintl $LIBICONV"
2573 gt_save_LIBS="$LIBS"
2574 LIBS="$LIBS $INTLLIBS"
2575 for ac_func in dcgettext
2577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2578 echo "configure:2579: checking for $ac_func" >&5
2579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $ac_func(); below. */
2588 /* Override any gcc2 internal prototype to avoid an error. */
2589 /* We use char because int might match the return type of a gcc2
2590 builtin and then its argument prototype would still apply. */
2595 /* The GNU C library defines this for functions which it implements
2596 to always fail with ENOSYS. Some functions are actually named
2597 something starting with __ and the normal name is an alias. */
2598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2606 if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2608 eval "ac_cv_func_$ac_func=yes"
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2613 eval "ac_cv_func_$ac_func=no"
2618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2619 echo "$ac_t""yes" 1>&6
2620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2621 cat >> confdefs.h <<EOF
2622 #define $ac_tr_func 1
2626 echo "$ac_t""no" 1>&6
2630 LIBS="$gt_save_LIBS"
2632 # Extract the first word of "msgfmt", so it can be a program name with args.
2633 set dummy msgfmt; ac_word=$2
2634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2635 echo "configure:2636: checking for $ac_word" >&5
2636 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2641 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2645 for ac_dir in $PATH; do
2646 test -z "$ac_dir" && ac_dir=.
2647 if test -f $ac_dir/$ac_word; then
2648 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2649 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2655 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2659 MSGFMT="$ac_cv_path_MSGFMT"
2660 if test "$MSGFMT" != ":"; then
2661 echo "$ac_t""$MSGFMT" 1>&6
2663 echo "$ac_t""no" 1>&6
2666 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2667 set dummy gmsgfmt; ac_word=$2
2668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_word" >&5
2670 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2675 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2678 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2683 for ac_dir in $ac_dummy; do
2684 test -z "$ac_dir" && ac_dir=.
2685 if test -f $ac_dir/$ac_word; then
2686 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2691 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2695 GMSGFMT="$ac_cv_path_GMSGFMT"
2696 if test -n "$GMSGFMT"; then
2697 echo "$ac_t""$GMSGFMT" 1>&6
2699 echo "$ac_t""no" 1>&6
2703 # Extract the first word of "xgettext", so it can be a program name with args.
2704 set dummy xgettext; ac_word=$2
2705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2706 echo "configure:2707: checking for $ac_word" >&5
2707 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2712 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2716 for ac_dir in $PATH; do
2717 test -z "$ac_dir" && ac_dir=.
2718 if test -f $ac_dir/$ac_word; then
2719 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2720 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2726 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2730 XGETTEXT="$ac_cv_path_XGETTEXT"
2731 if test "$XGETTEXT" != ":"; then
2732 echo "$ac_t""$XGETTEXT" 1>&6
2734 echo "$ac_t""no" 1>&6
2742 echo "$ac_t""no" 1>&6
2746 if test "$CATOBJEXT" = "NONE"; then
2747 nls_cv_use_gnu_gettext=yes
2751 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2752 INTLOBJS="\$(GETTOBJS)"
2753 # Extract the first word of "msgfmt", so it can be a program name with args.
2754 set dummy msgfmt; ac_word=$2
2755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2756 echo "configure:2757: checking for $ac_word" >&5
2757 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2762 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2766 for ac_dir in $PATH; do
2767 test -z "$ac_dir" && ac_dir=.
2768 if test -f $ac_dir/$ac_word; then
2769 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2770 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2776 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2780 MSGFMT="$ac_cv_path_MSGFMT"
2781 if test "$MSGFMT" != ":"; then
2782 echo "$ac_t""$MSGFMT" 1>&6
2784 echo "$ac_t""no" 1>&6
2787 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2788 set dummy gmsgfmt; 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_GMSGFMT'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2796 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2799 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2804 for ac_dir in $ac_dummy; do
2805 test -z "$ac_dir" && ac_dir=.
2806 if test -f $ac_dir/$ac_word; then
2807 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2812 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2816 GMSGFMT="$ac_cv_path_GMSGFMT"
2817 if test -n "$GMSGFMT"; then
2818 echo "$ac_t""$GMSGFMT" 1>&6
2820 echo "$ac_t""no" 1>&6
2823 # Extract the first word of "xgettext", so it can be a program name with args.
2824 set dummy xgettext; ac_word=$2
2825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2826 echo "configure:2827: checking for $ac_word" >&5
2827 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2832 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2836 for ac_dir in $PATH; do
2837 test -z "$ac_dir" && ac_dir=.
2838 if test -f $ac_dir/$ac_word; then
2839 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2840 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2846 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2850 XGETTEXT="$ac_cv_path_XGETTEXT"
2851 if test "$XGETTEXT" != ":"; then
2852 echo "$ac_t""$XGETTEXT" 1>&6
2854 echo "$ac_t""no" 1>&6
2858 BUILD_INCLUDED_LIBINTL=yes
2859 USE_INCLUDED_LIBINTL=yes
2861 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2862 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2865 if test "$GMSGFMT" != ":"; then
2866 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2869 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2874 if test "$XGETTEXT" != ":"; then
2875 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2878 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2888 if test "$PACKAGE" = gettext; then
2889 BUILD_INCLUDED_LIBINTL=yes
2892 for ac_prog in bison
2894 # Extract the first word of "$ac_prog", so it can be a program name with args.
2895 set dummy $ac_prog; ac_word=$2
2896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2897 echo "configure:2898: checking for $ac_word" >&5
2898 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2901 if test -n "$INTLBISON"; then
2902 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2906 for ac_dir in $ac_dummy; do
2907 test -z "$ac_dir" && ac_dir=.
2908 if test -f $ac_dir/$ac_word; then
2909 ac_cv_prog_INTLBISON="$ac_prog"
2916 INTLBISON="$ac_cv_prog_INTLBISON"
2917 if test -n "$INTLBISON"; then
2918 echo "$ac_t""$INTLBISON" 1>&6
2920 echo "$ac_t""no" 1>&6
2923 test -n "$INTLBISON" && break
2926 if test -z "$INTLBISON"; then
2929 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2930 echo "configure:2931: checking version of bison" >&5
2931 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2932 case $ac_prog_version in
2933 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2934 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2935 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2936 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2938 echo "$ac_t""$ac_prog_version" 1>&6
2940 if test $ac_verc_fail = yes; then
2944 for lang in $ALL_LINGUAS; do
2945 GMOFILES="$GMOFILES $lang.gmo"
2946 POFILES="$POFILES $lang.po"
2960 nls_cv_header_libgt=
2972 if test "x$CATOBJEXT" != "x"; then
2973 if test "x$ALL_LINGUAS" = "x"; then
2976 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2977 echo "configure:2978: checking for catalogs to be installed" >&5
2979 for presentlang in $ALL_LINGUAS; do
2981 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2982 # Use the presentlang catalog if desiredlang is
2983 # a. equal to presentlang, or
2984 # b. a variant of presentlang (because in this case,
2985 # presentlang can be used as a fallback for messages
2986 # which are not translated in the desiredlang catalog).
2987 case "$desiredlang" in
2988 "$presentlang"*) useit=yes;;
2991 if test $useit = yes; then
2992 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2995 LINGUAS=$NEW_LINGUAS
2996 echo "$ac_t""$LINGUAS" 1>&6
2999 if test -n "$LINGUAS"; then
3000 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3005 if test -n "$ac_aux_dir"; then
3006 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3008 if test -z "$MKINSTALLDIRS"; then
3009 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3013 INTL_LIBTOOL_SUFFIX_PREFIX=
3017 # Find a good install program. We prefer a C program (faster),
3018 # so one script is as good as another. But avoid the broken or
3019 # incompatible versions:
3020 # SysV /etc/install, /usr/sbin/install
3021 # SunOS /usr/etc/install
3022 # IRIX /sbin/install
3024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3027 # ./install, which can be erroneously created by make from ./install.sh.
3028 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3029 echo "configure:3030: checking for a BSD compatible install" >&5
3030 if test -z "$INSTALL"; then
3031 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3035 for ac_dir in $PATH; do
3036 # Account for people who put trailing slashes in PATH elements.
3038 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3040 # OSF1 and SCO ODT 3.0 have their own names for install.
3041 # Don't use installbsd from OSF since it installs stuff as root
3043 for ac_prog in ginstall scoinst install; do
3044 if test -f $ac_dir/$ac_prog; then
3045 if test $ac_prog = install &&
3046 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3047 # AIX install. It has an incompatible calling convention.
3050 ac_cv_path_install="$ac_dir/$ac_prog -c"
3061 if test "${ac_cv_path_install+set}" = set; then
3062 INSTALL="$ac_cv_path_install"
3064 # As a last resort, use the slow shell script. We don't cache a
3065 # path for INSTALL within a source directory, because that will
3066 # break other packages using the cache if that directory is
3067 # removed, or if the path is relative.
3068 INSTALL="$ac_install_sh"
3071 echo "$ac_t""$INSTALL" 1>&6
3073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3074 # It thinks the first close brace ends the variable substitution.
3075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3079 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3082 case x"${target_os}" in
3097 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3098 set dummy ${ac_tool_prefix}windres; ac_word=$2
3099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3100 echo "configure:3101: checking for $ac_word" >&5
3101 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 if test -n "$WINDRES"; then
3105 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3109 for ac_dir in $ac_dummy; do
3110 test -z "$ac_dir" && ac_dir=.
3111 if test -f $ac_dir/$ac_word; then
3112 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3119 WINDRES="$ac_cv_prog_WINDRES"
3120 if test -n "$WINDRES"; then
3121 echo "$ac_t""$WINDRES" 1>&6
3123 echo "$ac_t""no" 1>&6
3127 if test -z "$ac_cv_prog_WINDRES"; then
3128 if test -n "$ac_tool_prefix"; then
3129 # Extract the first word of "windres", so it can be a program name with args.
3130 set dummy windres; ac_word=$2
3131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3132 echo "configure:3133: checking for $ac_word" >&5
3133 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 if test -n "$WINDRES"; then
3137 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3141 for ac_dir in $ac_dummy; do
3142 test -z "$ac_dir" && ac_dir=.
3143 if test -f $ac_dir/$ac_word; then
3144 ac_cv_prog_WINDRES="windres"
3149 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3152 WINDRES="$ac_cv_prog_WINDRES"
3153 if test -n "$WINDRES"; then
3154 echo "$ac_t""$WINDRES" 1>&6
3156 echo "$ac_t""no" 1>&6
3164 LIB_IPV4="${LIB_IPV4} -lws2_32"
3165 LIB_RC="${LIB_RC} -lws2_32"
3169 LIB_X11="${LIB_X11} -lsocket"
3170 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3174 LIB_VLC="${LIB_VLC} -lbe"
3175 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3176 LIB_IPV4="${LIB_IPV4} -lbind"
3177 PLDFLAGS="${PLDFLAGS} -nostart"
3184 for ac_func in gettimeofday select strerror strtod strtol isatty
3186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3187 echo "configure:3188: checking for $ac_func" >&5
3188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 /* System header to define __stub macros and hopefully few prototypes,
3195 which can conflict with char $ac_func(); below. */
3197 /* Override any gcc2 internal prototype to avoid an error. */
3198 /* We use char because int might match the return type of a gcc2
3199 builtin and then its argument prototype would still apply. */
3204 /* The GNU C library defines this for functions which it implements
3205 to always fail with ENOSYS. Some functions are actually named
3206 something starting with __ and the normal name is an alias. */
3207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3215 if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3217 eval "ac_cv_func_$ac_func=yes"
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3222 eval "ac_cv_func_$ac_func=no"
3227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3228 echo "$ac_t""yes" 1>&6
3229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3230 cat >> confdefs.h <<EOF
3231 #define $ac_tr_func 1
3235 echo "$ac_t""no" 1>&6
3239 echo $ac_n "checking for connect""... $ac_c" 1>&6
3240 echo "configure:3241: checking for connect" >&5
3241 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 /* System header to define __stub macros and hopefully few prototypes,
3248 which can conflict with char connect(); below. */
3250 /* Override any gcc2 internal prototype to avoid an error. */
3251 /* We use char because int might match the return type of a gcc2
3252 builtin and then its argument prototype would still apply. */
3257 /* The GNU C library defines this for functions which it implements
3258 to always fail with ENOSYS. Some functions are actually named
3259 something starting with __ and the normal name is an alias. */
3260 #if defined (__stub_connect) || defined (__stub___connect)
3268 if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270 eval "ac_cv_func_connect=yes"
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 eval "ac_cv_func_connect=no"
3280 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3281 echo "$ac_t""yes" 1>&6
3284 echo "$ac_t""no" 1>&6
3286 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3287 echo "configure:3288: checking for connect in -lsocket" >&5
3288 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 ac_save_LIBS="$LIBS"
3293 LIBS="-lsocket $LIBS"
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 /* Override any gcc2 internal prototype to avoid an error. */
3298 /* We use char because int might match the return type of a gcc2
3299 builtin and then its argument prototype would still apply. */
3306 if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3308 eval "ac_cv_lib_$ac_lib_var=yes"
3310 echo "configure: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3313 eval "ac_cv_lib_$ac_lib_var=no"
3316 LIBS="$ac_save_LIBS"
3319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3320 echo "$ac_t""yes" 1>&6
3321 LIB_IPV4="${LIB_IPV4} -lsocket"
3322 LIB_VLC="${LIB_VLC} -lsocket"
3325 echo "$ac_t""no" 1>&6
3330 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3331 echo "configure:3332: checking for gethostbyname" >&5
3332 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 /* System header to define __stub macros and hopefully few prototypes,
3339 which can conflict with char gethostbyname(); below. */
3341 /* Override any gcc2 internal prototype to avoid an error. */
3342 /* We use char because int might match the return type of a gcc2
3343 builtin and then its argument prototype would still apply. */
3344 char gethostbyname();
3348 /* The GNU C library defines this for functions which it implements
3349 to always fail with ENOSYS. Some functions are actually named
3350 something starting with __ and the normal name is an alias. */
3351 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3359 if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3361 eval "ac_cv_func_gethostbyname=yes"
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3366 eval "ac_cv_func_gethostbyname=no"
3371 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3372 echo "$ac_t""yes" 1>&6
3375 echo "$ac_t""no" 1>&6
3377 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3378 echo "configure:3379: checking for gethostbyname in -lnsl" >&5
3379 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 ac_save_LIBS="$LIBS"
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3388 /* Override any gcc2 internal prototype to avoid an error. */
3389 /* We use char because int might match the return type of a gcc2
3390 builtin and then its argument prototype would still apply. */
3391 char gethostbyname();
3397 if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3399 eval "ac_cv_lib_$ac_lib_var=yes"
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 eval "ac_cv_lib_$ac_lib_var=no"
3407 LIBS="$ac_save_LIBS"
3410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3411 echo "$ac_t""yes" 1>&6
3412 LIB_IPV4="${LIB_IPV4} -lnsl"
3414 echo "$ac_t""no" 1>&6
3420 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3421 echo "configure:3422: checking for gethostbyname" >&5
3422 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 cat > conftest.$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3428 /* System header to define __stub macros and hopefully few prototypes,
3429 which can conflict with char gethostbyname(); below. */
3431 /* Override any gcc2 internal prototype to avoid an error. */
3432 /* We use char because int might match the return type of a gcc2
3433 builtin and then its argument prototype would still apply. */
3434 char gethostbyname();
3438 /* The GNU C library defines this for functions which it implements
3439 to always fail with ENOSYS. Some functions are actually named
3440 something starting with __ and the normal name is an alias. */
3441 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3449 if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3451 eval "ac_cv_func_gethostbyname=yes"
3453 echo "configure: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3456 eval "ac_cv_func_gethostbyname=no"
3461 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3462 echo "$ac_t""yes" 1>&6
3465 echo "$ac_t""no" 1>&6
3467 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3468 echo "configure:3469: checking for gethostbyname in -lbind" >&5
3469 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 ac_save_LIBS="$LIBS"
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 /* Override any gcc2 internal prototype to avoid an error. */
3479 /* We use char because int might match the return type of a gcc2
3480 builtin and then its argument prototype would still apply. */
3481 char gethostbyname();
3487 if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3489 eval "ac_cv_lib_$ac_lib_var=yes"
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3494 eval "ac_cv_lib_$ac_lib_var=no"
3497 LIBS="$ac_save_LIBS"
3500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3501 echo "$ac_t""yes" 1>&6
3502 LIB_IPV4="${LIB_IPV4} -lbind"
3504 echo "$ac_t""no" 1>&6
3510 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3511 echo "configure:3512: checking for nanosleep" >&5
3512 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 cat > conftest.$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 /* System header to define __stub macros and hopefully few prototypes,
3519 which can conflict with char nanosleep(); below. */
3521 /* Override any gcc2 internal prototype to avoid an error. */
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3528 /* The GNU C library defines this for functions which it implements
3529 to always fail with ENOSYS. Some functions are actually named
3530 something starting with __ and the normal name is an alias. */
3531 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3539 if { (eval echo configure:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3541 eval "ac_cv_func_nanosleep=yes"
3543 echo "configure: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3546 eval "ac_cv_func_nanosleep=no"
3551 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3552 echo "$ac_t""yes" 1>&6
3555 echo "$ac_t""no" 1>&6
3557 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3558 echo "configure:3559: checking for nanosleep in -lrt" >&5
3559 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3563 ac_save_LIBS="$LIBS"
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 /* Override any gcc2 internal prototype to avoid an error. */
3569 /* We use char because int might match the return type of a gcc2
3570 builtin and then its argument prototype would still apply. */
3577 if { (eval echo configure:3578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3579 eval "ac_cv_lib_$ac_lib_var=yes"
3581 echo "configure: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3584 eval "ac_cv_lib_$ac_lib_var=no"
3587 LIBS="$ac_save_LIBS"
3590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3592 LIB_VLC="${LIB_VLC} -lrt"
3594 echo "$ac_t""no" 1>&6
3596 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3597 echo "configure:3598: checking for nanosleep in -lposix4" >&5
3598 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 ac_save_LIBS="$LIBS"
3603 LIBS="-lposix4 $LIBS"
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 /* Override any gcc2 internal prototype to avoid an error. */
3608 /* We use char because int might match the return type of a gcc2
3609 builtin and then its argument prototype would still apply. */
3616 if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3618 eval "ac_cv_lib_$ac_lib_var=yes"
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3623 eval "ac_cv_lib_$ac_lib_var=no"
3626 LIBS="$ac_save_LIBS"
3629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3630 echo "$ac_t""yes" 1>&6
3631 LIB_VLC="${LIB_VLC} -lposix4"
3633 echo "$ac_t""no" 1>&6
3642 for ac_func in usleep
3644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3645 echo "configure:3646: checking for $ac_func" >&5
3646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3647 echo $ac_n "(cached) $ac_c" 1>&6
3649 cat > conftest.$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3652 /* System header to define __stub macros and hopefully few prototypes,
3653 which can conflict with char $ac_func(); below. */
3655 /* Override any gcc2 internal prototype to avoid an error. */
3656 /* We use char because int might match the return type of a gcc2
3657 builtin and then its argument prototype would still apply. */
3662 /* The GNU C library defines this for functions which it implements
3663 to always fail with ENOSYS. Some functions are actually named
3664 something starting with __ and the normal name is an alias. */
3665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3673 if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3675 eval "ac_cv_func_$ac_func=yes"
3677 echo "configure: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3680 eval "ac_cv_func_$ac_func=no"
3685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3686 echo "$ac_t""yes" 1>&6
3687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3688 cat >> confdefs.h <<EOF
3689 #define $ac_tr_func 1
3693 echo "$ac_t""no" 1>&6
3697 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3698 echo "configure:3699: checking for inet_aton" >&5
3699 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3700 echo $ac_n "(cached) $ac_c" 1>&6
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 /* System header to define __stub macros and hopefully few prototypes,
3706 which can conflict with char inet_aton(); below. */
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3715 /* The GNU C library defines this for functions which it implements
3716 to always fail with ENOSYS. Some functions are actually named
3717 something starting with __ and the normal name is an alias. */
3718 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
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_func_inet_aton=yes"
3730 echo "configure: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3733 eval "ac_cv_func_inet_aton=no"
3738 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3739 echo "$ac_t""yes" 1>&6
3742 echo "$ac_t""no" 1>&6
3744 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3745 echo "configure:3746: checking for inet_aton in -lresolv" >&5
3746 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3750 ac_save_LIBS="$LIBS"
3751 LIBS="-lresolv $LIBS"
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3755 /* Override any gcc2 internal prototype to avoid an error. */
3756 /* We use char because int might match the return type of a gcc2
3757 builtin and then its argument prototype would still apply. */
3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3766 eval "ac_cv_lib_$ac_lib_var=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3771 eval "ac_cv_lib_$ac_lib_var=no"
3774 LIBS="$ac_save_LIBS"
3777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3778 echo "$ac_t""yes" 1>&6
3779 LIB_VLC="${LIB_IPV4} -lresolv"
3781 echo "$ac_t""no" 1>&6
3787 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3788 echo "configure:3789: checking for textdomain" >&5
3789 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3795 /* System header to define __stub macros and hopefully few prototypes,
3796 which can conflict with char textdomain(); below. */
3798 /* Override any gcc2 internal prototype to avoid an error. */
3799 /* We use char because int might match the return type of a gcc2
3800 builtin and then its argument prototype would still apply. */
3805 /* The GNU C library defines this for functions which it implements
3806 to always fail with ENOSYS. Some functions are actually named
3807 something starting with __ and the normal name is an alias. */
3808 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3816 if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3818 eval "ac_cv_func_textdomain=yes"
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3823 eval "ac_cv_func_textdomain=no"
3828 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3829 echo "$ac_t""yes" 1>&6
3832 echo "$ac_t""no" 1>&6
3834 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3835 echo "configure:3836: checking for textdomain in -lintl" >&5
3836 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 ac_save_LIBS="$LIBS"
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3845 /* Override any gcc2 internal prototype to avoid an error. */
3846 /* We use char because int might match the return type of a gcc2
3847 builtin and then its argument prototype would still apply. */
3854 if { (eval echo configure:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3856 eval "ac_cv_lib_$ac_lib_var=yes"
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3861 eval "ac_cv_lib_$ac_lib_var=no"
3864 LIBS="$ac_save_LIBS"
3867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3868 echo "$ac_t""yes" 1>&6
3869 LIB_VLC="${LIB_VLC} -lintl"
3871 echo "$ac_t""no" 1>&6
3877 for ac_func in vasprintf
3879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3880 echo "configure:3881: checking for $ac_func" >&5
3881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3884 cat > conftest.$ac_ext <<EOF
3885 #line 3886 "configure"
3886 #include "confdefs.h"
3887 /* System header to define __stub macros and hopefully few prototypes,
3888 which can conflict with char $ac_func(); below. */
3890 /* Override any gcc2 internal prototype to avoid an error. */
3891 /* We use char because int might match the return type of a gcc2
3892 builtin and then its argument prototype would still apply. */
3897 /* The GNU C library defines this for functions which it implements
3898 to always fail with ENOSYS. Some functions are actually named
3899 something starting with __ and the normal name is an alias. */
3900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3908 if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3910 eval "ac_cv_func_$ac_func=yes"
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3915 eval "ac_cv_func_$ac_func=no"
3920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3921 echo "$ac_t""yes" 1>&6
3922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3923 cat >> confdefs.h <<EOF
3924 #define $ac_tr_func 1
3928 echo "$ac_t""no" 1>&6
3934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3935 echo "configure:3936: checking for $ac_func" >&5
3936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3942 /* System header to define __stub macros and hopefully few prototypes,
3943 which can conflict with char $ac_func(); below. */
3945 /* Override any gcc2 internal prototype to avoid an error. */
3946 /* We use char because int might match the return type of a gcc2
3947 builtin and then its argument prototype would still apply. */
3952 /* The GNU C library defines this for functions which it implements
3953 to always fail with ENOSYS. Some functions are actually named
3954 something starting with __ and the normal name is an alias. */
3955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3963 if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3965 eval "ac_cv_func_$ac_func=yes"
3967 echo "configure: failed program was:" >&5
3968 cat conftest.$ac_ext >&5
3970 eval "ac_cv_func_$ac_func=no"
3975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3976 echo "$ac_t""yes" 1>&6
3977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3978 cat >> confdefs.h <<EOF
3979 #define $ac_tr_func 1
3983 echo "$ac_t""no" 1>&6
3987 for ac_func in memalign valloc
3989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3990 echo "configure:3991: checking for $ac_func" >&5
3991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3997 /* System header to define __stub macros and hopefully few prototypes,
3998 which can conflict with char $ac_func(); below. */
4000 /* Override any gcc2 internal prototype to avoid an error. */
4001 /* We use char because int might match the return type of a gcc2
4002 builtin and then its argument prototype would still apply. */
4007 /* The GNU C library defines this for functions which it implements
4008 to always fail with ENOSYS. Some functions are actually named
4009 something starting with __ and the normal name is an alias. */
4010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4018 if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4020 eval "ac_cv_func_$ac_func=yes"
4022 echo "configure: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
4025 eval "ac_cv_func_$ac_func=no"
4030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4031 echo "$ac_t""yes" 1>&6
4032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4033 cat >> confdefs.h <<EOF
4034 #define $ac_tr_func 1
4038 echo "$ac_t""no" 1>&6
4043 for ac_func in sigrelse
4045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4046 echo "configure:4047: checking for $ac_func" >&5
4047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4050 cat > conftest.$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4053 /* System header to define __stub macros and hopefully few prototypes,
4054 which can conflict with char $ac_func(); below. */
4056 /* Override any gcc2 internal prototype to avoid an error. */
4057 /* We use char because int might match the return type of a gcc2
4058 builtin and then its argument prototype would still apply. */
4063 /* The GNU C library defines this for functions which it implements
4064 to always fail with ENOSYS. Some functions are actually named
4065 something starting with __ and the normal name is an alias. */
4066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4074 if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4076 eval "ac_cv_func_$ac_func=yes"
4078 echo "configure: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4081 eval "ac_cv_func_$ac_func=no"
4086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4087 echo "$ac_t""yes" 1>&6
4088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4089 cat >> confdefs.h <<EOF
4090 #define $ac_tr_func 1
4094 echo "$ac_t""no" 1>&6
4098 for ac_func in getpwuid
4100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4101 echo "configure:4102: checking for $ac_func" >&5
4102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4108 /* System header to define __stub macros and hopefully few prototypes,
4109 which can conflict with char $ac_func(); below. */
4111 /* Override any gcc2 internal prototype to avoid an error. */
4112 /* We use char because int might match the return type of a gcc2
4113 builtin and then its argument prototype would still apply. */
4118 /* The GNU C library defines this for functions which it implements
4119 to always fail with ENOSYS. Some functions are actually named
4120 something starting with __ and the normal name is an alias. */
4121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4129 if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4131 eval "ac_cv_func_$ac_func=yes"
4133 echo "configure: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4136 eval "ac_cv_func_$ac_func=no"
4141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4142 echo "$ac_t""yes" 1>&6
4143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4144 cat >> confdefs.h <<EOF
4145 #define $ac_tr_func 1
4149 echo "$ac_t""no" 1>&6
4155 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4156 echo "configure:4157: checking for getopt_long" >&5
4157 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure"
4162 #include "confdefs.h"
4163 /* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char getopt_long(); below. */
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4173 /* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */
4176 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4186 eval "ac_cv_func_getopt_long=yes"
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 eval "ac_cv_func_getopt_long=no"
4196 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4197 echo "$ac_t""yes" 1>&6
4198 cat >> confdefs.h <<\EOF
4199 #define HAVE_GETOPT_LONG 1
4203 echo "$ac_t""no" 1>&6
4204 # FreeBSD has a gnugetopt library for this:
4205 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4206 echo "configure:4207: checking for getopt_long in -lgnugetopt" >&5
4207 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4209 echo $ac_n "(cached) $ac_c" 1>&6
4211 ac_save_LIBS="$LIBS"
4212 LIBS="-lgnugetopt $LIBS"
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 /* Override any gcc2 internal prototype to avoid an error. */
4217 /* We use char because int might match the return type of a gcc2
4218 builtin and then its argument prototype would still apply. */
4225 if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4227 eval "ac_cv_lib_$ac_lib_var=yes"
4229 echo "configure: failed program was:" >&5
4230 cat conftest.$ac_ext >&5
4232 eval "ac_cv_lib_$ac_lib_var=no"
4235 LIBS="$ac_save_LIBS"
4238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4239 echo "$ac_t""yes" 1>&6
4240 cat >> confdefs.h <<\EOF
4241 #define HAVE_GETOPT_LONG 1
4243 LIB_VLC="${LIB_VLC} -lgnugetopt"
4245 echo "$ac_t""no" 1>&6
4252 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4253 echo "configure:4254: checking return type of signal handlers" >&5
4254 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4255 echo $ac_n "(cached) $ac_c" 1>&6
4257 cat > conftest.$ac_ext <<EOF
4258 #line 4259 "configure"
4259 #include "confdefs.h"
4260 #include <sys/types.h>
4266 extern "C" void (*signal (int, void (*)(int)))(int);
4268 void (*signal ()) ();
4275 if { (eval echo configure:4276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4277 ac_cv_type_signal=void
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4282 ac_cv_type_signal=int
4287 echo "$ac_t""$ac_cv_type_signal" 1>&6
4288 cat >> confdefs.h <<EOF
4289 #define RETSIGTYPE $ac_cv_type_signal
4293 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4294 echo "configure:4295: checking for dlopen in -ldl" >&5
4295 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4299 ac_save_LIBS="$LIBS"
4301 cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4304 /* Override any gcc2 internal prototype to avoid an error. */
4305 /* We use char because int might match the return type of a gcc2
4306 builtin and then its argument prototype would still apply. */
4313 if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4315 eval "ac_cv_lib_$ac_lib_var=yes"
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4320 eval "ac_cv_lib_$ac_lib_var=no"
4323 LIBS="$ac_save_LIBS"
4326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4327 echo "$ac_t""yes" 1>&6
4328 LIB_VLC="${LIB_VLC} -ldl"
4330 echo "$ac_t""no" 1>&6
4333 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4334 echo "configure:4335: checking for cos in -lm" >&5
4335 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 ac_save_LIBS="$LIBS"
4341 cat > conftest.$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4344 /* Override any gcc2 internal prototype to avoid an error. */
4345 /* We use char because int might match the return type of a gcc2
4346 builtin and then its argument prototype would still apply. */
4353 if { (eval echo configure:4354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4355 eval "ac_cv_lib_$ac_lib_var=yes"
4357 echo "configure: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4360 eval "ac_cv_lib_$ac_lib_var=no"
4363 LIBS="$ac_save_LIBS"
4366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4367 echo "$ac_t""yes" 1>&6
4368 LIB_IMDCT="${LIB_IMDCT} -lm"
4369 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4371 echo "$ac_t""no" 1>&6
4374 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4375 echo "configure:4376: checking for pow in -lm" >&5
4376 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6
4380 ac_save_LIBS="$LIBS"
4382 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4385 /* Override any gcc2 internal prototype to avoid an error. */
4386 /* We use char because int might match the return type of a gcc2
4387 builtin and then its argument prototype would still apply. */
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4396 eval "ac_cv_lib_$ac_lib_var=yes"
4398 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5
4401 eval "ac_cv_lib_$ac_lib_var=no"
4404 LIBS="$ac_save_LIBS"
4407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4408 echo "$ac_t""yes" 1>&6
4409 LIB_IMDCT="${LIB_IMDCT} -lm"
4410 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4411 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4412 LIB_CHROMA_I420_RGB="${LIB_CHROMA_I420_RGB} -lm"
4415 echo "$ac_t""no" 1>&6
4420 if test "x${THREAD_LIB}" = xerror; then
4421 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4422 echo "configure:4423: checking for pthread_attr_init in -lpthread" >&5
4423 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 ac_save_LIBS="$LIBS"
4428 LIBS="-lpthread $LIBS"
4429 cat > conftest.$ac_ext <<EOF
4430 #line 4431 "configure"
4431 #include "confdefs.h"
4432 /* Override any gcc2 internal prototype to avoid an error. */
4433 /* We use char because int might match the return type of a gcc2
4434 builtin and then its argument prototype would still apply. */
4435 char pthread_attr_init();
4441 if { (eval echo configure:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4443 eval "ac_cv_lib_$ac_lib_var=yes"
4445 echo "configure: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4448 eval "ac_cv_lib_$ac_lib_var=no"
4451 LIBS="$ac_save_LIBS"
4454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4455 echo "$ac_t""yes" 1>&6
4456 THREAD_LIB="-lpthread"
4458 echo "$ac_t""no" 1>&6
4462 if test "x${THREAD_LIB}" = xerror; then
4463 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4464 echo "configure:4465: checking for pthread_attr_init in -lpthreads" >&5
4465 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 ac_save_LIBS="$LIBS"
4470 LIBS="-lpthreads $LIBS"
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4474 /* Override any gcc2 internal prototype to avoid an error. */
4475 /* We use char because int might match the return type of a gcc2
4476 builtin and then its argument prototype would still apply. */
4477 char pthread_attr_init();
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4485 eval "ac_cv_lib_$ac_lib_var=yes"
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4490 eval "ac_cv_lib_$ac_lib_var=no"
4493 LIBS="$ac_save_LIBS"
4496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 THREAD_LIB="-lpthreads"
4500 echo "$ac_t""no" 1>&6
4504 if test "x${THREAD_LIB}" = xerror; then
4505 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4506 echo "configure:4507: checking for pthread_attr_init in -lc_r" >&5
4507 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4511 ac_save_LIBS="$LIBS"
4513 cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4516 /* Override any gcc2 internal prototype to avoid an error. */
4517 /* We use char because int might match the return type of a gcc2
4518 builtin and then its argument prototype would still apply. */
4519 char pthread_attr_init();
4525 if { (eval echo configure:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4527 eval "ac_cv_lib_$ac_lib_var=yes"
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4532 eval "ac_cv_lib_$ac_lib_var=no"
4535 LIBS="$ac_save_LIBS"
4538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4539 echo "$ac_t""yes" 1>&6
4542 echo "$ac_t""no" 1>&6
4546 if test "x${THREAD_LIB}" = xerror; then
4547 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4548 echo "configure:4549: checking for pthread_attr_init" >&5
4549 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 /* System header to define __stub macros and hopefully few prototypes,
4556 which can conflict with char pthread_attr_init(); below. */
4558 /* Override any gcc2 internal prototype to avoid an error. */
4559 /* We use char because int might match the return type of a gcc2
4560 builtin and then its argument prototype would still apply. */
4561 char pthread_attr_init();
4565 /* The GNU C library defines this for functions which it implements
4566 to always fail with ENOSYS. Some functions are actually named
4567 something starting with __ and the normal name is an alias. */
4568 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4571 pthread_attr_init();
4576 if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4578 eval "ac_cv_func_pthread_attr_init=yes"
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4583 eval "ac_cv_func_pthread_attr_init=no"
4588 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4589 echo "$ac_t""yes" 1>&6
4592 echo "$ac_t""no" 1>&6
4598 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4599 echo "configure:4600: checking for cthread_fork in -lthreads" >&5
4600 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4604 ac_save_LIBS="$LIBS"
4605 LIBS="-lthreads $LIBS"
4606 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 /* Override any gcc2 internal prototype to avoid an error. */
4610 /* We use char because int might match the return type of a gcc2
4611 builtin and then its argument prototype would still apply. */
4612 char cthread_fork();
4618 if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4620 eval "ac_cv_lib_$ac_lib_var=yes"
4622 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4625 eval "ac_cv_lib_$ac_lib_var=no"
4628 LIBS="$ac_save_LIBS"
4631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4633 THREAD_LIB="-lthreads"
4635 echo "$ac_t""no" 1>&6
4639 cat > conftest.$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4642 #include <pthread.h>
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 egrep "pthread_cond_t" >/dev/null 2>&1; then
4648 cat >> confdefs.h <<\EOF
4649 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4655 cat > conftest.$ac_ext <<EOF
4656 #line 4657 "configure"
4657 #include "confdefs.h"
4658 #include <strings.h>
4660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4661 egrep "strncasecmp" >/dev/null 2>&1; then
4664 cat >> confdefs.h <<\EOF
4665 #define STRNCASECMP_IN_STRINGS_H 1
4672 for ac_hdr in getopt.h strings.h
4674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4676 echo "configure:4677: checking for $ac_hdr" >&5
4677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4680 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4686 { (eval echo configure:4687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4688 if test -z "$ac_err"; then
4690 eval "ac_cv_header_$ac_safe=yes"
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4696 eval "ac_cv_header_$ac_safe=no"
4700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4701 echo "$ac_t""yes" 1>&6
4702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4703 cat >> confdefs.h <<EOF
4704 #define $ac_tr_hdr 1
4708 echo "$ac_t""no" 1>&6
4712 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4714 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4716 echo "configure:4717: checking for $ac_hdr" >&5
4717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4726 { (eval echo configure:4727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4728 if test -z "$ac_err"; then
4730 eval "ac_cv_header_$ac_safe=yes"
4733 echo "configure: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4736 eval "ac_cv_header_$ac_safe=no"
4740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4742 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4743 cat >> confdefs.h <<EOF
4744 #define $ac_tr_hdr 1
4748 echo "$ac_t""no" 1>&6
4752 for ac_hdr in dlfcn.h image.h
4754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4756 echo "configure:4757: checking for $ac_hdr" >&5
4757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4760 cat > conftest.$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4766 { (eval echo configure:4767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4768 if test -z "$ac_err"; then
4770 eval "ac_cv_header_$ac_safe=yes"
4773 echo "configure: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4776 eval "ac_cv_header_$ac_safe=no"
4780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4781 echo "$ac_t""yes" 1>&6
4782 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4783 cat >> confdefs.h <<EOF
4784 #define $ac_tr_hdr 1
4788 echo "$ac_t""no" 1>&6
4792 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4794 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4795 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4796 echo "configure:4797: checking for $ac_hdr" >&5
4797 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4800 cat > conftest.$ac_ext <<EOF
4801 #line 4802 "configure"
4802 #include "confdefs.h"
4805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4806 { (eval echo configure:4807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4808 if test -z "$ac_err"; then
4810 eval "ac_cv_header_$ac_safe=yes"
4813 echo "configure: failed program was:" >&5
4814 cat conftest.$ac_ext >&5
4816 eval "ac_cv_header_$ac_safe=no"
4820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4821 echo "$ac_t""yes" 1>&6
4822 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4823 cat >> confdefs.h <<EOF
4824 #define $ac_tr_hdr 1
4828 echo "$ac_t""no" 1>&6
4832 for ac_hdr in machine/param.h sys/shm.h
4834 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4835 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4836 echo "configure:4837: checking for $ac_hdr" >&5
4837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4846 { (eval echo configure:4847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4848 if test -z "$ac_err"; then
4850 eval "ac_cv_header_$ac_safe=yes"
4853 echo "configure: failed program was:" >&5
4854 cat conftest.$ac_ext >&5
4856 eval "ac_cv_header_$ac_safe=no"
4860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4861 echo "$ac_t""yes" 1>&6
4862 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4863 cat >> confdefs.h <<EOF
4864 #define $ac_tr_hdr 1
4868 echo "$ac_t""no" 1>&6
4873 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4874 echo "configure:4875: checking whether time.h and sys/time.h may both be included" >&5
4875 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 cat > conftest.$ac_ext <<EOF
4879 #line 4880 "configure"
4880 #include "confdefs.h"
4881 #include <sys/types.h>
4882 #include <sys/time.h>
4888 if { (eval echo configure:4889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4890 ac_cv_header_time=yes
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4895 ac_cv_header_time=no
4900 echo "$ac_t""$ac_cv_header_time" 1>&6
4901 if test $ac_cv_header_time = yes; then
4902 cat >> confdefs.h <<\EOF
4903 #define TIME_WITH_SYS_TIME 1
4909 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4911 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4912 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4913 echo "configure:4914: checking for $ac_hdr" >&5
4914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4915 echo $ac_n "(cached) $ac_c" 1>&6
4917 cat > conftest.$ac_ext <<EOF
4918 #line 4919 "configure"
4919 #include "confdefs.h"
4922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4923 { (eval echo configure:4924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4925 if test -z "$ac_err"; then
4927 eval "ac_cv_header_$ac_safe=yes"
4930 echo "configure: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4933 eval "ac_cv_header_$ac_safe=no"
4937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4938 echo "$ac_t""yes" 1>&6
4939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4940 cat >> confdefs.h <<EOF
4941 #define $ac_tr_hdr 1
4945 echo "$ac_t""no" 1>&6
4950 if test x$SYS != xmingw32
4952 if test x$x_includes = xNONE; then
4953 x_includes=/usr/X11R6/include
4955 if test x$x_libraries = xNONE; then
4956 x_libraries=/usr/X11R6/lib
4958 saved_CPPFLAGS=$CPPFLAGS
4959 CPPFLAGS="$CPPFLAGS -I$x_includes"
4960 for ac_hdr in X11/extensions/dpms.h
4962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4964 echo "configure:4965: checking for $ac_hdr" >&5
4965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4966 echo $ac_n "(cached) $ac_c" 1>&6
4968 cat > conftest.$ac_ext <<EOF
4969 #line 4970 "configure"
4970 #include "confdefs.h"
4973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4974 { (eval echo configure:4975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4976 if test -z "$ac_err"; then
4978 eval "ac_cv_header_$ac_safe=yes"
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4984 eval "ac_cv_header_$ac_safe=no"
4988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4989 echo "$ac_t""yes" 1>&6
4990 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4991 cat >> confdefs.h <<EOF
4992 #define $ac_tr_hdr 1
4995 cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
4998 #include <X11/extensions/dpms.h>
5000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5001 egrep "DPMSInfo" >/dev/null 2>&1; then
5004 cat >> confdefs.h <<\EOF
5005 #define DPMSINFO_IN_DPMS_H 1
5014 echo "$ac_t""no" 1>&6
5018 CPPFLAGS=$saved_CPPFLAGS
5021 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5022 echo "configure:5023: checking for ntohl in sys/param.h" >&5
5023 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5024 echo $ac_n "(cached) $ac_c" 1>&6
5026 CFLAGS="${save_CFLAGS} -Wall -Werror"
5027 cat > conftest.$ac_ext <<EOF
5028 #line 5029 "configure"
5029 #include "confdefs.h"
5030 #include <sys/param.h>
5032 void foo() { int meuh; ntohl(meuh); }
5035 if { (eval echo configure:5036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5037 ac_cv_c_ntohl_sys_param_h=yes
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5042 ac_cv_c_ntohl_sys_param_h=no
5047 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5048 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5049 cat >> confdefs.h <<\EOF
5050 #define NTOHL_IN_SYS_PARAM_H 1
5055 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5056 echo "configure:5057: checking if \$CC accepts -finline-limit" >&5
5057 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5060 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5069 if { (eval echo configure:5070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5071 ac_cv_c_inline_limit=yes
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5076 ac_cv_c_inline_limit=no
5081 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5082 if test x"$ac_cv_c_inline_limit" != x"no"; then
5083 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5086 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5087 echo "configure:5088: checking if \$CC accepts -Wall -Winline" >&5
5088 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 CFLAGS="${save_CFLAGS} -Wall -Winline"
5092 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5100 if { (eval echo configure:5101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5102 ac_cv_c_Wall_Winline=yes
5104 echo "configure: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5107 ac_cv_c_Wall_Winline=no
5112 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5113 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5114 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
5116 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5117 echo "configure:5118: checking if \$CC accepts -wall -winline" >&5
5118 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5119 echo $ac_n "(cached) $ac_c" 1>&6
5121 CFLAGS="${save_CFLAGS} -wall -winline"
5122 cat > conftest.$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5130 if { (eval echo configure:5131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5132 ac_cv_c_wall_winline=yes
5134 echo "configure: failed program was:" >&5
5135 cat conftest.$ac_ext >&5
5137 ac_cv_c_wall_winline=no
5142 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5143 if test x"$ac_cv_c_wall_winline" != x"no"; then
5144 save_CFLAGS="${save_CFLAGS} -wall -winline"
5148 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5149 echo "configure:5150: checking if \$CC accepts -pipe" >&5
5150 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5151 echo $ac_n "(cached) $ac_c" 1>&6
5153 CFLAGS="${save_CFLAGS} -pipe"
5154 cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5162 if { (eval echo configure:5163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5174 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5175 if test x"$ac_cv_c_pipe" != x"no"; then
5176 save_CFLAGS="${save_CFLAGS} -pipe"
5179 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5180 echo "configure:5181: checking if \$CC accepts -O3" >&5
5181 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5182 echo $ac_n "(cached) $ac_c" 1>&6
5184 CFLAGS="${save_CFLAGS} -O3"
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5193 if { (eval echo configure:5194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5197 echo "configure: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5205 echo "$ac_t""$ac_cv_c_o3" 1>&6
5206 if test x"$ac_cv_c_o3" != x"no"; then
5207 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5209 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5210 echo "configure:5211: checking if \$CC accepts -O2" >&5
5211 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5214 CFLAGS="${save_CFLAGS} -O2"
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5223 if { (eval echo configure:5224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5227 echo "configure: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5235 echo "$ac_t""$ac_cv_c_o2" 1>&6
5236 if test x"$ac_cv_c_o2" != x"no"; then
5237 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5239 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5240 echo "configure:5241: checking if \$CC accepts -O" >&5
5241 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 CFLAGS="${save_CFLAGS} -O"
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5253 if { (eval echo configure:5254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5265 echo "$ac_t""$ac_cv_c_o" 1>&6
5266 if test x"$ac_cv_c_o" != x"no"; then
5267 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5272 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5273 echo "configure:5274: checking if \$CC accepts -ffast-math" >&5
5274 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5277 CFLAGS="${save_CFLAGS} -ffast-math"
5278 cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5286 if { (eval echo configure:5287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5288 ac_cv_c_fast_math=yes
5290 echo "configure: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5293 ac_cv_c_fast_math=no
5298 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5299 if test x"$ac_cv_c_fast_math" != x"no"; then
5300 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5303 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5304 echo "configure:5305: checking if \$CC accepts -funroll-loops" >&5
5305 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5308 CFLAGS="${save_CFLAGS} -funroll-loops"
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5317 if { (eval echo configure:5318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5319 ac_cv_c_unroll_loops=yes
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5324 ac_cv_c_unroll_loops=no
5329 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5330 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5331 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5334 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5335 echo "configure:5336: checking if \$CC accepts -fomit-frame-pointer" >&5
5336 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5339 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5348 if { (eval echo configure:5349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5350 ac_cv_c_omit_frame_pointer=yes
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5355 ac_cv_c_omit_frame_pointer=no
5360 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5361 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5362 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5365 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5366 echo "configure:5367: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5367 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5370 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5371 cat > conftest.$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5379 if { (eval echo configure:5380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5383 echo "configure: failed program was:" >&5
5384 cat conftest.$ac_ext >&5
5391 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5392 if test x"$ac_cv_ld_darwin" != x"no"; then
5393 PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5396 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5397 echo "configure:5398: checking if \$CC accepts -shared" >&5
5398 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5399 echo $ac_n "(cached) $ac_c" 1>&6
5401 CFLAGS="${save_CFLAGS} -shared"
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5410 if { (eval echo configure:5411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5412 ac_cv_ld_plugins=yes
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5422 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5423 if test x"$ac_cv_ld_plugins" != x"no"; then
5424 PLDFLAGS="${PLDFLAGS} -shared"
5427 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5428 echo "configure:5429: checking __attribute__ ((aligned ())) support" >&5
5429 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5432 ac_cv_c_attribute_aligned=0
5433 CFLAGS="${save_CFLAGS} -Werror"
5434 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5440 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5443 if { (eval echo configure:5444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5445 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5447 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5454 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5455 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5456 cat >> confdefs.h <<EOF
5457 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5462 CFLAGS="${save_CFLAGS}"
5463 LDFLAGS="${save_LDFLAGS}"
5465 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5466 echo "configure:5467: checking for boolean_t in sys/types.h" >&5
5467 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5468 echo $ac_n "(cached) $ac_c" 1>&6
5470 cat > conftest.$ac_ext <<EOF
5471 #line 5472 "configure"
5472 #include "confdefs.h"
5473 #include <sys/types.h>
5478 if { (eval echo configure:5479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5480 ac_cv_c_boolean_t_sys_types_h=yes
5482 echo "configure: failed program was:" >&5
5483 cat conftest.$ac_ext >&5
5485 ac_cv_c_boolean_t_sys_types_h=no
5490 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5491 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5492 cat >> confdefs.h <<\EOF
5493 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5498 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5499 echo "configure:5500: checking for boolean_t in pthread.h" >&5
5500 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5501 echo $ac_n "(cached) $ac_c" 1>&6
5503 cat > conftest.$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5506 #include <pthread.h>
5511 if { (eval echo configure:5512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5513 ac_cv_c_boolean_t_pthread_h=yes
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5518 ac_cv_c_boolean_t_pthread_h=no
5523 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5524 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5525 cat >> confdefs.h <<\EOF
5526 #define BOOLEAN_T_IN_PTHREAD_H 1
5531 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5532 echo "configure:5533: checking for boolean_t in cthreads.h" >&5
5533 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5536 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5539 #include <cthreads.h>
5544 if { (eval echo configure:5545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5546 ac_cv_c_boolean_t_cthreads_h=yes
5548 echo "configure: failed program was:" >&5
5549 cat conftest.$ac_ext >&5
5551 ac_cv_c_boolean_t_cthreads_h=no
5556 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5557 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5558 cat >> confdefs.h <<\EOF
5559 #define BOOLEAN_T_IN_CTHREADS_H 1
5564 case x"${target_cpu}" in
5573 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"
5574 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort fx_scope"
5576 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5577 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5578 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5579 if test x$SYS != xmingw32; then
5580 SSE_MODULES="imdctsse downmixsse"
5582 ALTIVEC_MODULES="idctaltivec motionaltivec"
5584 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5585 echo "configure:5586: checking if \$CC groks MMX inline assembly" >&5
5586 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5589 cat > conftest.$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5594 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5597 if { (eval echo configure:5598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5599 ac_cv_mmx_inline=yes
5601 echo "configure: failed program was:" >&5
5602 cat conftest.$ac_ext >&5
5609 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5610 if test x"$ac_cv_mmx_inline" != x"no"; then
5611 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5614 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5615 echo "configure:5616: checking if \$CC groks MMX EXT inline assembly" >&5
5616 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5617 echo $ac_n "(cached) $ac_c" 1>&6
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5624 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5627 if { (eval echo configure:5628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5629 ac_cv_mmxext_inline=yes
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 ac_cv_mmxext_inline=no
5639 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5640 if test x"$ac_cv_mmxext_inline" != x"no"; then
5641 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5644 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5645 echo "configure:5646: checking if \$CC groks 3D Now! inline assembly" >&5
5646 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5654 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5657 if { (eval echo configure:5658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5659 ac_cv_3dnow_inline=yes
5661 echo "configure: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5664 ac_cv_3dnow_inline=no
5669 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5670 if test x"$ac_cv_3dnow_inline" != x"no"; then
5671 cat >> confdefs.h <<\EOF
5672 #define CAN_COMPILE_3DNOW 1
5675 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5678 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5679 echo "configure:5680: checking if \$CC groks SSE inline assembly" >&5
5680 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5683 cat > conftest.$ac_ext <<EOF
5684 #line 5685 "configure"
5685 #include "confdefs.h"
5688 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5691 if { (eval echo configure:5692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5693 ac_cv_sse_inline=yes
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5703 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5704 if test x"$ac_cv_sse_inline" != x"no"; then
5705 cat >> confdefs.h <<\EOF
5706 #define CAN_COMPILE_SSE 1
5709 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5712 # don't try to grok altivec with native mingw32 it doesn't work right now
5713 # we should be able to remove this test with future versions of mingw32
5714 if test x$SYS != xmingw32; then
5715 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5716 echo "configure:5717: checking if \$CC groks Altivec inline assembly" >&5
5717 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5720 cat > conftest.$ac_ext <<EOF
5721 #line 5722 "configure"
5722 #include "confdefs.h"
5725 asm volatile("vperm 0,1,2,3");
5728 if { (eval echo configure:5729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5730 ac_cv_altivec_inline=yes
5732 echo "configure: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5736 CFLAGS="$CFLAGS -Wa,-m7400"
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5742 asm volatile("vperm 0,1,2,3");
5745 if { (eval echo configure:5746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5747 ac_cv_altivec_inline="-Wa,-m7400"
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5752 ac_cv_altivec_inline=no
5761 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5762 if test x"$ac_cv_altivec_inline" != x"no"; then
5763 cat >> confdefs.h <<\EOF
5764 #define CAN_COMPILE_ALTIVEC 1
5767 if test x"$ac_cv_altivec_inline" != x"yes"; then
5768 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5769 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5770 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5772 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5775 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5776 echo "configure:5777: checking if \$CC groks Altivec C extensions" >&5
5777 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5781 CFLAGS="$CFLAGS -faltivec"
5783 cat > conftest.$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5788 vec_mtvscr((vector unsigned int)(0));
5791 if { (eval echo configure:5792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5793 ac_cv_c_altivec=-faltivec
5795 echo "configure: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5800 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5801 cat > conftest.$ac_ext <<EOF
5802 #line 5803 "configure"
5803 #include "confdefs.h"
5806 vec_mtvscr((vector unsigned int)(0));
5809 if { (eval echo configure:5810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5811 ac_cv_c_altivec="-fvec"
5813 echo "configure: failed program was:" >&5
5814 cat conftest.$ac_ext >&5
5826 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5827 if test x"$ac_cv_c_altivec" != x"no"; then
5828 cat >> confdefs.h <<\EOF
5829 #define CAN_COMPILE_C_ALTIVEC 1
5832 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5833 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5834 CFLAGS_MEMCPYALTIVEC="$CFLAGS_MEMCPYALTIVEC $ac_cv_c_altivec"
5835 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5836 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES} memcpyaltivec"
5839 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5840 echo "configure:5841: checking if linker needs -framework vecLib" >&5
5841 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5842 echo $ac_n "(cached) $ac_c" 1>&6
5844 save_LDFLAGS=$LDFLAGS
5845 LDFLAGS="$LDFLAGS -framework vecLib"
5846 cat > conftest.$ac_ext <<EOF
5847 #line 5848 "configure"
5848 #include "confdefs.h"
5854 if { (eval echo configure:5855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5856 ac_cv_ld_altivec=yes
5858 echo "configure: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5864 LDFLAGS=$save_LDFLAGS
5868 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5869 if test x"$ac_cv_ld_altivec" != x"no"; then
5870 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5871 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5872 LIB_MEMCPYALTIVEC="${LIB_MEMCPYALTIVEC} -framework vecLib"
5873 LIB_VLC="${LIB_VLC} -framework vecLib"
5878 # Check whether --with- or --without- was given.
5879 if test "${with_+set}" = set; then
5884 # Check whether --with- or --without- was given.
5885 if test "${with_+set}" = set; then
5891 # Check whether --with-tuning or --without-tuning was given.
5892 if test "${with_tuning+set}" = set; then
5893 withval="$with_tuning"
5897 if test "x$withval" != "x"; then
5900 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5902 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5906 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5909 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5912 # Check whether --enable-optimizations or --disable-optimizations was given.
5913 if test "${enable_optimizations+set}" = set; then
5914 enableval="$enable_optimizations"
5915 if test x$enableval = xno; then OPTIMS=0; fi
5921 # Check whether --enable-altivec or --disable-altivec was given.
5922 if test "${enable_altivec+set}" = set; then
5923 enableval="$enable_altivec"
5924 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
5925 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5927 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5928 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5933 # Check whether --enable-debug or --disable-debug was given.
5934 if test "${enable_debug+set}" = set; then
5935 enableval="$enable_debug"
5936 if test x$enableval = xyes; then DEBUG=1; fi
5940 # Check whether --enable-release or --disable-release was given.
5941 if test "${enable_release+set}" = set; then
5942 enableval="$enable_release"
5943 if test x$enableval = xyes; then RELEASE=1; fi
5945 VERSION="${VERSION}_`date +%Y-%m-%d`"
5950 # Check whether --with- or --without- was given.
5951 if test "${with_+set}" = set; then
5957 # Check whether --enable-dvd or --disable-dvd was given.
5958 if test "${enable_dvd+set}" = set; then
5959 enableval="$enable_dvd"
5963 if test "x$enableval" != "xno"
5965 # Check whether --with-dvdcss or --without-dvdcss was given.
5966 if test "${with_dvdcss+set}" = set; then
5967 withval="$with_dvdcss"
5971 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5972 if test "${with_dvdcss_tree+set}" = set; then
5973 withval="$with_dvdcss_tree"
5977 case "x$with_dvdcss" in
5979 if test "x$with_dvdcss_tree" = x
5981 for ac_hdr in dvdcss/dvdcss.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
6015 PLUGINS="${PLUGINS} dvd"
6016 LIB_DVD="${LIB_DVD} -ldvdcss"
6018 echo "$ac_t""no" 1>&6
6019 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
6020 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
6025 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
6026 echo "configure:6027: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
6027 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
6028 if test "x$real_dvdcss_tree" = x
6030 echo "$ac_t""no" 1>&6
6031 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6033 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6035 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6036 BUILTINS="${BUILTINS} dvd"
6037 LIB_DVD="${LIB_DVD} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6038 CFLAGS_DVD="${CFLAGS_DVD} -I${real_dvdcss_tree}/src"
6040 echo "$ac_t""no" 1>&6
6041 { 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; }
6046 PLUGINS="${PLUGINS} dvd"
6047 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6048 LIB_DVD="${LIB_DVD} -ldl"
6051 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6052 echo "configure:6053: checking for dvdcss headers in ${with_dvdcss}" >&5
6053 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6055 echo "$ac_t""yes" 1>&6
6056 PLUGINS="${PLUGINS} dvd"
6057 LIB_DVD="${LIB_DVD} -L${with_dvdcss}/lib -ldvd"
6058 CFLAGS_DVD="${CFLAGS_DVD} -I${with_dvdcss}/include"
6060 echo "$ac_t""no" 1>&6
6061 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6067 # Check whether --enable-dvdread or --disable-dvdread was given.
6068 if test "${enable_dvdread+set}" = set; then
6069 enableval="$enable_dvdread"
6073 if test "x$enableval" != "xno"
6075 # Check whether --with-dvdread or --without-dvdread was given.
6076 if test "${with_dvdread+set}" = set; then
6077 withval="$with_dvdread"
6081 case "x$with_dvdread" in
6083 for ac_hdr in dvdread/dvd_reader.h
6085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6087 echo "configure:6088: checking for $ac_hdr" >&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"
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
6113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6114 cat >> confdefs.h <<EOF
6115 #define $ac_tr_hdr 1
6117 PLUGINS="${PLUGINS} dvdread"
6118 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread"
6120 echo "$ac_t""no" 1>&6
6126 echo $ac_n "checking for dvdread headers in ${withval}""... $ac_c" 1>&6
6127 echo "configure:6128: checking for dvdread headers in ${withval}" >&5
6128 if test -f ${withval}/include/dvdread/dvd_reader.h
6130 echo "$ac_t""yes" 1>&6
6131 PLUGINS="${PLUGINS} dvdread"
6132 LIB_DVDREAD="${LIB_DVDREAD} -L${withval}/lib -ldvdread"
6133 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I${withval}/include"
6135 echo "$ac_t""no" 1>&6
6136 { echo "configure: error: Cannot find ${withval}/dvdread/dvd_reader.h" 1>&2; exit 1; }
6142 # Check whether --enable-vcd or --disable-vcd was given.
6143 if test "${enable_vcd+set}" = set; then
6144 enableval="$enable_vcd"
6149 if test x$enable_vcd != xno
6151 cat > conftest.$ac_ext <<EOF
6152 #line 6153 "configure"
6153 #include "confdefs.h"
6154 #include <linux/cdrom.h>
6156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6157 egrep "cdrom_msf0" >/dev/null 2>&1; then
6160 PLUGINS="${PLUGINS} vcd"
6166 if test "x${SYS}" = "xbsdi"
6168 PLUGINS="${PLUGINS} vcd"
6171 if test "x${SYS}" = "xdarwin"
6173 PLUGINS="${PLUGINS} vcd"
6174 LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation"
6178 # Check whether --enable-satellite or --disable-satellite was given.
6179 if test "${enable_satellite+set}" = set; then
6180 enableval="$enable_satellite"
6181 if test x$enable_satellite = xyes
6183 BUILTINS="${BUILTINS} satellite"
6184 cat >> confdefs.h <<\EOF
6185 #define HAVE_SATELLITE 1
6192 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6193 echo "configure:6194: checking for inet_pton" >&5
6194 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 /* System header to define __stub macros and hopefully few prototypes,
6201 which can conflict with char inet_pton(); below. */
6203 /* Override any gcc2 internal prototype to avoid an error. */
6204 /* We use char because int might match the return type of a gcc2
6205 builtin and then its argument prototype would still apply. */
6210 /* The GNU C library defines this for functions which it implements
6211 to always fail with ENOSYS. Some functions are actually named
6212 something starting with __ and the normal name is an alias. */
6213 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6221 if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6223 eval "ac_cv_func_inet_pton=yes"
6225 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6228 eval "ac_cv_func_inet_pton=no"
6233 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6234 echo "$ac_t""yes" 1>&6
6235 PLUGINS="${PLUGINS} ipv6"
6237 echo "$ac_t""no" 1>&6
6242 # Check whether --with- or --without- was given.
6243 if test "${with_+set}" = set; then
6249 # Check whether --enable-mad or --disable-mad was given.
6250 if test "${enable_mad+set}" = set; then
6251 enableval="$enable_mad"
6255 if test x$enable_mad = xyes
6257 PLUGINS="${PLUGINS} mad"
6258 LIB_MAD="${LIB_MAD} -lmad"
6259 # Check whether --with-mad or --without-mad was given.
6260 if test "${with_mad+set}" = set; then
6262 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6264 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6265 LIB_MAD="${LIB_MAD} -L$with_val/lib"
6270 save_LDFLAGS=$LDFLAGS
6271 CFLAGS="$CFLAGS $CFLAGS_MAD"
6272 LDFLAGS="$LDFLAGS $LIB_MAD"
6275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6277 echo "configure:6278: checking for $ac_hdr" >&5
6278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6279 echo $ac_n "(cached) $ac_c" 1>&6
6281 cat > conftest.$ac_ext <<EOF
6282 #line 6283 "configure"
6283 #include "confdefs.h"
6286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6287 { (eval echo configure:6288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6289 if test -z "$ac_err"; then
6291 eval "ac_cv_header_$ac_safe=yes"
6294 echo "configure: failed program was:" >&5
6295 cat conftest.$ac_ext >&5
6297 eval "ac_cv_header_$ac_safe=no"
6301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6302 echo "$ac_t""yes" 1>&6
6303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6304 cat >> confdefs.h <<EOF
6305 #define $ac_tr_hdr 1
6309 echo "$ac_t""no" 1>&6
6310 echo "Cannot find development headers for libmad..."
6316 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6317 echo "configure:6318: checking for mad_bit_init in -lmad" >&5
6318 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6320 echo $ac_n "(cached) $ac_c" 1>&6
6322 ac_save_LIBS="$LIBS"
6324 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure"
6326 #include "confdefs.h"
6327 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */
6330 char mad_bit_init();
6336 if { (eval echo configure:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6338 eval "ac_cv_lib_$ac_lib_var=yes"
6340 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5
6343 eval "ac_cv_lib_$ac_lib_var=no"
6346 LIBS="$ac_save_LIBS"
6349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6350 echo "$ac_t""yes" 1>&6
6351 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6352 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6353 cat >> confdefs.h <<EOF
6354 #define $ac_tr_lib 1
6360 echo "$ac_t""no" 1>&6
6361 echo "Cannot find libmad library..."
6367 LDFLAGS=$save_LDFLAGS
6370 if test x$SYS = xbeos
6372 PLUGINS="${PLUGINS} beos"
6376 # Check whether --enable-a52 or --disable-a52 was given.
6377 if test "${enable_a52+set}" = set; then
6378 enableval="$enable_a52"
6382 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6384 for ac_hdr in a52dec/a52.h
6386 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6388 echo "configure:6389: checking for $ac_hdr" >&5
6389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6390 echo $ac_n "(cached) $ac_c" 1>&6
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6398 { (eval echo configure:6399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6400 if test -z "$ac_err"; then
6402 eval "ac_cv_header_$ac_safe=yes"
6405 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6408 eval "ac_cv_header_$ac_safe=no"
6412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6413 echo "$ac_t""yes" 1>&6
6414 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6415 cat >> confdefs.h <<EOF
6416 #define $ac_tr_hdr 1
6419 BUILTINS="${BUILTINS} a52"
6420 LIB_A52="${LIB_A52} -la52 -lm"
6423 echo "$ac_t""no" 1>&6
6429 # Check whether --enable-vorbis or --disable-vorbis was given.
6430 if test "${enable_vorbis+set}" = set; then
6431 enableval="$enable_vorbis"
6435 if test "x$enableval" != "xno"
6437 for ac_hdr in ogg/ogg.h
6439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6441 echo "configure:6442: checking for $ac_hdr" >&5
6442 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6447 "configure"
6447 #include "confdefs.h"
6450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6451 { (eval echo configure:6452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6453 if test -z "$ac_err"; then
6455 eval "ac_cv_header_$ac_safe=yes"
6458 echo "configure: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6461 eval "ac_cv_header_$ac_safe=no"
6465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6466 echo "$ac_t""yes" 1>&6
6467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6468 cat >> confdefs.h <<EOF
6469 #define $ac_tr_hdr 1
6472 PLUGINS="${PLUGINS} vorbis"
6473 LIB_VORBIS="${LIB_VORBIS} -lvorbis"
6476 echo "$ac_t""no" 1>&6
6483 # Check whether --with- or --without- was given.
6484 if test "${with_+set}" = set; then
6490 # Check whether --enable-x11 or --disable-x11 was given.
6491 if test "${enable_x11+set}" = set; then
6492 enableval="$enable_x11"
6496 if test x$enable_x11 != xno &&
6497 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6498 if test x$x_includes = xNONE; then
6499 x_includes=/usr/X11R6/include
6501 if test x$x_libraries = xNONE; then
6502 x_libraries=/usr/X11R6/lib
6504 saved_CPPFLAGS=$CPPFLAGS
6505 CPPFLAGS="$CPPFLAGS -I$x_includes"
6506 for ac_hdr in X11/Xlib.h
6508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6510 echo "configure:6511: checking for $ac_hdr" >&5
6511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6512 echo $ac_n "(cached) $ac_c" 1>&6
6514 cat > conftest.$ac_ext <<EOF
6515 #line 6516 "configure"
6516 #include "confdefs.h"
6519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6520 { (eval echo configure:6521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6522 if test -z "$ac_err"; then
6524 eval "ac_cv_header_$ac_safe=yes"
6527 echo "configure: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6530 eval "ac_cv_header_$ac_safe=no"
6534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6535 echo "$ac_t""yes" 1>&6
6536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6537 cat >> confdefs.h <<EOF
6538 #define $ac_tr_hdr 1
6541 PLUGINS="${PLUGINS} x11"
6542 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6543 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6546 echo "$ac_t""no" 1>&6
6550 CPPFLAGS=$saved_CPPFLAGS
6553 # Check whether --enable-xvideo or --disable-xvideo was given.
6554 if test "${enable_xvideo+set}" = set; then
6555 enableval="$enable_xvideo"
6559 if test x$enable_xvideo != xno &&
6560 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6561 if test x$x_includes = xNONE; then
6562 x_includes=/usr/X11R6/include
6564 if test x$x_libraries = xNONE; then
6565 x_libraries=/usr/X11R6/lib
6567 saved_CPPFLAGS=$CPPFLAGS
6568 CPPFLAGS="$CPPFLAGS -I$x_includes"
6569 for ac_hdr in X11/extensions/Xv.h
6571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6573 echo "configure:6574: checking for $ac_hdr" >&5
6574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6577 cat > conftest.$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6583 { (eval echo configure:6584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6585 if test -z "$ac_err"; then
6587 eval "ac_cv_header_$ac_safe=yes"
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6593 eval "ac_cv_header_$ac_safe=no"
6597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6598 echo "$ac_t""yes" 1>&6
6599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6600 cat >> confdefs.h <<EOF
6601 #define $ac_tr_hdr 1
6604 saved_CFLAGS=$CFLAGS
6605 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6606 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6607 echo "configure:6608: checking for XvSetPortAttribute in -lXv_pic" >&5
6608 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6612 ac_save_LIBS="$LIBS"
6613 LIBS="-lXv_pic $LIBS"
6614 cat > conftest.$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 /* Override any gcc2 internal prototype to avoid an error. */
6618 /* We use char because int might match the return type of a gcc2
6619 builtin and then its argument prototype would still apply. */
6620 char XvSetPortAttribute();
6623 XvSetPortAttribute()
6626 if { (eval echo configure:6627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6628 eval "ac_cv_lib_$ac_lib_var=yes"
6630 echo "configure: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6633 eval "ac_cv_lib_$ac_lib_var=no"
6636 LIBS="$ac_save_LIBS"
6639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6640 echo "$ac_t""yes" 1>&6
6641 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6642 PLUGINS="${PLUGINS} xvideo"
6643 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6644 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6646 echo "$ac_t""no" 1>&6
6647 # We don't have Xv_pic, let's make xvideo.a as builtin
6648 BUILTINS="${BUILTINS} xvideo"
6649 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
6650 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6653 CFLAGS=$saved_CFLAGS
6655 CPPFLAGS=$saved_CPPFLAGS
6657 echo "$ac_t""no" 1>&6
6663 # Check whether --enable-sdl or --disable-sdl was given.
6664 if test "${enable_sdl+set}" = set; then
6665 enableval="$enable_sdl"
6669 if test "x$enable_sdl" != "xno"
6672 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6673 if test "${with_sdl_config_path+set}" = set; then
6674 withval="$with_sdl_config_path"
6675 if test "x$withval" != "xno"
6677 SDL_PATH=$withval:$PATH
6681 # Extract the first word of "sdl12-config", so it can be a program name with args.
6682 set dummy sdl12-config; ac_word=$2
6683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6684 echo "configure:6685: checking for $ac_word" >&5
6685 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6688 case "$SDL12_CONFIG" in
6690 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6693 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6697 ac_dummy="$SDL_PATH"
6698 for ac_dir in $ac_dummy; do
6699 test -z "$ac_dir" && ac_dir=.
6700 if test -f $ac_dir/$ac_word; then
6701 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6706 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6710 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6711 if test -n "$SDL12_CONFIG"; then
6712 echo "$ac_t""$SDL12_CONFIG" 1>&6
6714 echo "$ac_t""no" 1>&6
6717 SDL_CONFIG=${SDL12_CONFIG}
6718 SDL_HEADER="SDL12/SDL.h"
6719 if test x${SDL_CONFIG} = xno
6721 # Extract the first word of "sdl11-config", so it can be a program name with args.
6722 set dummy sdl11-config; ac_word=$2
6723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6724 echo "configure:6725: checking for $ac_word" >&5
6725 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6726 echo $ac_n "(cached) $ac_c" 1>&6
6728 case "$SDL11_CONFIG" in
6730 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6733 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6737 ac_dummy="$SDL_PATH"
6738 for ac_dir in $ac_dummy; do
6739 test -z "$ac_dir" && ac_dir=.
6740 if test -f $ac_dir/$ac_word; then
6741 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6746 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6750 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6751 if test -n "$SDL11_CONFIG"; then
6752 echo "$ac_t""$SDL11_CONFIG" 1>&6
6754 echo "$ac_t""no" 1>&6
6757 SDL_CONFIG=${SDL11_CONFIG}
6758 SDL_HEADER="SDL11/SDL.h"
6760 if test x${SDL_CONFIG} = xno
6762 # Extract the first word of "sdl-config", so it can be a program name with args.
6763 set dummy sdl-config; ac_word=$2
6764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6765 echo "configure:6766: checking for $ac_word" >&5
6766 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6767 echo $ac_n "(cached) $ac_c" 1>&6
6769 case "$SDL_CONFIG" in
6771 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6774 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6778 ac_dummy="$SDL_PATH"
6779 for ac_dir in $ac_dummy; do
6780 test -z "$ac_dir" && ac_dir=.
6781 if test -f $ac_dir/$ac_word; then
6782 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6787 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6791 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6792 if test -n "$SDL_CONFIG"; then
6793 echo "$ac_t""$SDL_CONFIG" 1>&6
6795 echo "$ac_t""no" 1>&6
6798 SDL_HEADER="SDL/SDL.h"
6800 if test x${SDL_CONFIG} != xno
6802 PLUGINS="${PLUGINS} sdl"
6803 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
6804 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6805 save_CPPFLAGS=$CPPFLAGS
6806 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
6807 for ac_hdr in ${SDL_HEADER}
6809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6811 echo "configure:6812: checking for $ac_hdr" >&5
6812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6815 cat > conftest.$ac_ext <<EOF
6816 #line 6817 "configure"
6817 #include "confdefs.h"
6820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6821 { (eval echo configure:6822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6823 if test -z "$ac_err"; then
6825 eval "ac_cv_header_$ac_safe=yes"
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6831 eval "ac_cv_header_$ac_safe=no"
6835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6836 echo "$ac_t""yes" 1>&6
6837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6838 cat >> confdefs.h <<EOF
6839 #define $ac_tr_hdr 1
6841 cat >> confdefs.h <<EOF
6842 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6846 echo "$ac_t""no" 1>&6
6847 { echo "configure: error: The development package for SDL is not installed.
6848 Please install it and try again. Alternatively you can also configure with
6849 --disable-sdl." 1>&2; exit 1; }
6854 CPPFLAGS=$save_CPPFLAGS
6855 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6857 { echo "configure: error: The development package for SDL is not installed.
6858 Please install it and try again. Alternatively you can also configure with
6859 --disable-sdl." 1>&2; exit 1; }
6861 elif test "x$enable_sdl" = "xyes"
6863 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6864 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6869 # Check whether --enable-directx or --disable-directx was given.
6870 if test "${enable_directx+set}" = set; then
6871 enableval="$enable_directx"
6875 if test "x$enableval" != "xno"
6877 if test x$SYS = xmingw32
6879 # Check whether --with-directx or --without-directx was given.
6880 if test "${with_directx+set}" = set; then
6881 withval="$with_directx"
6885 if test "x$with_directx" = "x"
6887 for ac_hdr in ddraw.h
6889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6891 echo "configure:6892: checking for $ac_hdr" >&5
6892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6893 echo $ac_n "(cached) $ac_c" 1>&6
6895 cat > conftest.$ac_ext <<EOF
6896 #line 6897 "configure"
6897 #include "confdefs.h"
6900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6901 { (eval echo configure:6902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6903 if test -z "$ac_err"; then
6905 eval "ac_cv_header_$ac_safe=yes"
6908 echo "configure: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6911 eval "ac_cv_header_$ac_safe=no"
6915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6916 echo "$ac_t""yes" 1>&6
6917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6918 cat >> confdefs.h <<EOF
6919 #define $ac_tr_hdr 1
6921 PLUGINS="${PLUGINS} directx"
6922 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
6924 echo "$ac_t""no" 1>&6
6929 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
6930 echo "configure:6931: checking for directX headers in ${withval}" >&5
6931 if test -f ${withval}/ddraw.h
6933 PLUGINS="${PLUGINS} directx"
6934 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
6935 INCLUDE="${INCLUDE} -I${withval}"
6936 echo "$ac_t""yes" 1>&6
6938 echo "$ac_t""no" 1>&6
6939 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
6945 # Check whether --enable-fb or --disable-fb was given.
6946 if test "${enable_fb+set}" = set; then
6947 enableval="$enable_fb"
6951 if test x$enable_fb != xno
6953 for ac_hdr in linux/fb.h
6955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6957 echo "configure:6958: checking for $ac_hdr" >&5
6958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6959 echo $ac_n "(cached) $ac_c" 1>&6
6961 cat > conftest.$ac_ext <<EOF
6962 #line 6963 "configure"
6963 #include "confdefs.h"
6966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6967 { (eval echo configure:6968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6969 if test -z "$ac_err"; then
6971 eval "ac_cv_header_$ac_safe=yes"
6974 echo "configure: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6977 eval "ac_cv_header_$ac_safe=no"
6981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6982 echo "$ac_t""yes" 1>&6
6983 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6984 cat >> confdefs.h <<EOF
6985 #define $ac_tr_hdr 1
6988 PLUGINS="${PLUGINS} fb"
6991 echo "$ac_t""no" 1>&6
6997 # Check whether --enable-mga or --disable-mga was given.
6998 if test "${enable_mga+set}" = set; then
6999 enableval="$enable_mga"
7000 if test x$enable_mga = xyes
7002 PLUGINS="${PLUGINS} mga xmga"
7007 # Check whether --enable-ggi or --disable-ggi was given.
7008 if test "${enable_ggi+set}" = set; then
7009 enableval="$enable_ggi"
7013 if test x$enable_ggi = xyes
7015 PLUGINS="${PLUGINS} ggi"
7016 LIB_GGI="${LIB_GGI} -lggi"
7017 # Check whether --with-ggi or --without-ggi was given.
7018 if test "${with_ggi+set}" = set; then
7020 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7022 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
7023 LIB_GGI="${LIB_GGI} -L$with_val/lib"
7029 # Check whether --enable-glide or --disable-glide was given.
7030 if test "${enable_glide+set}" = set; then
7031 enableval="$enable_glide"
7035 if test x$enable_glide = xyes
7037 PLUGINS="${PLUGINS} glide"
7038 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7039 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7040 # Check whether --with-glide or --without-glide was given.
7041 if test "${with_glide+set}" = set; then
7042 withval="$with_glide"
7043 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7045 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
7046 LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
7052 # Check whether --enable-aa or --disable-aa was given.
7053 if test "${enable_aa+set}" = set; then
7054 enableval="$enable_aa"
7058 if test x$enable_aa = xyes
7060 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7061 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7062 echo "configure:7063: checking for aalib.h" >&5
7063 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7064 echo $ac_n "(cached) $ac_c" 1>&6
7066 cat > conftest.$ac_ext <<EOF
7067 #line 7068 "configure"
7068 #include "confdefs.h"
7071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7072 { (eval echo configure:7073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7074 if test -z "$ac_err"; then
7076 eval "ac_cv_header_$ac_safe=yes"
7079 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7082 eval "ac_cv_header_$ac_safe=no"
7086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7087 echo "$ac_t""yes" 1>&6
7090 echo "$ac_t""no" 1>&6
7094 if test x$have_aa = xtrue
7096 PLUGINS="${PLUGINS} aa"
7097 LIB_AA="${LIB_AA} -laa"
7102 # Check whether --with- or --without- was given.
7103 if test "${with_+set}" = set; then
7109 # Check whether --enable-dsp or --disable-dsp was given.
7110 if test "${enable_dsp+set}" = set; then
7111 enableval="$enable_dsp"
7116 if test x$enable_dsp != xno &&
7117 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7119 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7121 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7123 echo "configure:7124: checking for $ac_hdr" >&5
7124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7125 echo $ac_n "(cached) $ac_c" 1>&6
7127 cat > conftest.$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7133 { (eval echo configure:7134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7135 if test -z "$ac_err"; then
7137 eval "ac_cv_header_$ac_safe=yes"
7140 echo "configure: failed program was:" >&5
7141 cat conftest.$ac_ext >&5
7143 eval "ac_cv_header_$ac_safe=no"
7147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7148 echo "$ac_t""yes" 1>&6
7149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7150 cat >> confdefs.h <<EOF
7151 #define $ac_tr_hdr 1
7154 PLUGINS="${PLUGINS} dsp"
7155 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7156 echo "configure:7157: checking for main in -lossaudio" >&5
7157 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7159 echo $ac_n "(cached) $ac_c" 1>&6
7161 ac_save_LIBS="$LIBS"
7162 LIBS="-lossaudio $LIBS"
7163 cat > conftest.$ac_ext <<EOF
7164 #line 7165 "configure"
7165 #include "confdefs.h"
7171 if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7173 eval "ac_cv_lib_$ac_lib_var=yes"
7175 echo "configure: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7178 eval "ac_cv_lib_$ac_lib_var=no"
7181 LIBS="$ac_save_LIBS"
7184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7185 echo "$ac_t""yes" 1>&6
7186 LIB_DSP="${LIB_DSP} -lossaudio"
7188 echo "$ac_t""no" 1>&6
7193 echo "$ac_t""no" 1>&6
7199 # Check whether --enable-esd or --disable-esd was given.
7200 if test "${enable_esd+set}" = set; then
7201 enableval="$enable_esd"
7202 if test x$enable_esd = xyes
7204 # Extract the first word of "esd-config", so it can be a program name with args.
7205 set dummy esd-config; ac_word=$2
7206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7207 echo "configure:7208: checking for $ac_word" >&5
7208 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7209 echo $ac_n "(cached) $ac_c" 1>&6
7211 case "$ESD_CONFIG" in
7213 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7216 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7221 for ac_dir in $ac_dummy; do
7222 test -z "$ac_dir" && ac_dir=.
7223 if test -f $ac_dir/$ac_word; then
7224 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7229 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7233 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7234 if test -n "$ESD_CONFIG"; then
7235 echo "$ac_t""$ESD_CONFIG" 1>&6
7237 echo "$ac_t""no" 1>&6
7240 if test x${ESD_CONFIG} != xno
7242 PLUGINS="${PLUGINS} esd"
7243 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
7244 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
7250 # Check whether --enable-arts or --disable-arts was given.
7251 if test "${enable_arts+set}" = set; then
7252 enableval="$enable_arts"
7253 if test x$enable_arts = xyes
7255 # Extract the first word of "artsc-config", so it can be a program name with args.
7256 set dummy artsc-config; ac_word=$2
7257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7258 echo "configure:7259: checking for $ac_word" >&5
7259 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7260 echo $ac_n "(cached) $ac_c" 1>&6
7262 case "$ARTS_CONFIG" in
7264 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7267 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7272 for ac_dir in $ac_dummy; do
7273 test -z "$ac_dir" && ac_dir=.
7274 if test -f $ac_dir/$ac_word; then
7275 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7280 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7284 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7285 if test -n "$ARTS_CONFIG"; then
7286 echo "$ac_t""$ARTS_CONFIG" 1>&6
7288 echo "$ac_t""no" 1>&6
7291 if test x${ARTS_CONFIG} != xno
7293 PLUGINS="${PLUGINS} arts"
7294 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7295 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7301 # Check whether --enable-alsa or --disable-alsa was given.
7302 if test "${enable_alsa+set}" = set; then
7303 enableval="$enable_alsa"
7304 if test x$enable_alsa = xyes
7306 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7307 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7308 echo "configure:7309: checking for alsa/asoundlib.h" >&5
7309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7310 echo $ac_n "(cached) $ac_c" 1>&6
7312 cat > conftest.$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7315 #include <alsa/asoundlib.h>
7317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7318 { (eval echo configure:7319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7320 if test -z "$ac_err"; then
7322 eval "ac_cv_header_$ac_safe=yes"
7325 echo "configure: failed program was:" >&5
7326 cat conftest.$ac_ext >&5
7328 eval "ac_cv_header_$ac_safe=no"
7332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7333 echo "$ac_t""yes" 1>&6
7334 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7335 echo "configure:7336: checking for main in -lasound" >&5
7336 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7338 echo $ac_n "(cached) $ac_c" 1>&6
7340 ac_save_LIBS="$LIBS"
7341 LIBS="-lasound $LIBS"
7342 cat > conftest.$ac_ext <<EOF
7343 #line 7344 "configure"
7344 #include "confdefs.h"
7350 if { (eval echo configure:7351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7352 eval "ac_cv_lib_$ac_lib_var=yes"
7354 echo "configure: failed program was:" >&5
7355 cat conftest.$ac_ext >&5
7357 eval "ac_cv_lib_$ac_lib_var=no"
7360 LIBS="$ac_save_LIBS"
7363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7364 echo "$ac_t""yes" 1>&6
7367 echo "$ac_t""no" 1>&6
7372 echo "$ac_t""no" 1>&6
7376 if test x$have_alsa = xtrue
7378 PLUGINS="${PLUGINS} alsa"
7379 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7385 # Check whether --enable-waveout or --disable-waveout was given.
7386 if test "${enable_waveout+set}" = set; then
7387 enableval="$enable_waveout"
7391 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7393 PLUGINS="${PLUGINS} waveout"
7394 LIB_WAVEOUT="-lwinmm"
7398 # Check whether --with- or --without- was given.
7399 if test "${with_+set}" = set; then
7405 # Check whether --enable-gtk or --disable-gtk was given.
7406 if test "${enable_gtk+set}" = set; then
7407 enableval="$enable_gtk"
7411 if test x$enable_gtk != xno
7414 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7415 if test "${with_gtk_config_path+set}" = set; then
7416 withval="$with_gtk_config_path"
7417 if test "x$withval" != "xno"
7419 GTK_PATH=$withval:$PATH
7423 # look for gtk-config
7424 # Extract the first word of "gtk12-config", so it can be a program name with args.
7425 set dummy gtk12-config; ac_word=$2
7426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7427 echo "configure:7428: checking for $ac_word" >&5
7428 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7429 echo $ac_n "(cached) $ac_c" 1>&6
7431 case "$GTK12_CONFIG" in
7433 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7436 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7440 ac_dummy="$GTK_PATH"
7441 for ac_dir in $ac_dummy; do
7442 test -z "$ac_dir" && ac_dir=.
7443 if test -f $ac_dir/$ac_word; then
7444 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7449 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7453 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7454 if test -n "$GTK12_CONFIG"; then
7455 echo "$ac_t""$GTK12_CONFIG" 1>&6
7457 echo "$ac_t""no" 1>&6
7460 GTK_CONFIG=${GTK12_CONFIG}
7461 if test x${GTK_CONFIG} = xno
7463 # Extract the first word of "gtk-config", so it can be a program name with args.
7464 set dummy gtk-config; ac_word=$2
7465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7466 echo "configure:7467: checking for $ac_word" >&5
7467 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7470 case "$GTK_CONFIG" in
7472 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7475 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7479 ac_dummy="$GTK_PATH"
7480 for ac_dir in $ac_dummy; do
7481 test -z "$ac_dir" && ac_dir=.
7482 if test -f $ac_dir/$ac_word; then
7483 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7488 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7492 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7493 if test -n "$GTK_CONFIG"; then
7494 echo "$ac_t""$GTK_CONFIG" 1>&6
7496 echo "$ac_t""no" 1>&6
7500 if test x${GTK_CONFIG} != xno
7502 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7504 { 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; }
7506 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7507 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7508 # now look for the gtk.h header
7509 saved_CPPFLAGS=$CPPFLAGS
7510 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7511 ac_cv_gtk_headers=yes
7512 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7514 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7515 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7516 echo "configure:7517: checking for $ac_hdr" >&5
7517 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7518 echo $ac_n "(cached) $ac_c" 1>&6
7520 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure"
7522 #include "confdefs.h"
7525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7526 { (eval echo configure:7527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7528 if test -z "$ac_err"; then
7530 eval "ac_cv_header_$ac_safe=yes"
7533 echo "configure: failed program was:" >&5
7534 cat conftest.$ac_ext >&5
7536 eval "ac_cv_header_$ac_safe=no"
7540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7541 echo "$ac_t""yes" 1>&6
7542 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7543 cat >> confdefs.h <<EOF
7544 #define $ac_tr_hdr 1
7548 echo "$ac_t""no" 1>&6
7549 ac_cv_gtk_headers=no
7550 echo "Cannot find gtk development headers."
7555 if test "x$ac_cv_gtk_headers" = xyes
7557 PLUGINS="${PLUGINS} gtk"
7558 ALIASES="${ALIASES} gvlc"
7560 CPPFLAGS=$saved_CPPFLAGS
7564 # Check whether --enable-gnome or --disable-gnome was given.
7565 if test "${enable_gnome+set}" = set; then
7566 enableval="$enable_gnome"
7567 if test x$enable_gnome = xyes; then
7568 # look for gnome-config
7569 # Extract the first word of "gnome-config", so it can be a program name with args.
7570 set dummy gnome-config; ac_word=$2
7571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7572 echo "configure:7573: checking for $ac_word" >&5
7573 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7574 echo $ac_n "(cached) $ac_c" 1>&6
7576 case "$GNOME_CONFIG" in
7578 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7581 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7586 for ac_dir in $ac_dummy; do
7587 test -z "$ac_dir" && ac_dir=.
7588 if test -f $ac_dir/$ac_word; then
7589 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7594 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7598 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7599 if test -n "$GNOME_CONFIG"; then
7600 echo "$ac_t""$GNOME_CONFIG" 1>&6
7602 echo "$ac_t""no" 1>&6
7605 if test -x ${GNOME_CONFIG}
7607 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7608 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7610 # now look for the gnome.h header
7611 saved_CPPFLAGS=$CPPFLAGS
7612 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7613 for ac_hdr in gnome.h
7615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7617 echo "configure:7618: checking for $ac_hdr" >&5
7618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7619 echo $ac_n "(cached) $ac_c" 1>&6
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7627 { (eval echo configure:7628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7629 if test -z "$ac_err"; then
7631 eval "ac_cv_header_$ac_safe=yes"
7634 echo "configure: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7637 eval "ac_cv_header_$ac_safe=no"
7641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7642 echo "$ac_t""yes" 1>&6
7643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7644 cat >> confdefs.h <<EOF
7645 #define $ac_tr_hdr 1
7648 PLUGINS="${PLUGINS} gnome"
7649 ALIASES="${ALIASES} gnome-vlc"
7652 echo "$ac_t""no" 1>&6
7653 { echo "configure: error: Can't find gnome headers. Please install the gnome
7654 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7660 CPPFLAGS=$saved_CPPFLAGS
7665 # Check whether --enable-qt or --disable-qt was given.
7666 if test "${enable_qt+set}" = set; then
7667 enableval="$enable_qt"
7668 if test x$enable_qt = xyes; then
7669 PLUGINS="${PLUGINS} qt"
7670 ALIASES="${ALIASES} qvlc"
7671 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7672 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7673 if test -x ${QTDIR}/bin/moc
7675 MOC=${QTDIR}/bin/moc
7683 # Check whether --enable-kde or --disable-kde was given.
7684 if test "${enable_kde+set}" = set; then
7685 enableval="$enable_kde"
7686 if test x$enable_kde = xyes; then
7687 PLUGINS="${PLUGINS} kde"
7688 ALIASES="${ALIASES} kvlc"
7689 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7690 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7691 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7692 if test -x ${QTDIR}/bin/moc
7694 MOC=${QTDIR}/bin/moc
7702 # Check whether --enable-macosx or --disable-macosx was given.
7703 if test "${enable_macosx+set}" = set; then
7704 enableval="$enable_macosx"
7705 if test x$enable_macosx = xyes
7707 BUILTINS="${BUILTINS} macosx"
7708 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7709 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7710 LIB_COMMON="${LIB_COMMON} -ObjC"
7713 for ac_hdr in Cocoa/Cocoa.h
7715 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7717 echo "configure:7718: checking for $ac_hdr" >&5
7718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7719 echo $ac_n "(cached) $ac_c" 1>&6
7721 cat > conftest.$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7727 { (eval echo configure:7728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7729 if test -z "$ac_err"; then
7731 eval "ac_cv_header_$ac_safe=yes"
7734 echo "configure: failed program was:" >&5
7735 cat conftest.$ac_ext >&5
7737 eval "ac_cv_header_$ac_safe=no"
7741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7742 echo "$ac_t""yes" 1>&6
7743 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7744 cat >> confdefs.h <<EOF
7745 #define $ac_tr_hdr 1
7747 BUILTINS="${BUILTINS} macosx"
7748 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7749 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7750 LIB_COMMON="${LIB_COMMON} -ObjC"
7753 echo "$ac_t""no" 1>&6
7760 # Check whether --enable-qnx or --disable-qnx was given.
7761 if test "${enable_qnx+set}" = set; then
7762 enableval="$enable_qnx"
7766 if test x$enable_qnx != xno
7770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7772 echo "configure:7773: checking for $ac_hdr" >&5
7773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7776 cat > conftest.$ac_ext <<EOF
7777 #line 7778 "configure"
7778 #include "confdefs.h"
7781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7782 { (eval echo configure:7783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7784 if test -z "$ac_err"; then
7786 eval "ac_cv_header_$ac_safe=yes"
7789 echo "configure: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7792 eval "ac_cv_header_$ac_safe=no"
7796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7797 echo "$ac_t""yes" 1>&6
7798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7799 cat >> confdefs.h <<EOF
7800 #define $ac_tr_hdr 1
7803 PLUGINS="${PLUGINS} qnx"
7804 LIB_QNX="${LIB_QNX} -lasound -lph"
7807 echo "$ac_t""no" 1>&6
7813 # Check whether --enable-win32 or --disable-win32 was given.
7814 if test "${enable_win32+set}" = set; then
7815 enableval="$enable_win32"
7816 if test "x$enableval" != "xno"
7818 PLUGINS="${PLUGINS} win32"
7823 # Check whether --enable-ncurses or --disable-ncurses was given.
7824 if test "${enable_ncurses+set}" = set; then
7825 enableval="$enable_ncurses"
7826 if test x$enable_ncurses = xyes; then
7827 PLUGINS="${PLUGINS} ncurses"
7828 LIB_NCURSES="${LIB_NCURSES} -lncurses"
7833 # Check whether --enable-lirc or --disable-lirc was given.
7834 if test "${enable_lirc+set}" = set; then
7835 enableval="$enable_lirc"
7839 if test x$enable_lirc = xyes
7841 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7842 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7843 echo "configure:7844: checking for lirc/lirc_client.h" >&5
7844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7845 echo $ac_n "(cached) $ac_c" 1>&6
7847 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7850 #include <lirc/lirc_client.h>
7852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7853 { (eval echo configure:7854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7855 if test -z "$ac_err"; then
7857 eval "ac_cv_header_$ac_safe=yes"
7860 echo "configure: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7863 eval "ac_cv_header_$ac_safe=no"
7867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7868 echo "$ac_t""yes" 1>&6
7869 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
7870 echo "configure:7871: checking for lirc_init in -llirc_client" >&5
7871 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
7872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7873 echo $ac_n "(cached) $ac_c" 1>&6
7875 ac_save_LIBS="$LIBS"
7876 LIBS="-llirc_client $LIBS"
7877 cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure"
7879 #include "confdefs.h"
7880 /* Override any gcc2 internal prototype to avoid an error. */
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7889 if { (eval echo configure:7890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7891 eval "ac_cv_lib_$ac_lib_var=yes"
7893 echo "configure: failed program was:" >&5
7894 cat conftest.$ac_ext >&5
7896 eval "ac_cv_lib_$ac_lib_var=no"
7899 LIBS="$ac_save_LIBS"
7902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7903 echo "$ac_t""yes" 1>&6
7906 echo "$ac_t""no" 1>&6
7911 echo "$ac_t""no" 1>&6
7915 if test x$have_lirc = xtrue
7917 PLUGINS="${PLUGINS} lirc"
7918 LIB_LIRC="${LIB_LIRC} -llirc_client"
7924 # Check whether --with- or --without- was given.
7925 if test "${with_+set}" = set; then
7931 # Check whether --with-words or --without-words was given.
7932 if test "${with_words+set}" = set; then
7933 withval="$with_words"
7939 ac_cv_c_bigendian=yes
7942 ac_cv_c_bigendian=no
7945 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
7946 echo "configure:7947: checking whether the byte order is big-endian" >&5
7947 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7948 echo $ac_n "(cached) $ac_c" 1>&6
7950 ac_cv_c_bigendian=unknown
7951 cat >conftest.c <<EOF
7952 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
7953 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
7954 void _a(void) { char*s = (char*)am; s = (char *)ai; }
7955 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
7956 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
7957 void _e(void) { char*s = (char*)em; s = (char*)ei; }
7958 int main(void) { _a(); _e(); return 0; }
7961 if test -f conftest.c
7963 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
7964 && test -f conftest.o
7966 if test "`strings conftest.o | grep BIGenDianSyS`"
7968 ac_cv_c_bigendian=yes
7970 if test "`strings conftest.o | grep LiTTleEnDian`"
7972 ac_cv_c_bigendian=no
7979 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7980 if test x$ac_cv_c_bigendian = xunknown
7982 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
7986 if test $ac_cv_c_bigendian = yes
7988 cat >> confdefs.h <<\EOF
7989 #define WORDS_BIGENDIAN 1
7995 # Check whether --with-dll-path or --without-dll-path was given.
7996 if test "${with_dll_path+set}" = set; then
7997 withval="$with_dll_path"
7998 if test "x$withval" != "xno"
8006 # Check whether --enable-gprof or --disable-gprof was given.
8007 if test "${enable_gprof+set}" = set; then
8008 enableval="$enable_gprof"
8009 if test x$enableval = xyes; then GPROF=1; fi
8014 # Check whether --enable-cprof or --disable-cprof was given.
8015 if test "${enable_cprof+set}" = set; then
8016 enableval="$enable_cprof"
8017 if test x$enableval = xyes;
8019 LIB_COMMON="${LIB_COMMON} -lcprof"
8026 # Check whether --enable-pth or --disable-pth was given.
8027 if test "${enable_pth+set}" = set; then
8028 enableval="$enable_pth"
8029 if test x$enableval = xyes; then
8030 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8031 echo "configure:8032: checking for pth_init in -lpth" >&5
8032 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8034 echo $ac_n "(cached) $ac_c" 1>&6
8036 ac_save_LIBS="$LIBS"
8038 cat > conftest.$ac_ext <<EOF
8039 #line 8040 "configure"
8040 #include "confdefs.h"
8041 /* Override any gcc2 internal prototype to avoid an error. */
8042 /* We use char because int might match the return type of a gcc2
8043 builtin and then its argument prototype would still apply. */
8050 if { (eval echo configure:8051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8052 eval "ac_cv_lib_$ac_lib_var=yes"
8054 echo "configure: failed program was:" >&5
8055 cat conftest.$ac_ext >&5
8057 eval "ac_cv_lib_$ac_lib_var=no"
8060 LIBS="$ac_save_LIBS"
8063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8064 echo "$ac_t""yes" 1>&6
8065 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8066 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8067 cat >> confdefs.h <<EOF
8068 #define $ac_tr_lib 1
8074 echo "$ac_t""no" 1>&6
8077 cat > conftest.$ac_ext <<EOF
8078 #line 8079 "configure"
8079 #include "confdefs.h"
8082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8083 egrep "pth_init" >/dev/null 2>&1; then
8086 cat >> confdefs.h <<\EOF
8087 #define PTH_INIT_IN_PTH_H 1
8099 # Check whether --enable-st or --disable-st was given.
8100 if test "${enable_st+set}" = set; then
8101 enableval="$enable_st"
8102 if test x$enableval = xyes; then
8103 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8104 echo "configure:8105: checking for st_init in -lst" >&5
8105 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8107 echo $ac_n "(cached) $ac_c" 1>&6
8109 ac_save_LIBS="$LIBS"
8111 cat > conftest.$ac_ext <<EOF
8112 #line 8113 "configure"
8113 #include "confdefs.h"
8114 /* Override any gcc2 internal prototype to avoid an error. */
8115 /* We use char because int might match the return type of a gcc2
8116 builtin and then its argument prototype would still apply. */
8123 if { (eval echo configure:8124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8125 eval "ac_cv_lib_$ac_lib_var=yes"
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8130 eval "ac_cv_lib_$ac_lib_var=no"
8133 LIBS="$ac_save_LIBS"
8136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8137 echo "$ac_t""yes" 1>&6
8138 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8139 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8140 cat >> confdefs.h <<EOF
8141 #define $ac_tr_lib 1
8147 echo "$ac_t""no" 1>&6
8150 cat > conftest.$ac_ext <<EOF
8151 #line 8152 "configure"
8152 #include "confdefs.h"
8155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8156 egrep "st_init" >/dev/null 2>&1; then
8159 cat >> confdefs.h <<\EOF
8160 #define ST_INIT_IN_ST_H 1
8172 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
8174 # Check whether --enable-plugins or --disable-plugins was given.
8175 if test "${enable_plugins+set}" = set; then
8176 enableval="$enable_plugins"
8177 if test x$enable_plugins = xno
8179 BUILTINS="${BUILTINS} ${PLUGINS}"
8185 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8187 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8189 BUILTINS="${BUILTINS} ${PLUGINS}"
8193 cat >> confdefs.h <<EOF
8194 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN\n"
8197 cat >> confdefs.h <<EOF
8198 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8202 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8203 cat >> confdefs.h <<EOF
8204 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8207 cat >> confdefs.h <<EOF
8208 #define MODULE_SYMBOL $VLC_SYMBOL
8212 DATA_PATH="${ac_tool_prefix}/share/videolan"
8214 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8311 cat > confcache <<\EOF
8312 # This file is a shell script that caches the results of configure
8313 # tests run on this system so they can be shared between configure
8314 # scripts and configure runs. It is not useful on other systems.
8315 # If it contains results you don't want to keep, you may remove or edit it.
8317 # By default, configure uses ./config.cache as the cache file,
8318 # creating it if it does not exist already. You can give configure
8319 # the --cache-file=FILE option to use a different cache file; that is
8320 # what configure does when it calls configure scripts in
8321 # subdirectories, so they share the cache.
8322 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8323 # config.status only pays attention to the cache file if you give it the
8324 # --recheck option to rerun configure.
8327 # The following way of writing the cache mishandles newlines in values,
8328 # but we know of no workaround that is simple, portable, and efficient.
8329 # So, don't put newlines in cache variables' values.
8330 # Ultrix sh set writes to stderr and can't be redirected directly,
8331 # and sets the high bit in the cache file unless we assign to the vars.
8333 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8335 # `set' does not quote correctly, so add quotes (double-quote substitution
8336 # turns \\\\ into \\, and sed turns \\ into \).
8338 -e "s/'/'\\\\''/g" \
8339 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8342 # `set' quotes correctly as required by POSIX, so do not add quotes.
8343 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8346 if cmp -s $cache_file confcache; then
8349 if test -w $cache_file; then
8350 echo "updating cache $cache_file"
8351 cat confcache > $cache_file
8353 echo "not updating unwritable cache $cache_file"
8358 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8361 # Let make expand exec_prefix.
8362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8364 # Any assignment to VPATH causes Sun make to only execute
8365 # the first set of double-colon rules, so remove it if not needed.
8366 # If there is a colon in the path, we need to keep it.
8367 if test "x$srcdir" = x.; then
8368 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8371 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8373 DEFS=-DHAVE_CONFIG_H
8375 # Without the "./", some shells look in PATH for config.status.
8376 : ${CONFIG_STATUS=./config.status}
8378 echo creating $CONFIG_STATUS
8379 rm -f $CONFIG_STATUS
8380 cat > $CONFIG_STATUS <<EOF
8382 # Generated automatically by configure.
8383 # Run this file to recreate the current configuration.
8384 # This directory was configured as follows,
8385 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8387 # $0 $ac_configure_args
8389 # Compiler output produced by configure, useful for debugging
8390 # configure, is in ./config.log if it exists.
8392 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8395 case "\$ac_option" in
8396 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8397 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8398 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8399 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8400 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8402 -help | --help | --hel | --he | --h)
8403 echo "\$ac_cs_usage"; exit 0 ;;
8404 *) echo "\$ac_cs_usage"; exit 1 ;;
8408 ac_given_srcdir=$srcdir
8409 ac_given_INSTALL="$INSTALL"
8411 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8413 cat >> $CONFIG_STATUS <<EOF
8415 # Protect against being on the right side of a sed subst in config.status.
8416 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8417 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8421 s%@CFLAGS@%$CFLAGS%g
8422 s%@CPPFLAGS@%$CPPFLAGS%g
8423 s%@CXXFLAGS@%$CXXFLAGS%g
8424 s%@FFLAGS@%$FFLAGS%g
8426 s%@LDFLAGS@%$LDFLAGS%g
8428 s%@exec_prefix@%$exec_prefix%g
8429 s%@prefix@%$prefix%g
8430 s%@program_transform_name@%$program_transform_name%g
8431 s%@bindir@%$bindir%g
8432 s%@sbindir@%$sbindir%g
8433 s%@libexecdir@%$libexecdir%g
8434 s%@datadir@%$datadir%g
8435 s%@sysconfdir@%$sysconfdir%g
8436 s%@sharedstatedir@%$sharedstatedir%g
8437 s%@localstatedir@%$localstatedir%g
8438 s%@libdir@%$libdir%g
8439 s%@includedir@%$includedir%g
8440 s%@oldincludedir@%$oldincludedir%g
8441 s%@infodir@%$infodir%g
8442 s%@mandir@%$mandir%g
8444 s%@host_alias@%$host_alias%g
8445 s%@host_cpu@%$host_cpu%g
8446 s%@host_vendor@%$host_vendor%g
8447 s%@host_os@%$host_os%g
8448 s%@target@%$target%g
8449 s%@target_alias@%$target_alias%g
8450 s%@target_cpu@%$target_cpu%g
8451 s%@target_vendor@%$target_vendor%g
8452 s%@target_os@%$target_os%g
8454 s%@build_alias@%$build_alias%g
8455 s%@build_cpu@%$build_cpu%g
8456 s%@build_vendor@%$build_vendor%g
8457 s%@build_os@%$build_os%g
8458 s%@SET_MAKE@%$SET_MAKE%g
8461 s%@RANLIB@%$RANLIB%g
8463 s%@ALLOCA@%$ALLOCA%g
8464 s%@GLIBC21@%$GLIBC21%g
8465 s%@LIBICONV@%$LIBICONV%g
8466 s%@USE_NLS@%$USE_NLS%g
8467 s%@MSGFMT@%$MSGFMT%g
8468 s%@GMSGFMT@%$GMSGFMT%g
8469 s%@XGETTEXT@%$XGETTEXT%g
8470 s%@INTLBISON@%$INTLBISON%g
8471 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8472 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8473 s%@CATALOGS@%$CATALOGS%g
8474 s%@CATOBJEXT@%$CATOBJEXT%g
8475 s%@GMOFILES@%$GMOFILES%g
8476 s%@INTLLIBS@%$INTLLIBS%g
8477 s%@INTLOBJS@%$INTLOBJS%g
8478 s%@POFILES@%$POFILES%g
8480 s%@DATADIRNAME@%$DATADIRNAME%g
8481 s%@INSTOBJEXT@%$INSTOBJEXT%g
8482 s%@GENCAT@%$GENCAT%g
8483 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8484 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8485 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8486 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8487 s%@INSTALL_DATA@%$INSTALL_DATA%g
8488 s%@WINDRES@%$WINDRES%g
8489 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8490 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8491 s%@SDL_CONFIG@%$SDL_CONFIG%g
8492 s%@ESD_CONFIG@%$ESD_CONFIG%g
8493 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8494 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8495 s%@GTK_CONFIG@%$GTK_CONFIG%g
8496 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8497 s%@DATA_PATH@%$DATA_PATH%g
8498 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8501 s%@PLUGINS@%$PLUGINS%g
8502 s%@BUILTINS@%$BUILTINS%g
8503 s%@ALIASES@%$ALIASES%g
8504 s%@INCLUDE@%$INCLUDE%g
8509 s%@OPTIMS@%$OPTIMS%g
8510 s%@TUNING@%$TUNING%g
8511 s%@RELEASE@%$RELEASE%g
8513 s%@DLL_PATH@%$DLL_PATH%g
8514 s%@PACKAGE@%$PACKAGE%g
8515 s%@VERSION@%$VERSION%g
8516 s%@PLDFLAGS@%$PLDFLAGS%g
8517 s%@LIB_COMMON@%$LIB_COMMON%g
8518 s%@LIB_VLC@%$LIB_VLC%g
8519 s%@LIB_A52@%$LIB_A52%g
8520 s%@LIB_AA@%$LIB_AA%g
8521 s%@LIB_ALSA@%$LIB_ALSA%g
8522 s%@LIB_ARTS@%$LIB_ARTS%g
8523 s%@LIB_BEOS@%$LIB_BEOS%g
8524 s%@LIB_CHROMA_I420_RGB@%$LIB_CHROMA_I420_RGB%g
8525 s%@LIB_DARWIN@%$LIB_DARWIN%g
8526 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8527 s%@LIB_DSP@%$LIB_DSP%g
8528 s%@LIB_DVD@%$LIB_DVD%g
8529 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8530 s%@LIB_ESD@%$LIB_ESD%g
8531 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8532 s%@LIB_GGI@%$LIB_GGI%g
8533 s%@LIB_GLIDE@%$LIB_GLIDE%g
8534 s%@LIB_GNOME@%$LIB_GNOME%g
8535 s%@LIB_GTK@%$LIB_GTK%g
8536 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8537 s%@LIB_IMDCT@%$LIB_IMDCT%g
8538 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8539 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8540 s%@LIB_IPV4@%$LIB_IPV4%g
8541 s%@LIB_IPV6@%$LIB_IPV6%g
8542 s%@LIB_KDE@%$LIB_KDE%g
8543 s%@LIB_LIRC@%$LIB_LIRC%g
8544 s%@LIB_MACOSX@%$LIB_MACOSX%g
8545 s%@LIB_MAD@%$LIB_MAD%g
8546 s%@LIB_MEMCPYALTIVEC@%$LIB_MEMCPYALTIVEC%g
8547 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8548 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8549 s%@LIB_NCURSES@%$LIB_NCURSES%g
8550 s%@LIB_QNX@%$LIB_QNX%g
8551 s%@LIB_QT@%$LIB_QT%g
8552 s%@LIB_RC@%$LIB_RC%g
8553 s%@LIB_SDL@%$LIB_SDL%g
8554 s%@LIB_VCD@%$LIB_VCD%g
8555 s%@LIB_VORBIS@%$LIB_VORBIS%g
8556 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8557 s%@LIB_WIN32@%$LIB_WIN32%g
8558 s%@LIB_X11@%$LIB_X11%g
8559 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8560 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8561 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8562 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8563 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8564 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8565 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8566 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8567 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8568 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8569 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8570 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8571 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8572 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8573 s%@CFLAGS_MEMCPYALTIVEC@%$CFLAGS_MEMCPYALTIVEC%g
8574 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8575 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8576 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8577 s%@CFLAGS_QT@%$CFLAGS_QT%g
8578 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8579 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8580 s%@CFLAGS_X11@%$CFLAGS_X11%g
8581 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8582 s%@NEED_GETOPT@%$NEED_GETOPT%g
8587 cat >> $CONFIG_STATUS <<\EOF
8589 # Split the substitutions into bite-sized pieces for seds with
8590 # small command number limits, like on Digital OSF/1 and HP-UX.
8591 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8592 ac_file=1 # Number of current file.
8593 ac_beg=1 # First line for current file.
8594 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8597 while $ac_more_lines; do
8598 if test $ac_beg -gt 1; then
8599 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8601 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8603 if test ! -s conftest.s$ac_file; then
8605 rm -f conftest.s$ac_file
8607 if test -z "$ac_sed_cmds"; then
8608 ac_sed_cmds="sed -f conftest.s$ac_file"
8610 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8612 ac_file=`expr $ac_file + 1`
8614 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8617 if test -z "$ac_sed_cmds"; then
8622 cat >> $CONFIG_STATUS <<EOF
8624 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8626 cat >> $CONFIG_STATUS <<\EOF
8627 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8628 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8630 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8631 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8632 *) ac_file_in="${ac_file}.in" ;;
8635 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8637 # Remove last slash and all that follows it. Not all systems have dirname.
8638 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8639 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8640 # The file is in a subdirectory.
8641 test ! -d "$ac_dir" && mkdir "$ac_dir"
8642 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8643 # A "../" for each directory in $ac_dir_suffix.
8644 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8646 ac_dir_suffix= ac_dots=
8649 case "$ac_given_srcdir" in
8651 if test -z "$ac_dots"; then top_srcdir=.
8652 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8653 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8655 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8656 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8659 case "$ac_given_INSTALL" in
8660 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8661 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8664 echo creating "$ac_file"
8666 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8668 *Makefile*) ac_comsub="1i\\
8669 # $configure_input" ;;
8673 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8675 s%@configure_input@%$configure_input%g
8676 s%@srcdir@%$srcdir%g
8677 s%@top_srcdir@%$top_srcdir%g
8678 s%@INSTALL@%$INSTALL%g
8679 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8683 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8684 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8686 # ac_d sets the value in "#define NAME VALUE" lines.
8687 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8688 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8691 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8692 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8693 ac_uB='\([ ]\)%\1#\2define\3'
8696 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8697 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8698 ac_eB='$%\1#\2define\3'
8702 if test "${CONFIG_HEADERS+set}" != set; then
8704 cat >> $CONFIG_STATUS <<EOF
8705 CONFIG_HEADERS="include/defs.h"
8707 cat >> $CONFIG_STATUS <<\EOF
8709 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8710 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8712 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8713 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8714 *) ac_file_in="${ac_file}.in" ;;
8717 echo creating $ac_file
8719 rm -f conftest.frag conftest.in conftest.out
8720 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8721 cat $ac_file_inputs > conftest.in
8725 # Transform confdefs.h into a sed script conftest.vals that substitutes
8726 # the proper values into config.h.in to produce config.h. And first:
8727 # Protect against being on the right side of a sed subst in config.status.
8728 # Protect against being in an unquoted here document in config.status.
8730 cat > conftest.hdr <<\EOF
8733 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8737 sed -n -f conftest.hdr confdefs.h > conftest.vals
8740 # This sed command replaces #undef with comments. This is necessary, for
8741 # example, in the case of _POSIX_SOURCE, which is predefined and required
8742 # on some systems where configure will not decide to define it.
8743 cat >> conftest.vals <<\EOF
8744 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8747 # Break up conftest.vals because some shells have a limit on
8748 # the size of here documents, and old seds have small limits too.
8753 ac_lines=`grep -c . conftest.vals`
8754 # grep -c gives empty output for an empty file on some AIX systems.
8755 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8756 # Write a limited-size here document to conftest.frag.
8757 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8758 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8760 sed -f conftest.frag conftest.in > conftest.out
8762 mv conftest.out conftest.in
8764 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8766 mv conftest.tail conftest.vals
8770 cat >> $CONFIG_STATUS <<\EOF
8771 rm -f conftest.frag conftest.h
8772 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8773 cat conftest.in >> conftest.h
8775 if cmp -s $ac_file conftest.h 2>/dev/null; then
8776 echo "$ac_file is unchanged"
8779 # Remove last slash and all that follows it. Not all systems have dirname.
8780 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8781 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8782 # The file is in a subdirectory.
8783 test ! -d "$ac_dir" && mkdir "$ac_dir"
8786 mv conftest.h $ac_file
8791 cat >> $CONFIG_STATUS <<EOF
8795 cat >> $CONFIG_STATUS <<\EOF
8796 for ac_file in $CONFIG_FILES; do
8797 # Support "outfile[:infile[:infile...]]"
8799 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8801 # PO directories have a Makefile.in generated from Makefile.in.in.
8802 case "$ac_file" in */Makefile.in)
8803 # Adjust a relative srcdir.
8804 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8805 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8806 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8807 # In autoconf-2.13 it is called $ac_given_srcdir.
8808 # In autoconf-2.50 it is called $srcdir.
8809 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8810 case "$ac_given_srcdir" in
8811 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8812 /*) top_srcdir="$ac_given_srcdir" ;;
8813 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8815 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8816 rm -f "$ac_dir/POTFILES"
8817 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8818 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8819 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8820 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8828 chmod +x $CONFIG_STATUS
8829 rm -fr confdefs* $ac_clean_files
8830 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8835 --------------------
8836 vlc version : ${VERSION}
8838 architecture : ${ARCH}
8839 optimizations : ${OPTIMS}
8841 debug mode : ${DEBUG}
8842 release : ${RELEASE}
8843 cprof/gprof support : ${CPROF}/${GPROF}
8844 need builtin getopt : ${NEED_GETOPT}
8845 built-in modules :${BUILTINS}
8846 plug-in modules :${PLUGINS}
8847 vlc aliases :${ALIASES}
8849 You may now tune Makefile.opts at your convenience, for instance to choose
8850 which modules get compiled as plugins.
8852 To build vlc and its plugins, type \`$VLC_MAKE'.