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 --enable-dvdread dvdread input module (default disabled)"
44 --with-dvdread=PATH libdvdread headers and libraries"
46 --enable-vcd VCD support for Linux and MacOS X (default enabled)"
48 --enable-satellite satellite card support (default disabled)"
52 --enable-mad libmad module (default disabled)"
54 --with-mad=PATH path to libmad"
56 --enable-a52 AC3 support with liba52 (default enabled)"
58 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
62 --enable-x11 X11 support (default enabled)"
64 --enable-xvideo XVideo support (default enabled)"
66 --enable-sdl SDL support (default enabled)"
68 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
70 --enable-directx Win32 DirectX support (default enabled on Win32)"
72 --with-directx=PATH Win32 DirectX headers and libraries"
74 --enable-fb Linux framebuffer support (default enabled on Linux)"
76 --enable-mga Linux kernel Matrox support (default disabled)"
78 --enable-ggi GGI support (default disabled)"
80 --with-ggi=PATH path to libggi"
82 --enable-glide Glide (3dfx) support (default disabled)"
84 --with-glide=PATH path to libglide"
86 --enable-aa aalib output (default disabled)"
90 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
92 --enable-esd Esound library support (default disabled)"
94 --enable-arts aRts sound server (default disabled)"
96 --enable-alsa ALSA sound support for Linux (default disabled)"
98 --enable-waveout Win32 waveOut module (default enabled on Win32)"
102 --enable-gtk Gtk+ support (default enabled)"
104 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
106 --enable-gnome Gnome interface support (default disabled)"
108 --enable-qt Qt interface support (default disabled)"
110 --enable-kde KDE interface support (default disabled)"
112 --enable-macosx MacOS X support (default enabled on MacOS X)"
114 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
116 --enable-win32 Win32 interface support (default disabled)"
118 --enable-ncurses ncurses interface support (default disabled)"
120 --enable-lirc lirc support (default disabled)"
124 --with-words=endianness set endianness (big or little)"
126 --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)"
128 --enable-gprof gprof profiling (default disabled)"
130 --enable-cprof cprof profiling (default disabled)"
132 --enable-pth GNU Pth support (default disabled)"
134 --enable-st State Threads (default disabled)"
136 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
138 # Initialize some variables set by options.
139 # The variables have the same names as the options, with
140 # dashes changed to underlines.
142 cache_file=./config.cache
151 program_transform_name=s,x,x,
159 bindir='${exec_prefix}/bin'
160 sbindir='${exec_prefix}/sbin'
161 libexecdir='${exec_prefix}/libexec'
162 datadir='${prefix}/share'
163 sysconfdir='${prefix}/etc'
164 sharedstatedir='${prefix}/com'
165 localstatedir='${prefix}/var'
166 libdir='${exec_prefix}/lib'
167 includedir='${prefix}/include'
168 oldincludedir='/usr/include'
169 infodir='${prefix}/info'
170 mandir='${prefix}/man'
172 # Initialize some other variables.
175 SHELL=${CONFIG_SHELL-/bin/sh}
176 # Maximum number of lines to put in a shell here document.
183 # If the previous option needs an argument, assign it.
184 if test -n "$ac_prev"; then
185 eval "$ac_prev=\$ac_option"
191 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
195 # Accept the important Cygnus configure options, so we can diagnose typos.
199 -bindir | --bindir | --bindi | --bind | --bin | --bi)
201 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
202 bindir="$ac_optarg" ;;
204 -build | --build | --buil | --bui | --bu)
206 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
207 build="$ac_optarg" ;;
209 -cache-file | --cache-file | --cache-fil | --cache-fi \
210 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
211 ac_prev=cache_file ;;
212 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
213 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
214 cache_file="$ac_optarg" ;;
216 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
218 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
220 datadir="$ac_optarg" ;;
222 -disable-* | --disable-*)
223 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
224 # Reject names that are not valid shell variable names.
225 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
226 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
228 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
229 eval "enable_${ac_feature}=no" ;;
231 -enable-* | --enable-*)
232 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
233 # Reject names that are not valid shell variable names.
234 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
235 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
237 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
242 eval "enable_${ac_feature}='$ac_optarg'" ;;
244 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
245 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
246 | --exec | --exe | --ex)
247 ac_prev=exec_prefix ;;
248 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
249 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
250 | --exec=* | --exe=* | --ex=*)
251 exec_prefix="$ac_optarg" ;;
253 -gas | --gas | --ga | --g)
254 # Obsolete; use --with-gas.
257 -help | --help | --hel | --he)
258 # Omit some internal or obsolete options to make the list less imposing.
259 # This message is too long to be a string in the A/UX 3.1 sh.
261 Usage: configure [options] [host]
262 Options: [defaults in brackets after descriptions]
264 --cache-file=FILE cache test results in FILE
265 --help print this message
266 --no-create do not create output files
267 --quiet, --silent do not print \`checking...' messages
268 --version print the version of autoconf that created configure
269 Directory and file names:
270 --prefix=PREFIX install architecture-independent files in PREFIX
272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
274 --bindir=DIR user executables in DIR [EPREFIX/bin]
275 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
276 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
277 --datadir=DIR read-only architecture-independent data in DIR
279 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
280 --sharedstatedir=DIR modifiable architecture-independent data in DIR
282 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
283 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
284 --includedir=DIR C header files in DIR [PREFIX/include]
285 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
286 --infodir=DIR info documentation in DIR [PREFIX/info]
287 --mandir=DIR man documentation in DIR [PREFIX/man]
288 --srcdir=DIR find the sources in DIR [configure dir or ..]
289 --program-prefix=PREFIX prepend PREFIX to installed program names
290 --program-suffix=SUFFIX append SUFFIX to installed program names
291 --program-transform-name=PROGRAM
292 run sed PROGRAM on installed program names
296 --build=BUILD configure for building on BUILD [BUILD=HOST]
297 --host=HOST configure for HOST [guessed]
298 --target=TARGET configure for TARGET [TARGET=HOST]
299 Features and packages:
300 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
302 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
303 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
304 --x-includes=DIR X include files are in DIR
305 --x-libraries=DIR X library files are in DIR
307 if test -n "$ac_help"; then
308 echo "--enable and --with options recognized:$ac_help"
312 -host | --host | --hos | --ho)
314 -host=* | --host=* | --hos=* | --ho=*)
317 -includedir | --includedir | --includedi | --included | --include \
318 | --includ | --inclu | --incl | --inc)
319 ac_prev=includedir ;;
320 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
321 | --includ=* | --inclu=* | --incl=* | --inc=*)
322 includedir="$ac_optarg" ;;
324 -infodir | --infodir | --infodi | --infod | --info | --inf)
326 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
327 infodir="$ac_optarg" ;;
329 -libdir | --libdir | --libdi | --libd)
331 -libdir=* | --libdir=* | --libdi=* | --libd=*)
332 libdir="$ac_optarg" ;;
334 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
335 | --libexe | --libex | --libe)
336 ac_prev=libexecdir ;;
337 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
338 | --libexe=* | --libex=* | --libe=*)
339 libexecdir="$ac_optarg" ;;
341 -localstatedir | --localstatedir | --localstatedi | --localstated \
342 | --localstate | --localstat | --localsta | --localst \
343 | --locals | --local | --loca | --loc | --lo)
344 ac_prev=localstatedir ;;
345 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
346 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
347 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
348 localstatedir="$ac_optarg" ;;
350 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
352 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
353 mandir="$ac_optarg" ;;
356 # Obsolete; use --without-fp.
359 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
363 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
364 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
367 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
368 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
369 | --oldin | --oldi | --old | --ol | --o)
370 ac_prev=oldincludedir ;;
371 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
372 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
373 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
374 oldincludedir="$ac_optarg" ;;
376 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
378 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
379 prefix="$ac_optarg" ;;
381 -program-prefix | --program-prefix | --program-prefi | --program-pref \
382 | --program-pre | --program-pr | --program-p)
383 ac_prev=program_prefix ;;
384 -program-prefix=* | --program-prefix=* | --program-prefi=* \
385 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
386 program_prefix="$ac_optarg" ;;
388 -program-suffix | --program-suffix | --program-suffi | --program-suff \
389 | --program-suf | --program-su | --program-s)
390 ac_prev=program_suffix ;;
391 -program-suffix=* | --program-suffix=* | --program-suffi=* \
392 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
393 program_suffix="$ac_optarg" ;;
395 -program-transform-name | --program-transform-name \
396 | --program-transform-nam | --program-transform-na \
397 | --program-transform-n | --program-transform- \
398 | --program-transform | --program-transfor \
399 | --program-transfo | --program-transf \
400 | --program-trans | --program-tran \
401 | --progr-tra | --program-tr | --program-t)
402 ac_prev=program_transform_name ;;
403 -program-transform-name=* | --program-transform-name=* \
404 | --program-transform-nam=* | --program-transform-na=* \
405 | --program-transform-n=* | --program-transform-=* \
406 | --program-transform=* | --program-transfor=* \
407 | --program-transfo=* | --program-transf=* \
408 | --program-trans=* | --program-tran=* \
409 | --progr-tra=* | --program-tr=* | --program-t=*)
410 program_transform_name="$ac_optarg" ;;
412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
413 | -silent | --silent | --silen | --sile | --sil)
416 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
418 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
420 sbindir="$ac_optarg" ;;
422 -sharedstatedir | --sharedstatedir | --sharedstatedi \
423 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
424 | --sharedst | --shareds | --shared | --share | --shar \
426 ac_prev=sharedstatedir ;;
427 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
428 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
429 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
431 sharedstatedir="$ac_optarg" ;;
433 -site | --site | --sit)
435 -site=* | --site=* | --sit=*)
438 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
440 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
441 srcdir="$ac_optarg" ;;
443 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
444 | --syscon | --sysco | --sysc | --sys | --sy)
445 ac_prev=sysconfdir ;;
446 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
447 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
448 sysconfdir="$ac_optarg" ;;
450 -target | --target | --targe | --targ | --tar | --ta | --t)
452 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
453 target="$ac_optarg" ;;
455 -v | -verbose | --verbose | --verbos | --verbo | --verb)
458 -version | --version | --versio | --versi | --vers)
459 echo "configure generated by autoconf version 2.13"
463 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
464 # Reject names that are not valid shell variable names.
465 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
466 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
468 ac_package=`echo $ac_package| sed 's/-/_/g'`
473 eval "with_${ac_package}='$ac_optarg'" ;;
475 -without-* | --without-*)
476 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
477 # Reject names that are not valid shell variable names.
478 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
479 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
481 ac_package=`echo $ac_package| sed 's/-/_/g'`
482 eval "with_${ac_package}=no" ;;
485 # Obsolete; use --with-x.
488 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
489 | --x-incl | --x-inc | --x-in | --x-i)
490 ac_prev=x_includes ;;
491 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
492 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
493 x_includes="$ac_optarg" ;;
495 -x-libraries | --x-libraries | --x-librarie | --x-librari \
496 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
497 ac_prev=x_libraries ;;
498 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
499 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
500 x_libraries="$ac_optarg" ;;
502 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
506 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
507 echo "configure: warning: $ac_option: invalid host type" 1>&2
509 if test "x$nonopt" != xNONE; then
510 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
518 if test -n "$ac_prev"; then
519 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
522 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
524 # File descriptor usage:
527 # 2 errors and warnings
528 # 3 some systems may open it to /dev/tty
529 # 4 used on the Kubota Titan
530 # 6 checking for... messages and results
531 # 5 compiler messages saved in config.log
532 if test "$silent" = yes; then
540 This file contains any messages produced by compilers while
541 running configure, to aid debugging if configure makes a mistake.
544 # Strip out --no-create and --no-recursion so they do not pile up.
545 # Also quote any args containing shell metacharacters.
550 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
551 | --no-cr | --no-c) ;;
552 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
553 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
554 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
555 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
556 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
561 # Only set these to C if already set. These must not be set unconditionally
562 # because not all systems understand e.g. LANG=C (notably SCO).
563 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
564 # Non-C LC_CTYPE values break the ctype check.
565 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
566 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
567 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
568 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
570 # confdefs.h avoids OS command line length limits that DEFS can exceed.
571 rm -rf conftest* confdefs.h
572 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
575 # A filename unique to this package, relative to the directory that
576 # configure is in, which we can look for to find out if srcdir is correct.
577 ac_unique_file=include/main.h
579 # Find the source files, if location was not specified.
580 if test -z "$srcdir"; then
581 ac_srcdir_defaulted=yes
582 # Try the directory containing this script, then its parent.
584 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
585 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
587 if test ! -r $srcdir/$ac_unique_file; then
591 ac_srcdir_defaulted=no
593 if test ! -r $srcdir/$ac_unique_file; then
594 if test "$ac_srcdir_defaulted" = yes; then
595 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
597 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
600 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
602 # Prefer explicitly selected file to automatically selected ones.
603 if test -z "$CONFIG_SITE"; then
604 if test "x$prefix" != xNONE; then
605 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
607 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
610 for ac_site_file in $CONFIG_SITE; do
611 if test -r "$ac_site_file"; then
612 echo "loading site script $ac_site_file"
617 if test -r "$cache_file"; then
618 echo "loading cache $cache_file"
621 echo "creating cache $cache_file"
626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
627 ac_cpp='$CPP $CPPFLAGS'
628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
629 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
630 cross_compiling=$ac_cv_prog_cc_cross
634 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
635 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
636 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
643 ac_n= ac_c='\c' ac_t=
650 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
651 if test -f $ac_dir/install-sh; then
653 ac_install_sh="$ac_aux_dir/install-sh -c"
655 elif test -f $ac_dir/install.sh; then
657 ac_install_sh="$ac_aux_dir/install.sh -c"
661 if test -z "$ac_aux_dir"; then
662 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
664 ac_config_guess=$ac_aux_dir/config.guess
665 ac_config_sub=$ac_aux_dir/config.sub
666 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
669 # Do some error checking and defaulting for the host and target type.
671 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
674 # 1. You are not allowed to specify --host, --target, and nonopt at the
676 # 2. Host defaults to nonopt.
677 # 3. If nonopt is not specified, then host defaults to the current host,
678 # as determined by config.guess.
679 # 4. Target and build default to nonopt.
680 # 5. If nonopt is not specified, then target and build default to host.
682 # The aliases save the names the user supplied, while $host etc.
683 # will get canonicalized.
684 case $host---$target---$nonopt in
685 NONE---*---* | *---NONE---* | *---*---NONE) ;;
686 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
690 # Make sure we can run config.sub.
691 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
692 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
695 echo $ac_n "checking host system type""... $ac_c" 1>&6
696 echo "configure:697: checking host system type" >&5
699 case "$host_alias" in
703 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
704 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
706 *) host_alias=$nonopt ;;
710 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
711 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
712 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
713 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714 echo "$ac_t""$host" 1>&6
716 echo $ac_n "checking target system type""... $ac_c" 1>&6
717 echo "configure:718: checking target system type" >&5
720 case "$target_alias" in
723 NONE) target_alias=$host_alias ;;
724 *) target_alias=$nonopt ;;
728 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
729 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
730 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
731 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
732 echo "$ac_t""$target" 1>&6
734 echo $ac_n "checking build system type""... $ac_c" 1>&6
735 echo "configure:736: checking build system type" >&5
738 case "$build_alias" in
741 NONE) build_alias=$host_alias ;;
742 *) build_alias=$nonopt ;;
746 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
747 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
748 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
749 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
750 echo "$ac_t""$build" 1>&6
752 test "$host_alias" != "$target_alias" &&
753 test "$program_prefix$program_suffix$program_transform_name" = \
755 program_prefix=${target_alias}-
761 save_CFLAGS="${CFLAGS}"
762 save_LDFLAGS="${LDFLAGS}"
764 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
765 echo "configure:766: checking whether ${MAKE-make} sets \${MAKE}" >&5
766 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
767 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
770 cat > conftestmake <<\EOF
772 @echo 'ac_maketemp="${MAKE}"'
774 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
775 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
776 if test -n "$ac_maketemp"; then
777 eval ac_cv_prog_make_${ac_make}_set=yes
779 eval ac_cv_prog_make_${ac_make}_set=no
783 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
784 echo "$ac_t""yes" 1>&6
787 echo "$ac_t""no" 1>&6
788 SET_MAKE="MAKE=${MAKE-make}"
791 # Extract the first word of "gcc", so it can be a program name with args.
792 set dummy gcc; ac_word=$2
793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
794 echo "configure:795: checking for $ac_word" >&5
795 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&6
798 if test -n "$CC"; then
799 ac_cv_prog_CC="$CC" # Let the user override the test.
801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
803 for ac_dir in $ac_dummy; do
804 test -z "$ac_dir" && ac_dir=.
805 if test -f $ac_dir/$ac_word; then
814 if test -n "$CC"; then
815 echo "$ac_t""$CC" 1>&6
817 echo "$ac_t""no" 1>&6
820 if test -z "$CC"; then
821 # Extract the first word of "cc", so it can be a program name with args.
822 set dummy cc; ac_word=$2
823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
824 echo "configure:825: checking for $ac_word" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test.
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
834 for ac_dir in $ac_dummy; do
835 test -z "$ac_dir" && ac_dir=.
836 if test -f $ac_dir/$ac_word; then
837 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
846 if test $ac_prog_rejected = yes; then
847 # We found a bogon in the path, so make sure we never use it.
848 set dummy $ac_cv_prog_CC
850 if test $# -gt 0; then
851 # We chose a different compiler from the bogus one.
852 # However, it has the same basename, so the bogon will be chosen
853 # first if we set CC to just the basename; use the full file name.
855 set dummy "$ac_dir/$ac_word" "$@"
863 if test -n "$CC"; then
864 echo "$ac_t""$CC" 1>&6
866 echo "$ac_t""no" 1>&6
869 if test -z "$CC"; then
872 # Extract the first word of "cl", so it can be a program name with args.
873 set dummy cl; ac_word=$2
874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
875 echo "configure:876: checking for $ac_word" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
879 if test -n "$CC"; then
880 ac_cv_prog_CC="$CC" # Let the user override the test.
882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
884 for ac_dir in $ac_dummy; do
885 test -z "$ac_dir" && ac_dir=.
886 if test -f $ac_dir/$ac_word; then
895 if test -n "$CC"; then
896 echo "$ac_t""$CC" 1>&6
898 echo "$ac_t""no" 1>&6
903 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
906 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
907 echo "configure:908: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
911 ac_cpp='$CPP $CPPFLAGS'
912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
914 cross_compiling=$ac_cv_prog_cc_cross
916 cat > conftest.$ac_ext << EOF
918 #line 919 "configure"
919 #include "confdefs.h"
923 if { (eval echo configure:924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
924 ac_cv_prog_cc_works=yes
925 # If we can't run a trivial program, we are probably using a cross compiler.
926 if (./conftest; exit) 2>/dev/null; then
927 ac_cv_prog_cc_cross=no
929 ac_cv_prog_cc_cross=yes
932 echo "configure: failed program was:" >&5
933 cat conftest.$ac_ext >&5
934 ac_cv_prog_cc_works=no
938 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
939 ac_cpp='$CPP $CPPFLAGS'
940 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
941 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
942 cross_compiling=$ac_cv_prog_cc_cross
944 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
945 if test $ac_cv_prog_cc_works = no; then
946 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
948 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
949 echo "configure:950: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
950 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
951 cross_compiling=$ac_cv_prog_cc_cross
953 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
954 echo "configure:955: checking whether we are using GNU C" >&5
955 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
956 echo $ac_n "(cached) $ac_c" 1>&6
958 cat > conftest.c <<EOF
963 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
970 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
972 if test $ac_cv_prog_gcc = yes; then
978 ac_test_CFLAGS="${CFLAGS+set}"
979 ac_save_CFLAGS="$CFLAGS"
981 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
982 echo "configure:983: checking whether ${CC-cc} accepts -g" >&5
983 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 echo 'void f(){}' > conftest.c
987 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
996 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
997 if test "$ac_test_CFLAGS" = set; then
998 CFLAGS="$ac_save_CFLAGS"
999 elif test $ac_cv_prog_cc_g = yes; then
1000 if test "$GCC" = yes; then
1006 if test "$GCC" = yes; then
1013 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1014 echo "configure:1015: checking how to run the C preprocessor" >&5
1015 # On Suns, sometimes $CPP names a directory.
1016 if test -n "$CPP" && test -d "$CPP"; then
1019 if test -z "$CPP"; then
1020 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 # This must be in double quotes, not single quotes, because CPP may get
1024 # substituted into the Makefile and "${CC-cc}" will confuse make.
1026 # On the NeXT, cc -E runs the code through the compiler's parser,
1027 # not just through cpp.
1028 cat > conftest.$ac_ext <<EOF
1029 #line 1030 "configure"
1030 #include "confdefs.h"
1034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1035 { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1037 if test -z "$ac_err"; then
1041 echo "configure: failed program was:" >&5
1042 cat conftest.$ac_ext >&5
1044 CPP="${CC-cc} -E -traditional-cpp"
1045 cat > conftest.$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1052 { (eval echo configure:1053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1054 if test -z "$ac_err"; then
1058 echo "configure: failed program was:" >&5
1059 cat conftest.$ac_ext >&5
1061 CPP="${CC-cc} -nologo -E"
1062 cat > conftest.$ac_ext <<EOF
1063 #line 1064 "configure"
1064 #include "confdefs.h"
1068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1069 { (eval echo configure:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1071 if test -z "$ac_err"; then
1075 echo "configure: failed program was:" >&5
1076 cat conftest.$ac_ext >&5
1085 ac_cv_prog_CPP="$CPP"
1087 CPP="$ac_cv_prog_CPP"
1089 ac_cv_prog_CPP="$CPP"
1091 echo "$ac_t""$CPP" 1>&6
1094 if test $host != $build; then
1095 ac_tool_prefix=${host_alias}-
1100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1101 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 if test -n "$RANLIB"; then
1108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1122 RANLIB="$ac_cv_prog_RANLIB"
1123 if test -n "$RANLIB"; then
1124 echo "$ac_t""$RANLIB" 1>&6
1126 echo "$ac_t""no" 1>&6
1130 if test -z "$ac_cv_prog_RANLIB"; then
1131 if test -n "$ac_tool_prefix"; then
1132 # Extract the first word of "ranlib", so it can be a program name with args.
1133 set dummy ranlib; ac_word=$2
1134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1135 echo "configure:1136: checking for $ac_word" >&5
1136 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1139 if test -n "$RANLIB"; then
1140 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1144 for ac_dir in $ac_dummy; do
1145 test -z "$ac_dir" && ac_dir=.
1146 if test -f $ac_dir/$ac_word; then
1147 ac_cv_prog_RANLIB="ranlib"
1152 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1155 RANLIB="$ac_cv_prog_RANLIB"
1156 if test -n "$RANLIB"; then
1157 echo "$ac_t""$RANLIB" 1>&6
1159 echo "$ac_t""no" 1>&6
1168 # Extract the first word of "gmake", so it can be a program name with args.
1169 set dummy gmake; ac_word=$2
1170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1171 echo "configure:1172: checking for $ac_word" >&5
1172 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1177 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1180 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1185 for ac_dir in $ac_dummy; do
1186 test -z "$ac_dir" && ac_dir=.
1187 if test -f $ac_dir/$ac_word; then
1188 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1193 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1197 GMAKE="$ac_cv_path_GMAKE"
1198 if test -n "$GMAKE"; then
1199 echo "$ac_t""$GMAKE" 1>&6
1201 echo "$ac_t""no" 1>&6
1204 if test "x$GMAKE" = "xno"; then
1205 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether GNU make is installed" >&5
1207 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1210 if make --version | grep -q -i gnu; then
1213 echo "This software needs you to install GNU make to compile properly."
1214 echo "You can get it from http://www.gnu.org/."
1219 echo "$ac_t""$ac_cv_gmake" 1>&6
1225 ALL_LINGUAS="de fr ja no ru nl"
1227 cat >> confdefs.h <<EOF
1228 #define PACKAGE "vlc"
1231 cat >> confdefs.h <<EOF
1232 #define VERSION "$VERSION"
1235 # Extract the first word of "ranlib", so it can be a program name with args.
1236 set dummy ranlib; ac_word=$2
1237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1238 echo "configure:1239: checking for $ac_word" >&5
1239 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1242 if test -n "$RANLIB"; then
1243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1247 for ac_dir in $ac_dummy; do
1248 test -z "$ac_dir" && ac_dir=.
1249 if test -f $ac_dir/$ac_word; then
1250 ac_cv_prog_RANLIB="ranlib"
1255 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1258 RANLIB="$ac_cv_prog_RANLIB"
1259 if test -n "$RANLIB"; then
1260 echo "$ac_t""$RANLIB" 1>&6
1262 echo "$ac_t""no" 1>&6
1266 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1267 echo "configure:1268: checking for strerror in -lcposix" >&5
1268 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 ac_save_LIBS="$LIBS"
1273 LIBS="-lcposix $LIBS"
1274 cat > conftest.$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1277 /* Override any gcc2 internal prototype to avoid an error. */
1278 /* We use char because int might match the return type of a gcc2
1279 builtin and then its argument prototype would still apply. */
1286 if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1288 eval "ac_cv_lib_$ac_lib_var=yes"
1290 echo "configure: failed program was:" >&5
1291 cat conftest.$ac_ext >&5
1293 eval "ac_cv_lib_$ac_lib_var=no"
1296 LIBS="$ac_save_LIBS"
1299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1300 echo "$ac_t""yes" 1>&6
1301 LIBS="$LIBS -lcposix"
1303 echo "$ac_t""no" 1>&6
1308 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1309 echo "configure:1310: checking for ANSI C header files" >&5
1310 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 cat > conftest.$ac_ext <<EOF
1314 #line 1315 "configure"
1315 #include "confdefs.h"
1321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1322 { (eval echo configure:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1324 if test -z "$ac_err"; then
1326 ac_cv_header_stdc=yes
1329 echo "configure: failed program was:" >&5
1330 cat conftest.$ac_ext >&5
1332 ac_cv_header_stdc=no
1336 if test $ac_cv_header_stdc = yes; then
1337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1338 cat > conftest.$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1344 egrep "memchr" >/dev/null 2>&1; then
1348 ac_cv_header_stdc=no
1354 if test $ac_cv_header_stdc = yes; then
1355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1362 egrep "free" >/dev/null 2>&1; then
1366 ac_cv_header_stdc=no
1372 if test $ac_cv_header_stdc = yes; then
1373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1374 if test "$cross_compiling" = yes; then
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1381 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1382 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1384 int main () { int i; for (i = 0; i < 256; i++)
1385 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1389 if { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1393 echo "configure: failed program was:" >&5
1394 cat conftest.$ac_ext >&5
1396 ac_cv_header_stdc=no
1404 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1405 if test $ac_cv_header_stdc = yes; then
1406 cat >> confdefs.h <<\EOF
1407 #define STDC_HEADERS 1
1412 echo $ac_n "checking for working const""... $ac_c" 1>&6
1413 echo "configure:1414: checking for working const" >&5
1414 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1423 /* Ultrix mips cc rejects this. */
1424 typedef int charset[2]; const charset x;
1425 /* SunOS 4.1.1 cc rejects this. */
1426 char const *const *ccp;
1428 /* NEC SVR4.0.2 mips cc rejects this. */
1429 struct point {int x, y;};
1430 static struct point const zero = {0,0};
1431 /* AIX XL C 1.02.0.0 rejects this.
1432 It does not let you subtract one const X* pointer from another in an arm
1433 of an if-expression whose if-part is not a constant expression */
1434 const char *g = "string";
1435 ccp = &g + (g ? g-g : 0);
1436 /* HPUX 7.0 cc rejects these. */
1439 ccp = (char const *const *) p;
1440 { /* SCO 3.2v4 cc rejects this. */
1442 char const *s = 0 ? (char *) 0 : (char const *) 0;
1446 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1448 const int *foo = &x[0];
1451 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1452 typedef const int *iptr;
1456 { /* AIX XL C 1.02.0.0 rejects this saying
1457 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1458 struct s { int j; const int *ap[3]; };
1459 struct s *b; b->j = 5;
1461 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1467 if { (eval echo configure:1468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1471 echo "configure: failed program was:" >&5
1472 cat conftest.$ac_ext >&5
1479 echo "$ac_t""$ac_cv_c_const" 1>&6
1480 if test $ac_cv_c_const = no; then
1481 cat >> confdefs.h <<\EOF
1487 echo $ac_n "checking for inline""... $ac_c" 1>&6
1488 echo "configure:1489: checking for inline" >&5
1489 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1493 for ac_kw in inline __inline__ __inline; do
1494 cat > conftest.$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1502 if { (eval echo configure:1503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1504 ac_cv_c_inline=$ac_kw; break
1506 echo "configure: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
1514 echo "$ac_t""$ac_cv_c_inline" 1>&6
1515 case "$ac_cv_c_inline" in
1517 no) cat >> confdefs.h <<\EOF
1521 *) cat >> confdefs.h <<EOF
1522 #define inline $ac_cv_c_inline
1527 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1528 echo "configure:1529: checking for off_t" >&5
1529 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1535 #include <sys/types.h>
1541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1542 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1544 ac_cv_type_off_t=yes
1552 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1553 if test $ac_cv_type_off_t = no; then
1554 cat >> confdefs.h <<\EOF
1560 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1561 echo "configure:1562: checking for size_t" >&5
1562 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1568 #include <sys/types.h>
1574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1575 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1577 ac_cv_type_size_t=yes
1580 ac_cv_type_size_t=no
1585 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1586 if test $ac_cv_type_size_t = no; then
1587 cat >> confdefs.h <<\EOF
1588 #define size_t unsigned
1593 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1594 # for constant arguments. Useless!
1595 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1596 echo "configure:1597: checking for working alloca.h" >&5
1597 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 cat > conftest.$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1605 char *p = alloca(2 * sizeof(int));
1608 if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1610 ac_cv_header_alloca_h=yes
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1615 ac_cv_header_alloca_h=no
1620 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1621 if test $ac_cv_header_alloca_h = yes; then
1622 cat >> confdefs.h <<\EOF
1623 #define HAVE_ALLOCA_H 1
1628 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1629 echo "configure:1630: checking for alloca" >&5
1630 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1638 # define alloca __builtin_alloca
1641 # include <malloc.h>
1642 # define alloca _alloca
1645 # include <alloca.h>
1650 # ifndef alloca /* predefined by HP cc +Olibcalls */
1659 char *p = (char *) alloca(1);
1662 if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1664 ac_cv_func_alloca_works=yes
1666 echo "configure: failed program was:" >&5
1667 cat conftest.$ac_ext >&5
1669 ac_cv_func_alloca_works=no
1674 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1675 if test $ac_cv_func_alloca_works = yes; then
1676 cat >> confdefs.h <<\EOF
1677 #define HAVE_ALLOCA 1
1682 if test $ac_cv_func_alloca_works = no; then
1683 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1684 # that cause trouble. Some versions do not even contain alloca or
1685 # contain a buggy version. If you still want to use their alloca,
1686 # use ar to extract alloca.o from them instead of compiling alloca.c.
1687 ALLOCA=alloca.${ac_objext}
1688 cat >> confdefs.h <<\EOF
1693 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1694 echo "configure:1695: checking whether alloca needs Cray hooks" >&5
1695 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1701 #if defined(CRAY) && ! defined(CRAY2)
1708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1709 egrep "webecray" >/dev/null 2>&1; then
1720 echo "$ac_t""$ac_cv_os_cray" 1>&6
1721 if test $ac_cv_os_cray = yes; then
1722 for ac_func in _getb67 GETB67 getb67; do
1723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $ac_func" >&5
1725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1731 /* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char $ac_func(); below. */
1734 /* Override any gcc2 internal prototype to avoid an error. */
1735 /* We use char because int might match the return type of a gcc2
1736 builtin and then its argument prototype would still apply. */
1741 /* The GNU C library defines this for functions which it implements
1742 to always fail with ENOSYS. Some functions are actually named
1743 something starting with __ and the normal name is an alias. */
1744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1754 eval "ac_cv_func_$ac_func=yes"
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1759 eval "ac_cv_func_$ac_func=no"
1764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1765 echo "$ac_t""yes" 1>&6
1766 cat >> confdefs.h <<EOF
1767 #define CRAY_STACKSEG_END $ac_func
1772 echo "$ac_t""no" 1>&6
1778 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1779 echo "configure:1780: checking stack direction for C alloca" >&5
1780 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 if test "$cross_compiling" = yes; then
1784 ac_cv_c_stack_direction=0
1786 cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1789 find_stack_direction ()
1791 static char *addr = 0;
1796 return find_stack_direction ();
1799 return (&dummy > addr) ? 1 : -1;
1803 exit (find_stack_direction() < 0);
1806 if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1808 ac_cv_c_stack_direction=1
1810 echo "configure: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1813 ac_cv_c_stack_direction=-1
1820 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1821 cat >> confdefs.h <<EOF
1822 #define STACK_DIRECTION $ac_cv_c_stack_direction
1827 for ac_hdr in unistd.h
1829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1831 echo "configure:1832: checking for $ac_hdr" >&5
1832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 cat > conftest.$ac_ext <<EOF
1836 #line 1837 "configure"
1837 #include "confdefs.h"
1840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1841 { (eval echo configure:1842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1843 if test -z "$ac_err"; then
1845 eval "ac_cv_header_$ac_safe=yes"
1848 echo "configure: failed program was:" >&5
1849 cat conftest.$ac_ext >&5
1851 eval "ac_cv_header_$ac_safe=no"
1855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1856 echo "$ac_t""yes" 1>&6
1857 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1858 cat >> confdefs.h <<EOF
1859 #define $ac_tr_hdr 1
1863 echo "$ac_t""no" 1>&6
1867 for ac_func in getpagesize
1869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1870 echo "configure:1871: checking for $ac_func" >&5
1871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1874 cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 /* System header to define __stub macros and hopefully few prototypes,
1878 which can conflict with char $ac_func(); below. */
1880 /* Override any gcc2 internal prototype to avoid an error. */
1881 /* We use char because int might match the return type of a gcc2
1882 builtin and then its argument prototype would still apply. */
1887 /* The GNU C library defines this for functions which it implements
1888 to always fail with ENOSYS. Some functions are actually named
1889 something starting with __ and the normal name is an alias. */
1890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1898 if { (eval echo configure:1899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1900 eval "ac_cv_func_$ac_func=yes"
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1905 eval "ac_cv_func_$ac_func=no"
1910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1911 echo "$ac_t""yes" 1>&6
1912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1913 cat >> confdefs.h <<EOF
1914 #define $ac_tr_func 1
1918 echo "$ac_t""no" 1>&6
1922 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1923 echo "configure:1924: checking for working mmap" >&5
1924 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1927 if test "$cross_compiling" = yes; then
1928 ac_cv_func_mmap_fixed_mapped=no
1930 cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1934 /* Thanks to Mike Haertel and Jim Avera for this test.
1935 Here is a matrix of mmap possibilities:
1936 mmap private not fixed
1937 mmap private fixed at somewhere currently unmapped
1938 mmap private fixed at somewhere already mapped
1939 mmap shared not fixed
1940 mmap shared fixed at somewhere currently unmapped
1941 mmap shared fixed at somewhere already mapped
1942 For private mappings, we should verify that changes cannot be read()
1943 back from the file, nor mmap's back from the file at a different
1944 address. (There have been systems where private was not correctly
1945 implemented like the infamous i386 svr4.0, and systems where the
1946 VM page cache was not coherent with the filesystem buffer cache
1947 like early versions of FreeBSD and possibly contemporary NetBSD.)
1948 For shared mappings, we should conversely verify that changes get
1949 propogated back to all the places they're supposed to be.
1951 Grep wants private fixed already mapped.
1952 The main things grep needs to know about mmap are:
1953 * does it exist and is it safe to write into the mmap'd area
1954 * how to use it (BSD variants) */
1955 #include <sys/types.h>
1957 #include <sys/mman.h>
1959 /* This mess was copied from the GNU getpagesize.h. */
1960 #ifndef HAVE_GETPAGESIZE
1961 # ifdef HAVE_UNISTD_H
1962 # include <unistd.h>
1965 /* Assume that all systems that can run configure have sys/param.h. */
1966 # ifndef HAVE_SYS_PARAM_H
1967 # define HAVE_SYS_PARAM_H 1
1970 # ifdef _SC_PAGESIZE
1971 # define getpagesize() sysconf(_SC_PAGESIZE)
1972 # else /* no _SC_PAGESIZE */
1973 # ifdef HAVE_SYS_PARAM_H
1974 # include <sys/param.h>
1975 # ifdef EXEC_PAGESIZE
1976 # define getpagesize() EXEC_PAGESIZE
1977 # else /* no EXEC_PAGESIZE */
1979 # define getpagesize() NBPG * CLSIZE
1982 # endif /* no CLSIZE */
1983 # else /* no NBPG */
1985 # define getpagesize() NBPC
1986 # else /* no NBPC */
1988 # define getpagesize() PAGESIZE
1989 # endif /* PAGESIZE */
1990 # endif /* no NBPC */
1991 # endif /* no NBPG */
1992 # endif /* no EXEC_PAGESIZE */
1993 # else /* no HAVE_SYS_PARAM_H */
1994 # define getpagesize() 8192 /* punt totally */
1995 # endif /* no HAVE_SYS_PARAM_H */
1996 # endif /* no _SC_PAGESIZE */
1998 #endif /* no HAVE_GETPAGESIZE */
2001 extern "C" { void *malloc(unsigned); }
2009 char *data, *data2, *data3;
2013 pagesize = getpagesize();
2016 * First, make a file with some known garbage in it.
2018 data = malloc(pagesize);
2021 for (i = 0; i < pagesize; ++i)
2022 *(data + i) = rand();
2024 fd = creat("conftestmmap", 0600);
2027 if (write(fd, data, pagesize) != pagesize)
2032 * Next, try to mmap the file at a fixed address which
2033 * already has something else allocated at it. If we can,
2034 * also make sure that we see the same garbage.
2036 fd = open("conftestmmap", O_RDWR);
2039 data2 = malloc(2 * pagesize);
2042 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2043 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2044 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2046 for (i = 0; i < pagesize; ++i)
2047 if (*(data + i) != *(data2 + i))
2051 * Finally, make sure that changes to the mapped area
2052 * do not percolate back to the file as seen by read().
2053 * (This is a bug on some variants of i386 svr4.0.)
2055 for (i = 0; i < pagesize; ++i)
2056 *(data2 + i) = *(data2 + i) + 1;
2057 data3 = malloc(pagesize);
2060 if (read(fd, data3, pagesize) != pagesize)
2062 for (i = 0; i < pagesize; ++i)
2063 if (*(data + i) != *(data3 + i))
2066 unlink("conftestmmap");
2071 if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2073 ac_cv_func_mmap_fixed_mapped=yes
2075 echo "configure: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2078 ac_cv_func_mmap_fixed_mapped=no
2085 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2086 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2087 cat >> confdefs.h <<\EOF
2094 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2095 echo "configure:2096: checking whether we are using the GNU C Library 2.1 or newer" >&5
2096 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2103 #include <features.h>
2104 #ifdef __GNU_LIBRARY__
2105 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2112 egrep "Lucky GNU user" >/dev/null 2>&1; then
2114 ac_cv_gnu_library_2_1=yes
2117 ac_cv_gnu_library_2_1=no
2125 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2127 GLIBC21="$ac_cv_gnu_library_2_1"
2131 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2132 stdlib.h string.h unistd.h sys/param.h
2134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_hdr" >&5
2137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 cat > conftest.$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2146 { (eval echo configure:2147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2148 if test -z "$ac_err"; then
2150 eval "ac_cv_header_$ac_safe=yes"
2153 echo "configure: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2156 eval "ac_cv_header_$ac_safe=no"
2160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2161 echo "$ac_t""yes" 1>&6
2162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2163 cat >> confdefs.h <<EOF
2164 #define $ac_tr_hdr 1
2168 echo "$ac_t""no" 1>&6
2172 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2173 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2174 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2177 echo "configure:2178: checking for $ac_func" >&5
2178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2181 cat > conftest.$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2184 /* System header to define __stub macros and hopefully few prototypes,
2185 which can conflict with char $ac_func(); below. */
2187 /* Override any gcc2 internal prototype to avoid an error. */
2188 /* We use char because int might match the return type of a gcc2
2189 builtin and then its argument prototype would still apply. */
2194 /* The GNU C library defines this for functions which it implements
2195 to always fail with ENOSYS. Some functions are actually named
2196 something starting with __ and the normal name is an alias. */
2197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2205 if { (eval echo configure:2206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2207 eval "ac_cv_func_$ac_func=yes"
2209 echo "configure: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2212 eval "ac_cv_func_$ac_func=no"
2217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2218 echo "$ac_t""yes" 1>&6
2219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2220 cat >> confdefs.h <<EOF
2221 #define $ac_tr_func 1
2225 echo "$ac_t""no" 1>&6
2232 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2233 if test "${with_libiconv_prefix+set}" = set; then
2234 withval="$with_libiconv_prefix"
2236 for dir in `echo "$withval" | tr : ' '`; do
2237 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2238 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2244 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2245 echo "configure:2246: checking for iconv" >&5
2246 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2250 am_cv_func_iconv="no, consider installing GNU libiconv"
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2258 iconv_t cd = iconv_open("","");
2259 iconv(cd,NULL,NULL,NULL,NULL);
2263 if { (eval echo configure:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2265 am_cv_func_iconv=yes
2267 echo "configure: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2271 if test "$am_cv_func_iconv" != yes; then
2272 am_save_LIBS="$LIBS"
2273 LIBS="$LIBS -liconv"
2274 cat > conftest.$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2280 iconv_t cd = iconv_open("","");
2281 iconv(cd,NULL,NULL,NULL,NULL);
2285 if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2288 am_cv_func_iconv=yes
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2294 LIBS="$am_save_LIBS"
2299 echo "$ac_t""$am_cv_func_iconv" 1>&6
2300 if test "$am_cv_func_iconv" = yes; then
2301 cat >> confdefs.h <<\EOF
2302 #define HAVE_ICONV 1
2305 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2306 echo "configure:2307: checking for iconv declaration" >&5
2307 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2311 cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2321 #if defined(__STDC__) || defined(__cplusplus)
2322 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2331 if { (eval echo configure:2332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2333 am_cv_proto_iconv_arg1=""
2335 echo "configure: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2338 am_cv_proto_iconv_arg1="const"
2341 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);"
2344 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2345 echo "$ac_t""${ac_t:-
2346 }$am_cv_proto_iconv" 1>&6
2347 cat >> confdefs.h <<EOF
2348 #define ICONV_CONST $am_cv_proto_iconv_arg1
2353 if test "$am_cv_lib_iconv" = yes; then
2359 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2360 echo "configure:2361: checking for nl_langinfo and CODESET" >&5
2361 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2364 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2367 #include <langinfo.h>
2369 char* cs = nl_langinfo(CODESET);
2372 if { (eval echo configure:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2374 am_cv_langinfo_codeset=yes
2376 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2379 am_cv_langinfo_codeset=no
2385 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2386 if test $am_cv_langinfo_codeset = yes; then
2387 cat >> confdefs.h <<\EOF
2388 #define HAVE_LANGINFO_CODESET 1
2393 if test $ac_cv_header_locale_h = yes; then
2394 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2395 echo "configure:2396: checking for LC_MESSAGES" >&5
2396 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2407 if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2409 am_cv_val_LC_MESSAGES=yes
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 am_cv_val_LC_MESSAGES=no
2419 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2420 if test $am_cv_val_LC_MESSAGES = yes; then
2421 cat >> confdefs.h <<\EOF
2422 #define HAVE_LC_MESSAGES 1
2427 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2428 echo "configure:2429: checking whether NLS is requested" >&5
2429 # Check whether --enable-nls or --disable-nls was given.
2430 if test "${enable_nls+set}" = set; then
2431 enableval="$enable_nls"
2437 echo "$ac_t""$USE_NLS" 1>&6
2440 BUILD_INCLUDED_LIBINTL=no
2441 USE_INCLUDED_LIBINTL=no
2444 if test "$USE_NLS" = "yes"; then
2445 cat >> confdefs.h <<\EOF
2446 #define ENABLE_NLS 1
2449 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2450 echo "configure:2451: checking whether included gettext is requested" >&5
2451 # Check whether --with-included-gettext or --without-included-gettext was given.
2452 if test "${with_included_gettext+set}" = set; then
2453 withval="$with_included_gettext"
2454 nls_cv_force_use_gnu_gettext=$withval
2456 nls_cv_force_use_gnu_gettext=no
2459 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2461 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2462 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2468 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2469 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2470 echo "configure:2471: checking for libintl.h" >&5
2471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 cat > conftest.$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2477 #include <libintl.h>
2479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2480 { (eval echo configure:2481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2482 if test -z "$ac_err"; then
2484 eval "ac_cv_header_$ac_safe=yes"
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2490 eval "ac_cv_header_$ac_safe=no"
2494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2497 echo "configure:2498: checking for GNU gettext in libc" >&5
2498 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 cat > conftest.$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 #include <libintl.h>
2505 extern int _nl_msg_cat_cntr;
2507 bindtextdomain ("", "");
2508 return (int) gettext ("") + _nl_msg_cat_cntr
2511 if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2513 gt_cv_func_gnugettext1_libc=yes
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2518 gt_cv_func_gnugettext1_libc=no
2523 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2525 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2526 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2527 echo "configure:2528: checking for GNU gettext in libintl" >&5
2528 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2531 gt_save_LIBS="$LIBS"
2532 LIBS="$LIBS -lintl $LIBICONV"
2533 cat > conftest.$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2536 #include <libintl.h>
2537 extern int _nl_msg_cat_cntr;
2539 bindtextdomain ("", "");
2540 return (int) gettext ("") + _nl_msg_cat_cntr
2543 if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2545 gt_cv_func_gnugettext1_libintl=yes
2547 echo "configure: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2550 gt_cv_func_gnugettext1_libintl=no
2553 LIBS="$gt_save_LIBS"
2556 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2559 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2560 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2561 && test "$PACKAGE" != gettext; }; then
2562 cat >> confdefs.h <<\EOF
2563 #define HAVE_GETTEXT 1
2567 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2568 INTLLIBS="-lintl $LIBICONV"
2571 gt_save_LIBS="$LIBS"
2572 LIBS="$LIBS $INTLLIBS"
2573 for ac_func in dcgettext
2575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2576 echo "configure:2577: checking for $ac_func" >&5
2577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 cat > conftest.$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 /* System header to define __stub macros and hopefully few prototypes,
2584 which can conflict with char $ac_func(); below. */
2586 /* Override any gcc2 internal prototype to avoid an error. */
2587 /* We use char because int might match the return type of a gcc2
2588 builtin and then its argument prototype would still apply. */
2593 /* The GNU C library defines this for functions which it implements
2594 to always fail with ENOSYS. Some functions are actually named
2595 something starting with __ and the normal name is an alias. */
2596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2604 if { (eval echo configure:2605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2606 eval "ac_cv_func_$ac_func=yes"
2608 echo "configure: failed program was:" >&5
2609 cat conftest.$ac_ext >&5
2611 eval "ac_cv_func_$ac_func=no"
2616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2617 echo "$ac_t""yes" 1>&6
2618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2619 cat >> confdefs.h <<EOF
2620 #define $ac_tr_func 1
2624 echo "$ac_t""no" 1>&6
2628 LIBS="$gt_save_LIBS"
2630 # Extract the first word of "msgfmt", so it can be a program name with args.
2631 set dummy msgfmt; ac_word=$2
2632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2633 echo "configure:2634: checking for $ac_word" >&5
2634 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2639 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2643 for ac_dir in $PATH; do
2644 test -z "$ac_dir" && ac_dir=.
2645 if test -f $ac_dir/$ac_word; then
2646 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2647 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2653 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2657 MSGFMT="$ac_cv_path_MSGFMT"
2658 if test "$MSGFMT" != ":"; then
2659 echo "$ac_t""$MSGFMT" 1>&6
2661 echo "$ac_t""no" 1>&6
2664 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2665 set dummy gmsgfmt; ac_word=$2
2666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2667 echo "configure:2668: checking for $ac_word" >&5
2668 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2673 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2676 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2681 for ac_dir in $ac_dummy; do
2682 test -z "$ac_dir" && ac_dir=.
2683 if test -f $ac_dir/$ac_word; then
2684 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2689 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2693 GMSGFMT="$ac_cv_path_GMSGFMT"
2694 if test -n "$GMSGFMT"; then
2695 echo "$ac_t""$GMSGFMT" 1>&6
2697 echo "$ac_t""no" 1>&6
2701 # Extract the first word of "xgettext", so it can be a program name with args.
2702 set dummy xgettext; ac_word=$2
2703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2704 echo "configure:2705: checking for $ac_word" >&5
2705 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2710 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2714 for ac_dir in $PATH; do
2715 test -z "$ac_dir" && ac_dir=.
2716 if test -f $ac_dir/$ac_word; then
2717 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2718 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2724 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2728 XGETTEXT="$ac_cv_path_XGETTEXT"
2729 if test "$XGETTEXT" != ":"; then
2730 echo "$ac_t""$XGETTEXT" 1>&6
2732 echo "$ac_t""no" 1>&6
2740 echo "$ac_t""no" 1>&6
2744 if test "$CATOBJEXT" = "NONE"; then
2745 nls_cv_use_gnu_gettext=yes
2749 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2750 INTLOBJS="\$(GETTOBJS)"
2751 # Extract the first word of "msgfmt", so it can be a program name with args.
2752 set dummy msgfmt; ac_word=$2
2753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2754 echo "configure:2755: checking for $ac_word" >&5
2755 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2760 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2764 for ac_dir in $PATH; do
2765 test -z "$ac_dir" && ac_dir=.
2766 if test -f $ac_dir/$ac_word; then
2767 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2768 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2774 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2778 MSGFMT="$ac_cv_path_MSGFMT"
2779 if test "$MSGFMT" != ":"; then
2780 echo "$ac_t""$MSGFMT" 1>&6
2782 echo "$ac_t""no" 1>&6
2785 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2786 set dummy gmsgfmt; ac_word=$2
2787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2788 echo "configure:2789: checking for $ac_word" >&5
2789 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2794 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2797 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2802 for ac_dir in $ac_dummy; do
2803 test -z "$ac_dir" && ac_dir=.
2804 if test -f $ac_dir/$ac_word; then
2805 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2810 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2814 GMSGFMT="$ac_cv_path_GMSGFMT"
2815 if test -n "$GMSGFMT"; then
2816 echo "$ac_t""$GMSGFMT" 1>&6
2818 echo "$ac_t""no" 1>&6
2821 # Extract the first word of "xgettext", so it can be a program name with args.
2822 set dummy xgettext; ac_word=$2
2823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2824 echo "configure:2825: checking for $ac_word" >&5
2825 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2830 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2834 for ac_dir in $PATH; do
2835 test -z "$ac_dir" && ac_dir=.
2836 if test -f $ac_dir/$ac_word; then
2837 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2838 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2844 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2848 XGETTEXT="$ac_cv_path_XGETTEXT"
2849 if test "$XGETTEXT" != ":"; then
2850 echo "$ac_t""$XGETTEXT" 1>&6
2852 echo "$ac_t""no" 1>&6
2856 BUILD_INCLUDED_LIBINTL=yes
2857 USE_INCLUDED_LIBINTL=yes
2859 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2860 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2863 if test "$GMSGFMT" != ":"; then
2864 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2867 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2872 if test "$XGETTEXT" != ":"; then
2873 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2876 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2886 if test "$PACKAGE" = gettext; then
2887 BUILD_INCLUDED_LIBINTL=yes
2890 for ac_prog in bison
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893 set dummy $ac_prog; ac_word=$2
2894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2895 echo "configure:2896: checking for $ac_word" >&5
2896 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2899 if test -n "$INTLBISON"; then
2900 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2904 for ac_dir in $ac_dummy; do
2905 test -z "$ac_dir" && ac_dir=.
2906 if test -f $ac_dir/$ac_word; then
2907 ac_cv_prog_INTLBISON="$ac_prog"
2914 INTLBISON="$ac_cv_prog_INTLBISON"
2915 if test -n "$INTLBISON"; then
2916 echo "$ac_t""$INTLBISON" 1>&6
2918 echo "$ac_t""no" 1>&6
2921 test -n "$INTLBISON" && break
2924 if test -z "$INTLBISON"; then
2927 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2928 echo "configure:2929: checking version of bison" >&5
2929 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2930 case $ac_prog_version in
2931 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2932 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2933 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2934 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2936 echo "$ac_t""$ac_prog_version" 1>&6
2938 if test $ac_verc_fail = yes; then
2942 for lang in $ALL_LINGUAS; do
2943 GMOFILES="$GMOFILES $lang.gmo"
2944 POFILES="$POFILES $lang.po"
2958 nls_cv_header_libgt=
2970 if test "x$CATOBJEXT" != "x"; then
2971 if test "x$ALL_LINGUAS" = "x"; then
2974 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2975 echo "configure:2976: checking for catalogs to be installed" >&5
2977 for presentlang in $ALL_LINGUAS; do
2979 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2980 # Use the presentlang catalog if desiredlang is
2981 # a. equal to presentlang, or
2982 # b. a variant of presentlang (because in this case,
2983 # presentlang can be used as a fallback for messages
2984 # which are not translated in the desiredlang catalog).
2985 case "$desiredlang" in
2986 "$presentlang"*) useit=yes;;
2989 if test $useit = yes; then
2990 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2993 LINGUAS=$NEW_LINGUAS
2994 echo "$ac_t""$LINGUAS" 1>&6
2997 if test -n "$LINGUAS"; then
2998 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3003 if test -n "$ac_aux_dir"; then
3004 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3006 if test -z "$MKINSTALLDIRS"; then
3007 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3011 INTL_LIBTOOL_SUFFIX_PREFIX=
3015 # Find a good install program. We prefer a C program (faster),
3016 # so one script is as good as another. But avoid the broken or
3017 # incompatible versions:
3018 # SysV /etc/install, /usr/sbin/install
3019 # SunOS /usr/etc/install
3020 # IRIX /sbin/install
3022 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3025 # ./install, which can be erroneously created by make from ./install.sh.
3026 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3027 echo "configure:3028: checking for a BSD compatible install" >&5
3028 if test -z "$INSTALL"; then
3029 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3033 for ac_dir in $PATH; do
3034 # Account for people who put trailing slashes in PATH elements.
3036 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3038 # OSF1 and SCO ODT 3.0 have their own names for install.
3039 # Don't use installbsd from OSF since it installs stuff as root
3041 for ac_prog in ginstall scoinst install; do
3042 if test -f $ac_dir/$ac_prog; then
3043 if test $ac_prog = install &&
3044 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3045 # AIX install. It has an incompatible calling convention.
3048 ac_cv_path_install="$ac_dir/$ac_prog -c"
3059 if test "${ac_cv_path_install+set}" = set; then
3060 INSTALL="$ac_cv_path_install"
3062 # As a last resort, use the slow shell script. We don't cache a
3063 # path for INSTALL within a source directory, because that will
3064 # break other packages using the cache if that directory is
3065 # removed, or if the path is relative.
3066 INSTALL="$ac_install_sh"
3069 echo "$ac_t""$INSTALL" 1>&6
3071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3072 # It thinks the first close brace ends the variable substitution.
3073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3077 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3080 case x"${target_os}" in
3095 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3096 set dummy ${ac_tool_prefix}windres; ac_word=$2
3097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3098 echo "configure:3099: checking for $ac_word" >&5
3099 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3102 if test -n "$WINDRES"; then
3103 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3107 for ac_dir in $ac_dummy; do
3108 test -z "$ac_dir" && ac_dir=.
3109 if test -f $ac_dir/$ac_word; then
3110 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3117 WINDRES="$ac_cv_prog_WINDRES"
3118 if test -n "$WINDRES"; then
3119 echo "$ac_t""$WINDRES" 1>&6
3121 echo "$ac_t""no" 1>&6
3125 if test -z "$ac_cv_prog_WINDRES"; then
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "windres", so it can be a program name with args.
3128 set dummy windres; ac_word=$2
3129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3130 echo "configure:3131: checking for $ac_word" >&5
3131 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 if test -n "$WINDRES"; then
3135 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3139 for ac_dir in $ac_dummy; do
3140 test -z "$ac_dir" && ac_dir=.
3141 if test -f $ac_dir/$ac_word; then
3142 ac_cv_prog_WINDRES="windres"
3147 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3150 WINDRES="$ac_cv_prog_WINDRES"
3151 if test -n "$WINDRES"; then
3152 echo "$ac_t""$WINDRES" 1>&6
3154 echo "$ac_t""no" 1>&6
3162 LIB_IPV4="${LIB_IPV4} -lws2_32"
3163 LIB_RC="${LIB_RC} -lws2_32"
3167 LIB_X11="${LIB_X11} -lsocket"
3168 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3172 LIB_VLC="${LIB_VLC} -lbe"
3173 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3174 LIB_IPV4="${LIB_IPV4} -lbind"
3175 PLDFLAGS="${PLDFLAGS} -nostart"
3182 for ac_func in gettimeofday select strerror strtod strtol isatty
3184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3185 echo "configure:3186: checking for $ac_func" >&5
3186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 cat > conftest.$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 /* System header to define __stub macros and hopefully few prototypes,
3193 which can conflict with char $ac_func(); below. */
3195 /* Override any gcc2 internal prototype to avoid an error. */
3196 /* We use char because int might match the return type of a gcc2
3197 builtin and then its argument prototype would still apply. */
3202 /* The GNU C library defines this for functions which it implements
3203 to always fail with ENOSYS. Some functions are actually named
3204 something starting with __ and the normal name is an alias. */
3205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3213 if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3215 eval "ac_cv_func_$ac_func=yes"
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3220 eval "ac_cv_func_$ac_func=no"
3225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3226 echo "$ac_t""yes" 1>&6
3227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3228 cat >> confdefs.h <<EOF
3229 #define $ac_tr_func 1
3233 echo "$ac_t""no" 1>&6
3237 echo $ac_n "checking for connect""... $ac_c" 1>&6
3238 echo "configure:3239: checking for connect" >&5
3239 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3242 cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3245 /* System header to define __stub macros and hopefully few prototypes,
3246 which can conflict with char connect(); below. */
3248 /* Override any gcc2 internal prototype to avoid an error. */
3249 /* We use char because int might match the return type of a gcc2
3250 builtin and then its argument prototype would still apply. */
3255 /* The GNU C library defines this for functions which it implements
3256 to always fail with ENOSYS. Some functions are actually named
3257 something starting with __ and the normal name is an alias. */
3258 #if defined (__stub_connect) || defined (__stub___connect)
3266 if { (eval echo configure:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3268 eval "ac_cv_func_connect=yes"
3270 echo "configure: failed program was:" >&5
3271 cat conftest.$ac_ext >&5
3273 eval "ac_cv_func_connect=no"
3278 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3279 echo "$ac_t""yes" 1>&6
3282 echo "$ac_t""no" 1>&6
3284 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3285 echo "configure:3286: checking for connect in -lsocket" >&5
3286 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3290 ac_save_LIBS="$LIBS"
3291 LIBS="-lsocket $LIBS"
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3304 if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3306 eval "ac_cv_lib_$ac_lib_var=yes"
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3311 eval "ac_cv_lib_$ac_lib_var=no"
3314 LIBS="$ac_save_LIBS"
3317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3318 echo "$ac_t""yes" 1>&6
3319 LIB_IPV4="${LIB_IPV4} -lsocket"
3320 LIB_VLC="${LIB_VLC} -lsocket"
3323 echo "$ac_t""no" 1>&6
3328 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3329 echo "configure:3330: checking for gethostbyname" >&5
3330 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 /* System header to define __stub macros and hopefully few prototypes,
3337 which can conflict with char gethostbyname(); below. */
3339 /* Override any gcc2 internal prototype to avoid an error. */
3340 /* We use char because int might match the return type of a gcc2
3341 builtin and then its argument prototype would still apply. */
3342 char gethostbyname();
3346 /* The GNU C library defines this for functions which it implements
3347 to always fail with ENOSYS. Some functions are actually named
3348 something starting with __ and the normal name is an alias. */
3349 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3357 if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3359 eval "ac_cv_func_gethostbyname=yes"
3361 echo "configure: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3364 eval "ac_cv_func_gethostbyname=no"
3369 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3370 echo "$ac_t""yes" 1>&6
3373 echo "$ac_t""no" 1>&6
3375 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3376 echo "configure:3377: checking for gethostbyname in -lnsl" >&5
3377 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3379 echo $ac_n "(cached) $ac_c" 1>&6
3381 ac_save_LIBS="$LIBS"
3383 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386 /* Override any gcc2 internal prototype to avoid an error. */
3387 /* We use char because int might match the return type of a gcc2
3388 builtin and then its argument prototype would still apply. */
3389 char gethostbyname();
3395 if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3397 eval "ac_cv_lib_$ac_lib_var=yes"
3399 echo "configure: failed program was:" >&5
3400 cat conftest.$ac_ext >&5
3402 eval "ac_cv_lib_$ac_lib_var=no"
3405 LIBS="$ac_save_LIBS"
3408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3409 echo "$ac_t""yes" 1>&6
3410 LIB_IPV4="${LIB_IPV4} -lnsl"
3412 echo "$ac_t""no" 1>&6
3418 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3419 echo "configure:3420: checking for gethostbyname" >&5
3420 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 /* System header to define __stub macros and hopefully few prototypes,
3427 which can conflict with char gethostbyname(); below. */
3429 /* Override any gcc2 internal prototype to avoid an error. */
3430 /* We use char because int might match the return type of a gcc2
3431 builtin and then its argument prototype would still apply. */
3432 char gethostbyname();
3436 /* The GNU C library defines this for functions which it implements
3437 to always fail with ENOSYS. Some functions are actually named
3438 something starting with __ and the normal name is an alias. */
3439 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3447 if { (eval echo configure:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3449 eval "ac_cv_func_gethostbyname=yes"
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3454 eval "ac_cv_func_gethostbyname=no"
3459 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3463 echo "$ac_t""no" 1>&6
3465 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3466 echo "configure:3467: checking for gethostbyname in -lbind" >&5
3467 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 ac_save_LIBS="$LIBS"
3473 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3476 /* Override any gcc2 internal prototype to avoid an error. */
3477 /* We use char because int might match the return type of a gcc2
3478 builtin and then its argument prototype would still apply. */
3479 char gethostbyname();
3485 if { (eval echo configure:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3487 eval "ac_cv_lib_$ac_lib_var=yes"
3489 echo "configure: failed program was:" >&5
3490 cat conftest.$ac_ext >&5
3492 eval "ac_cv_lib_$ac_lib_var=no"
3495 LIBS="$ac_save_LIBS"
3498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 LIB_IPV4="${LIB_IPV4} -lbind"
3502 echo "$ac_t""no" 1>&6
3508 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3509 echo "configure:3510: checking for nanosleep" >&5
3510 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 /* System header to define __stub macros and hopefully few prototypes,
3517 which can conflict with char nanosleep(); below. */
3519 /* Override any gcc2 internal prototype to avoid an error. */
3520 /* We use char because int might match the return type of a gcc2
3521 builtin and then its argument prototype would still apply. */
3526 /* The GNU C library defines this for functions which it implements
3527 to always fail with ENOSYS. Some functions are actually named
3528 something starting with __ and the normal name is an alias. */
3529 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3537 if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3539 eval "ac_cv_func_nanosleep=yes"
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 eval "ac_cv_func_nanosleep=no"
3549 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3550 echo "$ac_t""yes" 1>&6
3553 echo "$ac_t""no" 1>&6
3555 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3556 echo "configure:3557: checking for nanosleep in -lrt" >&5
3557 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3561 ac_save_LIBS="$LIBS"
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3566 /* Override any gcc2 internal prototype to avoid an error. */
3567 /* We use char because int might match the return type of a gcc2
3568 builtin and then its argument prototype would still apply. */
3575 if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3577 eval "ac_cv_lib_$ac_lib_var=yes"
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3582 eval "ac_cv_lib_$ac_lib_var=no"
3585 LIBS="$ac_save_LIBS"
3588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3589 echo "$ac_t""yes" 1>&6
3590 LIB_VLC="${LIB_VLC} -lrt"
3592 echo "$ac_t""no" 1>&6
3594 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3595 echo "configure:3596: checking for nanosleep in -lposix4" >&5
3596 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3600 ac_save_LIBS="$LIBS"
3601 LIBS="-lposix4 $LIBS"
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 /* Override any gcc2 internal prototype to avoid an error. */
3606 /* We use char because int might match the return type of a gcc2
3607 builtin and then its argument prototype would still apply. */
3614 if { (eval echo configure:3615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3616 eval "ac_cv_lib_$ac_lib_var=yes"
3618 echo "configure: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3621 eval "ac_cv_lib_$ac_lib_var=no"
3624 LIBS="$ac_save_LIBS"
3627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3628 echo "$ac_t""yes" 1>&6
3629 LIB_VLC="${LIB_VLC} -lposix4"
3631 echo "$ac_t""no" 1>&6
3640 for ac_func in usleep
3642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3643 echo "configure:3644: checking for $ac_func" >&5
3644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 /* System header to define __stub macros and hopefully few prototypes,
3651 which can conflict with char $ac_func(); below. */
3653 /* Override any gcc2 internal prototype to avoid an error. */
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3660 /* The GNU C library defines this for functions which it implements
3661 to always fail with ENOSYS. Some functions are actually named
3662 something starting with __ and the normal name is an alias. */
3663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3671 if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3673 eval "ac_cv_func_$ac_func=yes"
3675 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3678 eval "ac_cv_func_$ac_func=no"
3683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3684 echo "$ac_t""yes" 1>&6
3685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3686 cat >> confdefs.h <<EOF
3687 #define $ac_tr_func 1
3691 echo "$ac_t""no" 1>&6
3695 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3696 echo "configure:3697: checking for inet_aton" >&5
3697 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 /* System header to define __stub macros and hopefully few prototypes,
3704 which can conflict with char inet_aton(); below. */
3706 /* Override any gcc2 internal prototype to avoid an error. */
3707 /* We use char because int might match the return type of a gcc2
3708 builtin and then its argument prototype would still apply. */
3713 /* The GNU C library defines this for functions which it implements
3714 to always fail with ENOSYS. Some functions are actually named
3715 something starting with __ and the normal name is an alias. */
3716 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3724 if { (eval echo configure:3725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3726 eval "ac_cv_func_inet_aton=yes"
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3731 eval "ac_cv_func_inet_aton=no"
3736 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3737 echo "$ac_t""yes" 1>&6
3740 echo "$ac_t""no" 1>&6
3742 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3743 echo "configure:3744: checking for inet_aton in -lresolv" >&5
3744 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3748 ac_save_LIBS="$LIBS"
3749 LIBS="-lresolv $LIBS"
3750 cat > conftest.$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3762 if { (eval echo configure:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3764 eval "ac_cv_lib_$ac_lib_var=yes"
3766 echo "configure: failed program was:" >&5
3767 cat conftest.$ac_ext >&5
3769 eval "ac_cv_lib_$ac_lib_var=no"
3772 LIBS="$ac_save_LIBS"
3775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3776 echo "$ac_t""yes" 1>&6
3777 LIB_VLC="${LIB_IPV4} -lresolv"
3779 echo "$ac_t""no" 1>&6
3785 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3786 echo "configure:3787: checking for textdomain" >&5
3787 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 /* System header to define __stub macros and hopefully few prototypes,
3794 which can conflict with char textdomain(); below. */
3796 /* Override any gcc2 internal prototype to avoid an error. */
3797 /* We use char because int might match the return type of a gcc2
3798 builtin and then its argument prototype would still apply. */
3803 /* The GNU C library defines this for functions which it implements
3804 to always fail with ENOSYS. Some functions are actually named
3805 something starting with __ and the normal name is an alias. */
3806 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3814 if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3816 eval "ac_cv_func_textdomain=yes"
3818 echo "configure: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3821 eval "ac_cv_func_textdomain=no"
3826 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3827 echo "$ac_t""yes" 1>&6
3830 echo "$ac_t""no" 1>&6
3832 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3833 echo "configure:3834: checking for textdomain in -lintl" >&5
3834 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3838 ac_save_LIBS="$LIBS"
3840 cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3852 if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3854 eval "ac_cv_lib_$ac_lib_var=yes"
3856 echo "configure: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3859 eval "ac_cv_lib_$ac_lib_var=no"
3862 LIBS="$ac_save_LIBS"
3865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3867 LIB_VLC="${LIB_VLC} -lintl"
3869 echo "$ac_t""no" 1>&6
3875 for ac_func in vasprintf
3877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3878 echo "configure:3879: checking for $ac_func" >&5
3879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3882 cat > conftest.$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3885 /* System header to define __stub macros and hopefully few prototypes,
3886 which can conflict with char $ac_func(); below. */
3888 /* Override any gcc2 internal prototype to avoid an error. */
3889 /* We use char because int might match the return type of a gcc2
3890 builtin and then its argument prototype would still apply. */
3895 /* The GNU C library defines this for functions which it implements
3896 to always fail with ENOSYS. Some functions are actually named
3897 something starting with __ and the normal name is an alias. */
3898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3906 if { (eval echo configure:3907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3908 eval "ac_cv_func_$ac_func=yes"
3910 echo "configure: failed program was:" >&5
3911 cat conftest.$ac_ext >&5
3913 eval "ac_cv_func_$ac_func=no"
3918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3919 echo "$ac_t""yes" 1>&6
3920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3921 cat >> confdefs.h <<EOF
3922 #define $ac_tr_func 1
3926 echo "$ac_t""no" 1>&6
3932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3933 echo "configure:3934: checking for $ac_func" >&5
3934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3937 cat > conftest.$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3940 /* System header to define __stub macros and hopefully few prototypes,
3941 which can conflict with char $ac_func(); below. */
3943 /* Override any gcc2 internal prototype to avoid an error. */
3944 /* We use char because int might match the return type of a gcc2
3945 builtin and then its argument prototype would still apply. */
3950 /* The GNU C library defines this for functions which it implements
3951 to always fail with ENOSYS. Some functions are actually named
3952 something starting with __ and the normal name is an alias. */
3953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3961 if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3963 eval "ac_cv_func_$ac_func=yes"
3965 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3968 eval "ac_cv_func_$ac_func=no"
3973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3974 echo "$ac_t""yes" 1>&6
3975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3976 cat >> confdefs.h <<EOF
3977 #define $ac_tr_func 1
3981 echo "$ac_t""no" 1>&6
3985 for ac_func in memalign valloc
3987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3988 echo "configure:3989: checking for $ac_func" >&5
3989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 /* System header to define __stub macros and hopefully few prototypes,
3996 which can conflict with char $ac_func(); below. */
3998 /* Override any gcc2 internal prototype to avoid an error. */
3999 /* We use char because int might match the return type of a gcc2
4000 builtin and then its argument prototype would still apply. */
4005 /* The GNU C library defines this for functions which it implements
4006 to always fail with ENOSYS. Some functions are actually named
4007 something starting with __ and the normal name is an alias. */
4008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4016 if { (eval echo configure:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4018 eval "ac_cv_func_$ac_func=yes"
4020 echo "configure: failed program was:" >&5
4021 cat conftest.$ac_ext >&5
4023 eval "ac_cv_func_$ac_func=no"
4028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4029 echo "$ac_t""yes" 1>&6
4030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4031 cat >> confdefs.h <<EOF
4032 #define $ac_tr_func 1
4036 echo "$ac_t""no" 1>&6
4041 for ac_func in sigrelse
4043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4044 echo "configure:4045: checking for $ac_func" >&5
4045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4051 /* System header to define __stub macros and hopefully few prototypes,
4052 which can conflict with char $ac_func(); below. */
4054 /* Override any gcc2 internal prototype to avoid an error. */
4055 /* We use char because int might match the return type of a gcc2
4056 builtin and then its argument prototype would still apply. */
4061 /* The GNU C library defines this for functions which it implements
4062 to always fail with ENOSYS. Some functions are actually named
4063 something starting with __ and the normal name is an alias. */
4064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4072 if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4074 eval "ac_cv_func_$ac_func=yes"
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4079 eval "ac_cv_func_$ac_func=no"
4084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4085 echo "$ac_t""yes" 1>&6
4086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4087 cat >> confdefs.h <<EOF
4088 #define $ac_tr_func 1
4092 echo "$ac_t""no" 1>&6
4096 for ac_func in getpwuid
4098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4099 echo "configure:4100: checking for $ac_func" >&5
4100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4103 cat > conftest.$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4106 /* System header to define __stub macros and hopefully few prototypes,
4107 which can conflict with char $ac_func(); below. */
4109 /* Override any gcc2 internal prototype to avoid an error. */
4110 /* We use char because int might match the return type of a gcc2
4111 builtin and then its argument prototype would still apply. */
4116 /* The GNU C library defines this for functions which it implements
4117 to always fail with ENOSYS. Some functions are actually named
4118 something starting with __ and the normal name is an alias. */
4119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4127 if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4129 eval "ac_cv_func_$ac_func=yes"
4131 echo "configure: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4134 eval "ac_cv_func_$ac_func=no"
4139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4140 echo "$ac_t""yes" 1>&6
4141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4142 cat >> confdefs.h <<EOF
4143 #define $ac_tr_func 1
4147 echo "$ac_t""no" 1>&6
4153 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4154 echo "configure:4155: checking for getopt_long" >&5
4155 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 cat > conftest.$ac_ext <<EOF
4159 #line 4160 "configure"
4160 #include "confdefs.h"
4161 /* System header to define __stub macros and hopefully few prototypes,
4162 which can conflict with char getopt_long(); below. */
4164 /* Override any gcc2 internal prototype to avoid an error. */
4165 /* We use char because int might match the return type of a gcc2
4166 builtin and then its argument prototype would still apply. */
4171 /* The GNU C library defines this for functions which it implements
4172 to always fail with ENOSYS. Some functions are actually named
4173 something starting with __ and the normal name is an alias. */
4174 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4182 if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4184 eval "ac_cv_func_getopt_long=yes"
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4189 eval "ac_cv_func_getopt_long=no"
4194 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4195 echo "$ac_t""yes" 1>&6
4196 cat >> confdefs.h <<\EOF
4197 #define HAVE_GETOPT_LONG 1
4201 echo "$ac_t""no" 1>&6
4202 # FreeBSD has a gnugetopt library for this:
4203 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4204 echo "configure:4205: checking for getopt_long in -lgnugetopt" >&5
4205 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4209 ac_save_LIBS="$LIBS"
4210 LIBS="-lgnugetopt $LIBS"
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214 /* Override any gcc2 internal prototype to avoid an error. */
4215 /* We use char because int might match the return type of a gcc2
4216 builtin and then its argument prototype would still apply. */
4223 if { (eval echo configure:4224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4225 eval "ac_cv_lib_$ac_lib_var=yes"
4227 echo "configure: failed program was:" >&5
4228 cat conftest.$ac_ext >&5
4230 eval "ac_cv_lib_$ac_lib_var=no"
4233 LIBS="$ac_save_LIBS"
4236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4237 echo "$ac_t""yes" 1>&6
4238 cat >> confdefs.h <<\EOF
4239 #define HAVE_GETOPT_LONG 1
4241 LIB_VLC="${LIB_VLC} -lgnugetopt"
4243 echo "$ac_t""no" 1>&6
4250 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4251 echo "configure:4252: checking return type of signal handlers" >&5
4252 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 #include <sys/types.h>
4264 extern "C" void (*signal (int, void (*)(int)))(int);
4266 void (*signal ()) ();
4273 if { (eval echo configure:4274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4275 ac_cv_type_signal=void
4277 echo "configure: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4280 ac_cv_type_signal=int
4285 echo "$ac_t""$ac_cv_type_signal" 1>&6
4286 cat >> confdefs.h <<EOF
4287 #define RETSIGTYPE $ac_cv_type_signal
4291 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4292 echo "configure:4293: checking for dlopen in -ldl" >&5
4293 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4295 echo $ac_n "(cached) $ac_c" 1>&6
4297 ac_save_LIBS="$LIBS"
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4302 /* Override any gcc2 internal prototype to avoid an error. */
4303 /* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4311 if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4313 eval "ac_cv_lib_$ac_lib_var=yes"
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4318 eval "ac_cv_lib_$ac_lib_var=no"
4321 LIBS="$ac_save_LIBS"
4324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4325 echo "$ac_t""yes" 1>&6
4326 LIB_VLC="${LIB_VLC} -ldl"
4328 echo "$ac_t""no" 1>&6
4331 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4332 echo "configure:4333: checking for cos in -lm" >&5
4333 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 ac_save_LIBS="$LIBS"
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 /* Override any gcc2 internal prototype to avoid an error. */
4343 /* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4351 if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4353 eval "ac_cv_lib_$ac_lib_var=yes"
4355 echo "configure: failed program was:" >&5
4356 cat conftest.$ac_ext >&5
4358 eval "ac_cv_lib_$ac_lib_var=no"
4361 LIBS="$ac_save_LIBS"
4364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4365 echo "$ac_t""yes" 1>&6
4366 LIB_IMDCT="${LIB_IMDCT} -lm"
4367 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4369 echo "$ac_t""no" 1>&6
4372 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4373 echo "configure:4374: checking for pow in -lm" >&5
4374 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4378 ac_save_LIBS="$LIBS"
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4383 /* Override any gcc2 internal prototype to avoid an error. */
4384 /* We use char because int might match the return type of a gcc2
4385 builtin and then its argument prototype would still apply. */
4392 if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4394 eval "ac_cv_lib_$ac_lib_var=yes"
4396 echo "configure: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4399 eval "ac_cv_lib_$ac_lib_var=no"
4402 LIBS="$ac_save_LIBS"
4405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4406 echo "$ac_t""yes" 1>&6
4407 LIB_IMDCT="${LIB_IMDCT} -lm"
4408 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4409 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4410 LIB_CHROMA_I420_RGB="${LIB_CHROMA_I420_RGB} -lm"
4413 echo "$ac_t""no" 1>&6
4418 if test "x${THREAD_LIB}" = xerror; then
4419 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4420 echo "configure:4421: checking for pthread_attr_init in -lpthread" >&5
4421 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4425 ac_save_LIBS="$LIBS"
4426 LIBS="-lpthread $LIBS"
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4430 /* Override any gcc2 internal prototype to avoid an error. */
4431 /* We use char because int might match the return type of a gcc2
4432 builtin and then its argument prototype would still apply. */
4433 char pthread_attr_init();
4439 if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4441 eval "ac_cv_lib_$ac_lib_var=yes"
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4446 eval "ac_cv_lib_$ac_lib_var=no"
4449 LIBS="$ac_save_LIBS"
4452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4454 THREAD_LIB="-lpthread"
4456 echo "$ac_t""no" 1>&6
4460 if test "x${THREAD_LIB}" = xerror; then
4461 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4462 echo "configure:4463: checking for pthread_attr_init in -lpthreads" >&5
4463 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4467 ac_save_LIBS="$LIBS"
4468 LIBS="-lpthreads $LIBS"
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4472 /* Override any gcc2 internal prototype to avoid an error. */
4473 /* We use char because int might match the return type of a gcc2
4474 builtin and then its argument prototype would still apply. */
4475 char pthread_attr_init();
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483 eval "ac_cv_lib_$ac_lib_var=yes"
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4488 eval "ac_cv_lib_$ac_lib_var=no"
4491 LIBS="$ac_save_LIBS"
4494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4495 echo "$ac_t""yes" 1>&6
4496 THREAD_LIB="-lpthreads"
4498 echo "$ac_t""no" 1>&6
4502 if test "x${THREAD_LIB}" = xerror; then
4503 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4504 echo "configure:4505: checking for pthread_attr_init in -lc_r" >&5
4505 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4509 ac_save_LIBS="$LIBS"
4511 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4514 /* Override any gcc2 internal prototype to avoid an error. */
4515 /* We use char because int might match the return type of a gcc2
4516 builtin and then its argument prototype would still apply. */
4517 char pthread_attr_init();
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4525 eval "ac_cv_lib_$ac_lib_var=yes"
4527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4530 eval "ac_cv_lib_$ac_lib_var=no"
4533 LIBS="$ac_save_LIBS"
4536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4537 echo "$ac_t""yes" 1>&6
4540 echo "$ac_t""no" 1>&6
4544 if test "x${THREAD_LIB}" = xerror; then
4545 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4546 echo "configure:4547: checking for pthread_attr_init" >&5
4547 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4548 echo $ac_n "(cached) $ac_c" 1>&6
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4553 /* System header to define __stub macros and hopefully few prototypes,
4554 which can conflict with char pthread_attr_init(); below. */
4556 /* Override any gcc2 internal prototype to avoid an error. */
4557 /* We use char because int might match the return type of a gcc2
4558 builtin and then its argument prototype would still apply. */
4559 char pthread_attr_init();
4563 /* The GNU C library defines this for functions which it implements
4564 to always fail with ENOSYS. Some functions are actually named
4565 something starting with __ and the normal name is an alias. */
4566 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4569 pthread_attr_init();
4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4576 eval "ac_cv_func_pthread_attr_init=yes"
4578 echo "configure: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4581 eval "ac_cv_func_pthread_attr_init=no"
4586 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4587 echo "$ac_t""yes" 1>&6
4590 echo "$ac_t""no" 1>&6
4596 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4597 echo "configure:4598: checking for cthread_fork in -lthreads" >&5
4598 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4602 ac_save_LIBS="$LIBS"
4603 LIBS="-lthreads $LIBS"
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 /* Override any gcc2 internal prototype to avoid an error. */
4608 /* We use char because int might match the return type of a gcc2
4609 builtin and then its argument prototype would still apply. */
4610 char cthread_fork();
4616 if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4618 eval "ac_cv_lib_$ac_lib_var=yes"
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4623 eval "ac_cv_lib_$ac_lib_var=no"
4626 LIBS="$ac_save_LIBS"
4629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4630 echo "$ac_t""yes" 1>&6
4631 THREAD_LIB="-lthreads"
4633 echo "$ac_t""no" 1>&6
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4640 #include <pthread.h>
4642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4643 egrep "pthread_cond_t" >/dev/null 2>&1; then
4646 cat >> confdefs.h <<\EOF
4647 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4653 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 #include <strings.h>
4658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4659 egrep "strncasecmp" >/dev/null 2>&1; then
4662 cat >> confdefs.h <<\EOF
4663 #define STRNCASECMP_IN_STRINGS_H 1
4670 for ac_hdr in getopt.h strings.h
4672 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4674 echo "configure:4675: checking for $ac_hdr" >&5
4675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4684 { (eval echo configure:4685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4686 if test -z "$ac_err"; then
4688 eval "ac_cv_header_$ac_safe=yes"
4691 echo "configure: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4694 eval "ac_cv_header_$ac_safe=no"
4698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4699 echo "$ac_t""yes" 1>&6
4700 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4701 cat >> confdefs.h <<EOF
4702 #define $ac_tr_hdr 1
4706 echo "$ac_t""no" 1>&6
4710 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_hdr" >&5
4715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4724 { (eval echo configure:4725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4726 if test -z "$ac_err"; then
4728 eval "ac_cv_header_$ac_safe=yes"
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4734 eval "ac_cv_header_$ac_safe=no"
4738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4741 cat >> confdefs.h <<EOF
4742 #define $ac_tr_hdr 1
4746 echo "$ac_t""no" 1>&6
4750 for ac_hdr in dlfcn.h image.h
4752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4754 echo "configure:4755: checking for $ac_hdr" >&5
4755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4758 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4764 { (eval echo configure:4765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4766 if test -z "$ac_err"; then
4768 eval "ac_cv_header_$ac_safe=yes"
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4774 eval "ac_cv_header_$ac_safe=no"
4778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4779 echo "$ac_t""yes" 1>&6
4780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4781 cat >> confdefs.h <<EOF
4782 #define $ac_tr_hdr 1
4786 echo "$ac_t""no" 1>&6
4790 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4794 echo "configure:4795: checking for $ac_hdr" >&5
4795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4804 { (eval echo configure:4805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4806 if test -z "$ac_err"; then
4808 eval "ac_cv_header_$ac_safe=yes"
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4814 eval "ac_cv_header_$ac_safe=no"
4818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4819 echo "$ac_t""yes" 1>&6
4820 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4821 cat >> confdefs.h <<EOF
4822 #define $ac_tr_hdr 1
4826 echo "$ac_t""no" 1>&6
4830 for ac_hdr in machine/param.h sys/shm.h
4832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4834 echo "configure:4835: checking for $ac_hdr" >&5
4835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4838 cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure"
4840 #include "confdefs.h"
4843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4844 { (eval echo configure:4845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4846 if test -z "$ac_err"; then
4848 eval "ac_cv_header_$ac_safe=yes"
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4854 eval "ac_cv_header_$ac_safe=no"
4858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4861 cat >> confdefs.h <<EOF
4862 #define $ac_tr_hdr 1
4866 echo "$ac_t""no" 1>&6
4871 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4872 echo "configure:4873: checking whether time.h and sys/time.h may both be included" >&5
4873 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
4876 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4879 #include <sys/types.h>
4880 #include <sys/time.h>
4886 if { (eval echo configure:4887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4888 ac_cv_header_time=yes
4890 echo "configure: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4893 ac_cv_header_time=no
4898 echo "$ac_t""$ac_cv_header_time" 1>&6
4899 if test $ac_cv_header_time = yes; then
4900 cat >> confdefs.h <<\EOF
4901 #define TIME_WITH_SYS_TIME 1
4907 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4911 echo "configure:4912: checking for $ac_hdr" >&5
4912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4921 { (eval echo configure:4922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4923 if test -z "$ac_err"; then
4925 eval "ac_cv_header_$ac_safe=yes"
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4931 eval "ac_cv_header_$ac_safe=no"
4935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4938 cat >> confdefs.h <<EOF
4939 #define $ac_tr_hdr 1
4943 echo "$ac_t""no" 1>&6
4948 if test x$SYS != xmingw32
4950 if test x$x_includes = xNONE; then
4951 x_includes=/usr/X11R6/include
4953 if test x$x_libraries = xNONE; then
4954 x_libraries=/usr/X11R6/lib
4956 saved_CPPFLAGS=$CPPFLAGS
4957 CPPFLAGS="$CPPFLAGS -I$x_includes"
4958 for ac_hdr in X11/extensions/dpms.h
4960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4962 echo "configure:4963: checking for $ac_hdr" >&5
4963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4964 echo $ac_n "(cached) $ac_c" 1>&6
4966 cat > conftest.$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4972 { (eval echo configure:4973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4974 if test -z "$ac_err"; then
4976 eval "ac_cv_header_$ac_safe=yes"
4979 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4982 eval "ac_cv_header_$ac_safe=no"
4986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4987 echo "$ac_t""yes" 1>&6
4988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4989 cat >> confdefs.h <<EOF
4990 #define $ac_tr_hdr 1
4993 cat > conftest.$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
4996 #include <X11/extensions/dpms.h>
4998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4999 egrep "DPMSInfo" >/dev/null 2>&1; then
5002 cat >> confdefs.h <<\EOF
5003 #define DPMSINFO_IN_DPMS_H 1
5012 echo "$ac_t""no" 1>&6
5016 CPPFLAGS=$saved_CPPFLAGS
5019 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5020 echo "configure:5021: checking for ntohl in sys/param.h" >&5
5021 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5024 CFLAGS="${save_CFLAGS} -Wall -Werror"
5025 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5028 #include <sys/param.h>
5030 void foo() { int meuh; ntohl(meuh); }
5033 if { (eval echo configure:5034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5035 ac_cv_c_ntohl_sys_param_h=yes
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5040 ac_cv_c_ntohl_sys_param_h=no
5045 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5046 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5047 cat >> confdefs.h <<\EOF
5048 #define NTOHL_IN_SYS_PARAM_H 1
5053 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5054 echo "configure:5055: checking if \$CC accepts -finline-limit" >&5
5055 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5056 echo $ac_n "(cached) $ac_c" 1>&6
5058 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5059 cat > conftest.$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5067 if { (eval echo configure:5068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5069 ac_cv_c_inline_limit=yes
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5074 ac_cv_c_inline_limit=no
5079 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5080 if test x"$ac_cv_c_inline_limit" != x"no"; then
5081 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5084 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5085 echo "configure:5086: checking if \$CC accepts -Wall -Winline" >&5
5086 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5087 echo $ac_n "(cached) $ac_c" 1>&6
5089 CFLAGS="${save_CFLAGS} -Wall -Winline"
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5098 if { (eval echo configure:5099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5100 ac_cv_c_Wall_Winline=yes
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 ac_cv_c_Wall_Winline=no
5110 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5111 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5112 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
5114 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5115 echo "configure:5116: checking if \$CC accepts -wall -winline" >&5
5116 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5119 CFLAGS="${save_CFLAGS} -wall -winline"
5120 cat > conftest.$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5128 if { (eval echo configure:5129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5130 ac_cv_c_wall_winline=yes
5132 echo "configure: failed program was:" >&5
5133 cat conftest.$ac_ext >&5
5135 ac_cv_c_wall_winline=no
5140 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5141 if test x"$ac_cv_c_wall_winline" != x"no"; then
5142 save_CFLAGS="${save_CFLAGS} -wall -winline"
5146 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5147 echo "configure:5148: checking if \$CC accepts -pipe" >&5
5148 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5151 CFLAGS="${save_CFLAGS} -pipe"
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5160 if { (eval echo configure:5161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5164 echo "configure: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5172 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5173 if test x"$ac_cv_c_pipe" != x"no"; then
5174 save_CFLAGS="${save_CFLAGS} -pipe"
5177 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5178 echo "configure:5179: checking if \$CC accepts -O3" >&5
5179 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5182 CFLAGS="${save_CFLAGS} -O3"
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5191 if { (eval echo configure:5192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5195 echo "configure: failed program was:" >&5
5196 cat conftest.$ac_ext >&5
5203 echo "$ac_t""$ac_cv_c_o3" 1>&6
5204 if test x"$ac_cv_c_o3" != x"no"; then
5205 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5207 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5208 echo "configure:5209: checking if \$CC accepts -O2" >&5
5209 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5210 echo $ac_n "(cached) $ac_c" 1>&6
5212 CFLAGS="${save_CFLAGS} -O2"
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5221 if { (eval echo configure:5222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5225 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5233 echo "$ac_t""$ac_cv_c_o2" 1>&6
5234 if test x"$ac_cv_c_o2" != x"no"; then
5235 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5237 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5238 echo "configure:5239: checking if \$CC accepts -O" >&5
5239 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5242 CFLAGS="${save_CFLAGS} -O"
5243 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5251 if { (eval echo configure:5252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5255 echo "configure: failed program was:" >&5
5256 cat conftest.$ac_ext >&5
5263 echo "$ac_t""$ac_cv_c_o" 1>&6
5264 if test x"$ac_cv_c_o" != x"no"; then
5265 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5270 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5271 echo "configure:5272: checking if \$CC accepts -ffast-math" >&5
5272 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5275 CFLAGS="${save_CFLAGS} -ffast-math"
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5284 if { (eval echo configure:5285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5286 ac_cv_c_fast_math=yes
5288 echo "configure: failed program was:" >&5
5289 cat conftest.$ac_ext >&5
5291 ac_cv_c_fast_math=no
5296 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5297 if test x"$ac_cv_c_fast_math" != x"no"; then
5298 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5301 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5302 echo "configure:5303: checking if \$CC accepts -funroll-loops" >&5
5303 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5304 echo $ac_n "(cached) $ac_c" 1>&6
5306 CFLAGS="${save_CFLAGS} -funroll-loops"
5307 cat > conftest.$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5315 if { (eval echo configure:5316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5317 ac_cv_c_unroll_loops=yes
5319 echo "configure: failed program was:" >&5
5320 cat conftest.$ac_ext >&5
5322 ac_cv_c_unroll_loops=no
5327 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5328 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5329 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5332 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5333 echo "configure:5334: checking if \$CC accepts -fomit-frame-pointer" >&5
5334 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5337 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5346 if { (eval echo configure:5347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5348 ac_cv_c_omit_frame_pointer=yes
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5353 ac_cv_c_omit_frame_pointer=no
5358 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5359 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5360 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5363 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5364 echo "configure:5365: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5365 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5369 cat > conftest.$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5377 if { (eval echo configure:5378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5389 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5390 if test x"$ac_cv_ld_darwin" != x"no"; then
5391 PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5394 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5395 echo "configure:5396: checking if \$CC accepts -shared" >&5
5396 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5397 echo $ac_n "(cached) $ac_c" 1>&6
5399 CFLAGS="${save_CFLAGS} -shared"
5400 cat > conftest.$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5408 if { (eval echo configure:5409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5410 ac_cv_ld_plugins=yes
5412 echo "configure: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5420 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5421 if test x"$ac_cv_ld_plugins" != x"no"; then
5422 PLDFLAGS="${PLDFLAGS} -shared"
5425 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5426 echo "configure:5427: checking __attribute__ ((aligned ())) support" >&5
5427 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5428 echo $ac_n "(cached) $ac_c" 1>&6
5430 ac_cv_c_attribute_aligned=0
5431 CFLAGS="${save_CFLAGS} -Werror"
5432 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5438 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5441 if { (eval echo configure:5442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5443 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5445 echo "configure: failed program was:" >&5
5446 cat conftest.$ac_ext >&5
5452 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5453 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5454 cat >> confdefs.h <<EOF
5455 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5460 CFLAGS="${save_CFLAGS}"
5461 LDFLAGS="${save_LDFLAGS}"
5463 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5464 echo "configure:5465: checking for boolean_t in sys/types.h" >&5
5465 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 #include <sys/types.h>
5476 if { (eval echo configure:5477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5478 ac_cv_c_boolean_t_sys_types_h=yes
5480 echo "configure: failed program was:" >&5
5481 cat conftest.$ac_ext >&5
5483 ac_cv_c_boolean_t_sys_types_h=no
5488 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5489 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5490 cat >> confdefs.h <<\EOF
5491 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5496 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5497 echo "configure:5498: checking for boolean_t in pthread.h" >&5
5498 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5501 cat > conftest.$ac_ext <<EOF
5502 #line 5503 "configure"
5503 #include "confdefs.h"
5504 #include <pthread.h>
5509 if { (eval echo configure:5510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5511 ac_cv_c_boolean_t_pthread_h=yes
5513 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5516 ac_cv_c_boolean_t_pthread_h=no
5521 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5522 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5523 cat >> confdefs.h <<\EOF
5524 #define BOOLEAN_T_IN_PTHREAD_H 1
5529 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5530 echo "configure:5531: checking for boolean_t in cthreads.h" >&5
5531 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5532 echo $ac_n "(cached) $ac_c" 1>&6
5534 cat > conftest.$ac_ext <<EOF
5535 #line 5536 "configure"
5536 #include "confdefs.h"
5537 #include <cthreads.h>
5542 if { (eval echo configure:5543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5544 ac_cv_c_boolean_t_cthreads_h=yes
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 ac_cv_c_boolean_t_cthreads_h=no
5554 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5555 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5556 cat >> confdefs.h <<\EOF
5557 #define BOOLEAN_T_IN_CTHREADS_H 1
5562 case x"${target_cpu}" in
5571 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"
5572 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"
5574 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5575 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5576 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5577 if test x$SYS != xmingw32; then
5578 SSE_MODULES="imdctsse downmixsse"
5580 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5582 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5583 echo "configure:5584: checking if \$CC groks MMX inline assembly" >&5
5584 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5585 echo $ac_n "(cached) $ac_c" 1>&6
5587 cat > conftest.$ac_ext <<EOF
5588 #line 5589 "configure"
5589 #include "confdefs.h"
5592 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5595 if { (eval echo configure:5596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5597 ac_cv_mmx_inline=yes
5599 echo "configure: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5607 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5608 if test x"$ac_cv_mmx_inline" != x"no"; then
5609 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5612 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5613 echo "configure:5614: checking if \$CC groks MMX EXT inline assembly" >&5
5614 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5617 cat > conftest.$ac_ext <<EOF
5618 #line 5619 "configure"
5619 #include "confdefs.h"
5622 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5625 if { (eval echo configure:5626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5627 ac_cv_mmxext_inline=yes
5629 echo "configure: failed program was:" >&5
5630 cat conftest.$ac_ext >&5
5632 ac_cv_mmxext_inline=no
5637 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5638 if test x"$ac_cv_mmxext_inline" != x"no"; then
5639 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5642 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5643 echo "configure:5644: checking if \$CC groks 3D Now! inline assembly" >&5
5644 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5652 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5655 if { (eval echo configure:5656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5657 ac_cv_3dnow_inline=yes
5659 echo "configure: failed program was:" >&5
5660 cat conftest.$ac_ext >&5
5662 ac_cv_3dnow_inline=no
5667 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5668 if test x"$ac_cv_3dnow_inline" != x"no"; then
5669 cat >> confdefs.h <<\EOF
5670 #define CAN_COMPILE_3DNOW 1
5673 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5676 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5677 echo "configure:5678: checking if \$CC groks SSE inline assembly" >&5
5678 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5679 echo $ac_n "(cached) $ac_c" 1>&6
5681 cat > conftest.$ac_ext <<EOF
5682 #line 5683 "configure"
5683 #include "confdefs.h"
5686 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5689 if { (eval echo configure:5690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5691 ac_cv_sse_inline=yes
5693 echo "configure: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5701 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5702 if test x"$ac_cv_sse_inline" != x"no"; then
5703 cat >> confdefs.h <<\EOF
5704 #define CAN_COMPILE_SSE 1
5707 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5710 # don't try to grok altivec with native mingw32 it doesn't work right now
5711 # we should be able to remove this test with future versions of mingw32
5712 if test x$SYS != xmingw32; then
5713 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5714 echo "configure:5715: checking if \$CC groks Altivec inline assembly" >&5
5715 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5723 asm volatile("vperm 0,1,2,3");
5726 if { (eval echo configure:5727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5728 ac_cv_altivec_inline=yes
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5734 CFLAGS="$CFLAGS -Wa,-m7400"
5735 cat > conftest.$ac_ext <<EOF
5736 #line 5737 "configure"
5737 #include "confdefs.h"
5740 asm volatile("vperm 0,1,2,3");
5743 if { (eval echo configure:5744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5745 ac_cv_altivec_inline="-Wa,-m7400"
5747 echo "configure: failed program was:" >&5
5748 cat conftest.$ac_ext >&5
5750 ac_cv_altivec_inline=no
5759 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5760 if test x"$ac_cv_altivec_inline" != x"no"; then
5761 cat >> confdefs.h <<\EOF
5762 #define CAN_COMPILE_ALTIVEC 1
5765 if test x"$ac_cv_altivec_inline" != x"yes"; then
5766 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5767 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5768 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5770 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5773 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5774 echo "configure:5775: checking if \$CC groks Altivec C extensions" >&5
5775 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5776 echo $ac_n "(cached) $ac_c" 1>&6
5779 CFLAGS="$CFLAGS -faltivec"
5781 cat > conftest.$ac_ext <<EOF
5782 #line 5783 "configure"
5783 #include "confdefs.h"
5786 vec_mtvscr((vector unsigned int)(0));
5789 if { (eval echo configure:5790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5791 ac_cv_c_altivec=-faltivec
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5798 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5799 cat > conftest.$ac_ext <<EOF
5800 #line 5801 "configure"
5801 #include "confdefs.h"
5804 vec_mtvscr((vector unsigned int)(0));
5807 if { (eval echo configure:5808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5809 ac_cv_c_altivec="-fvec"
5811 echo "configure: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5824 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5825 if test x"$ac_cv_c_altivec" != x"no"; then
5826 cat >> confdefs.h <<\EOF
5827 #define CAN_COMPILE_C_ALTIVEC 1
5830 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5831 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5832 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5833 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5836 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5837 echo "configure:5838: checking if linker needs -framework vecLib" >&5
5838 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5839 echo $ac_n "(cached) $ac_c" 1>&6
5841 save_LDFLAGS=$LDFLAGS
5842 LDFLAGS="$LDFLAGS -framework vecLib"
5843 cat > conftest.$ac_ext <<EOF
5844 #line 5845 "configure"
5845 #include "confdefs.h"
5851 if { (eval echo configure:5852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5853 ac_cv_ld_altivec=yes
5855 echo "configure: failed program was:" >&5
5856 cat conftest.$ac_ext >&5
5861 LDFLAGS=$save_LDFLAGS
5865 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5866 if test x"$ac_cv_ld_altivec" != x"no"; then
5867 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5868 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5869 LIB_VLC="${LIB_VLC} -framework vecLib"
5874 # Check whether --with- or --without- was given.
5875 if test "${with_+set}" = set; then
5880 # Check whether --with- or --without- was given.
5881 if test "${with_+set}" = set; then
5887 # Check whether --with-tuning or --without-tuning was given.
5888 if test "${with_tuning+set}" = set; then
5889 withval="$with_tuning"
5893 if test "x$withval" != "x"; then
5896 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5898 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5902 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5905 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5908 # Check whether --enable-optimizations or --disable-optimizations was given.
5909 if test "${enable_optimizations+set}" = set; then
5910 enableval="$enable_optimizations"
5911 if test x$enableval = xno; then OPTIMS=0; fi
5917 # Check whether --enable-altivec or --disable-altivec was given.
5918 if test "${enable_altivec+set}" = set; then
5919 enableval="$enable_altivec"
5920 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
5921 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5923 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5924 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5929 # Check whether --enable-debug or --disable-debug was given.
5930 if test "${enable_debug+set}" = set; then
5931 enableval="$enable_debug"
5932 if test x$enableval = xyes; then DEBUG=1; fi
5936 # Check whether --enable-release or --disable-release was given.
5937 if test "${enable_release+set}" = set; then
5938 enableval="$enable_release"
5939 if test x$enableval = xyes; then RELEASE=1; fi
5941 VERSION="${VERSION}_`date +%Y-%m-%d`"
5946 # Check whether --with- or --without- was given.
5947 if test "${with_+set}" = set; then
5953 # Check whether --enable-dvd or --disable-dvd was given.
5954 if test "${enable_dvd+set}" = set; then
5955 enableval="$enable_dvd"
5959 if test "x$enableval" != "xno"
5961 # Check whether --with-dvdcss or --without-dvdcss was given.
5962 if test "${with_dvdcss+set}" = set; then
5963 withval="$with_dvdcss"
5967 case "x$with_dvdcss" in
5969 for ac_hdr in dvdcss/dvdcss.h
5971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5973 echo "configure:5974: checking for $ac_hdr" >&5
5974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5983 { (eval echo configure:5984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5985 if test -z "$ac_err"; then
5987 eval "ac_cv_header_$ac_safe=yes"
5990 echo "configure: failed program was:" >&5
5991 cat conftest.$ac_ext >&5
5993 eval "ac_cv_header_$ac_safe=no"
5997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5998 echo "$ac_t""yes" 1>&6
5999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6000 cat >> confdefs.h <<EOF
6001 #define $ac_tr_hdr 1
6003 PLUGINS="${PLUGINS} dvd"
6004 LIB_DVD="${LIB_DVD} -ldvdcss"
6006 echo "$ac_t""no" 1>&6
6012 PLUGINS="${PLUGINS} dvd"
6013 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6014 LIB_DVD="${LIB_DVD} -ldl"
6017 echo $ac_n "checking for dvdcss headers in ${withval}""... $ac_c" 1>&6
6018 echo "configure:6019: checking for dvdcss headers in ${withval}" >&5
6019 if test -f ${withval}/include/dvdcss/dvdcss.h
6021 echo "$ac_t""yes" 1>&6
6022 PLUGINS="${PLUGINS} dvd"
6023 LIB_DVD="${LIB_DVD} -L${withval}/lib -ldvd"
6024 CFLAGS_DVD="${CFLAGS_DVD} -I${withval}/include"
6026 echo "$ac_t""no" 1>&6
6027 { echo "configure: error: Cannot find ${withval}/dvdcss/dvdcss.h" 1>&2; exit 1; }
6033 # Check whether --enable-dvdread or --disable-dvdread was given.
6034 if test "${enable_dvdread+set}" = set; then
6035 enableval="$enable_dvdread"
6039 if test "x$enableval" != "xno"
6041 # Check whether --with-dvdread or --without-dvdread was given.
6042 if test "${with_dvdread+set}" = set; then
6043 withval="$with_dvdread"
6047 case "x$with_dvdread" in
6049 for ac_hdr in dvdread/dvd_reader.h
6051 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6053 echo "configure:6054: checking for $ac_hdr" >&5
6054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6057 cat > conftest.$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6063 { (eval echo configure:6064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6065 if test -z "$ac_err"; then
6067 eval "ac_cv_header_$ac_safe=yes"
6070 echo "configure: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6073 eval "ac_cv_header_$ac_safe=no"
6077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6078 echo "$ac_t""yes" 1>&6
6079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6080 cat >> confdefs.h <<EOF
6081 #define $ac_tr_hdr 1
6083 PLUGINS="${PLUGINS} dvdread"
6084 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread"
6086 echo "$ac_t""no" 1>&6
6092 echo $ac_n "checking for dvdread headers in ${withval}""... $ac_c" 1>&6
6093 echo "configure:6094: checking for dvdread headers in ${withval}" >&5
6094 if test -f ${withval}/include/dvdread/dvd_reader.h
6096 echo "$ac_t""yes" 1>&6
6097 PLUGINS="${PLUGINS} dvdread"
6098 LIB_DVDREAD="${LIB_DVDREAD} -L${withval}/lib -ldvdread"
6099 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I${withval}/include"
6101 echo "$ac_t""no" 1>&6
6102 { echo "configure: error: Cannot find ${withval}/dvdread/dvd_reader.h" 1>&2; exit 1; }
6108 # Check whether --enable-vcd or --disable-vcd was given.
6109 if test "${enable_vcd+set}" = set; then
6110 enableval="$enable_vcd"
6115 if test x$enable_vcd != xno
6117 cat > conftest.$ac_ext <<EOF
6118 #line 6119 "configure"
6119 #include "confdefs.h"
6120 #include <linux/cdrom.h>
6122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123 egrep "cdrom_msf0" >/dev/null 2>&1; then
6126 PLUGINS="${PLUGINS} vcd"
6132 if test "x${SYS}" = "xbsdi"
6134 PLUGINS="${PLUGINS} vcd"
6137 if test "x${SYS}" = "xdarwin"
6139 PLUGINS="${PLUGINS} vcd"
6140 LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation"
6144 # Check whether --enable-satellite or --disable-satellite was given.
6145 if test "${enable_satellite+set}" = set; then
6146 enableval="$enable_satellite"
6147 if test x$enable_satellite = xyes
6149 BUILTINS="${BUILTINS} satellite"
6150 cat >> confdefs.h <<\EOF
6151 #define HAVE_SATELLITE 1
6158 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6159 echo "configure:6160: checking for inet_pton" >&5
6160 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6163 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6166 /* System header to define __stub macros and hopefully few prototypes,
6167 which can conflict with char inet_pton(); below. */
6169 /* Override any gcc2 internal prototype to avoid an error. */
6170 /* We use char because int might match the return type of a gcc2
6171 builtin and then its argument prototype would still apply. */
6176 /* The GNU C library defines this for functions which it implements
6177 to always fail with ENOSYS. Some functions are actually named
6178 something starting with __ and the normal name is an alias. */
6179 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6187 if { (eval echo configure:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6189 eval "ac_cv_func_inet_pton=yes"
6191 echo "configure: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6194 eval "ac_cv_func_inet_pton=no"
6199 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6200 echo "$ac_t""yes" 1>&6
6201 PLUGINS="${PLUGINS} ipv6"
6203 echo "$ac_t""no" 1>&6
6208 # Check whether --with- or --without- was given.
6209 if test "${with_+set}" = set; then
6215 # Check whether --enable-mad or --disable-mad was given.
6216 if test "${enable_mad+set}" = set; then
6217 enableval="$enable_mad"
6221 if test x$enable_mad = xyes
6223 PLUGINS="${PLUGINS} mad"
6224 LIB_MAD="${LIB_MAD} -lmad"
6225 # Check whether --with-mad or --without-mad was given.
6226 if test "${with_mad+set}" = set; then
6228 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6230 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6231 LIB_MAD="${LIB_MAD} -L$with_val/lib"
6236 save_LDFLAGS=$LDFLAGS
6237 CFLAGS="$CFLAGS $CFLAGS_MAD"
6238 LDFLAGS="$LDFLAGS $LIB_MAD"
6241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6243 echo "configure:6244: checking for $ac_hdr" >&5
6244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6245 echo $ac_n "(cached) $ac_c" 1>&6
6247 cat > conftest.$ac_ext <<EOF
6248 #line 6249 "configure"
6249 #include "confdefs.h"
6252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6253 { (eval echo configure:6254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6255 if test -z "$ac_err"; then
6257 eval "ac_cv_header_$ac_safe=yes"
6260 echo "configure: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6263 eval "ac_cv_header_$ac_safe=no"
6267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6268 echo "$ac_t""yes" 1>&6
6269 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6270 cat >> confdefs.h <<EOF
6271 #define $ac_tr_hdr 1
6275 echo "$ac_t""no" 1>&6
6276 echo "Cannot find development headers for libmad..."
6282 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6283 echo "configure:6284: checking for mad_bit_init in -lmad" >&5
6284 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6286 echo $ac_n "(cached) $ac_c" 1>&6
6288 ac_save_LIBS="$LIBS"
6290 cat > conftest.$ac_ext <<EOF
6291 #line 6292 "configure"
6292 #include "confdefs.h"
6293 /* Override any gcc2 internal prototype to avoid an error. */
6294 /* We use char because int might match the return type of a gcc2
6295 builtin and then its argument prototype would still apply. */
6296 char mad_bit_init();
6302 if { (eval echo configure:6303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6304 eval "ac_cv_lib_$ac_lib_var=yes"
6306 echo "configure: failed program was:" >&5
6307 cat conftest.$ac_ext >&5
6309 eval "ac_cv_lib_$ac_lib_var=no"
6312 LIBS="$ac_save_LIBS"
6315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6316 echo "$ac_t""yes" 1>&6
6317 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6319 cat >> confdefs.h <<EOF
6320 #define $ac_tr_lib 1
6326 echo "$ac_t""no" 1>&6
6327 echo "Cannot find libmad library..."
6333 LDFLAGS=$save_LDFLAGS
6336 if test x$SYS = xbeos
6338 PLUGINS="${PLUGINS} beos"
6342 # Check whether --enable-a52 or --disable-a52 was given.
6343 if test "${enable_a52+set}" = set; then
6344 enableval="$enable_a52"
6348 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6350 for ac_hdr in a52dec/a52.h
6352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6354 echo "configure:6355: checking for $ac_hdr" >&5
6355 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6358 cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6364 { (eval echo configure:6365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6366 if test -z "$ac_err"; then
6368 eval "ac_cv_header_$ac_safe=yes"
6371 echo "configure: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6374 eval "ac_cv_header_$ac_safe=no"
6378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6379 echo "$ac_t""yes" 1>&6
6380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6381 cat >> confdefs.h <<EOF
6382 #define $ac_tr_hdr 1
6385 BUILTINS="${BUILTINS} a52"
6386 LIB_A52="${LIB_A52} -la52 -lm"
6389 echo "$ac_t""no" 1>&6
6395 # Check whether --enable-vorbis or --disable-vorbis was given.
6396 if test "${enable_vorbis+set}" = set; then
6397 enableval="$enable_vorbis"
6401 if test "x$enableval" != "xno"
6403 for ac_hdr in ogg/ogg.h
6405 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6406 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6407 echo "configure:6408: checking for $ac_hdr" >&5
6408 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6409 echo $ac_n "(cached) $ac_c" 1>&6
6411 cat > conftest.$ac_ext <<EOF
6412 #line 6413 "configure"
6413 #include "confdefs.h"
6416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6417 { (eval echo configure:6418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6419 if test -z "$ac_err"; then
6421 eval "ac_cv_header_$ac_safe=yes"
6424 echo "configure: failed program was:" >&5
6425 cat conftest.$ac_ext >&5
6427 eval "ac_cv_header_$ac_safe=no"
6431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6432 echo "$ac_t""yes" 1>&6
6433 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6434 cat >> confdefs.h <<EOF
6435 #define $ac_tr_hdr 1
6438 PLUGINS="${PLUGINS} vorbis"
6439 LIB_VORBIS="${LIB_VORBIS} -lvorbis"
6442 echo "$ac_t""no" 1>&6
6449 # Check whether --with- or --without- was given.
6450 if test "${with_+set}" = set; then
6456 # Check whether --enable-x11 or --disable-x11 was given.
6457 if test "${enable_x11+set}" = set; then
6458 enableval="$enable_x11"
6462 if test x$enable_x11 != xno &&
6463 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6464 if test x$x_includes = xNONE; then
6465 x_includes=/usr/X11R6/include
6467 if test x$x_libraries = xNONE; then
6468 x_libraries=/usr/X11R6/lib
6470 saved_CPPFLAGS=$CPPFLAGS
6471 CPPFLAGS="$CPPFLAGS -I$x_includes"
6472 for ac_hdr in X11/Xlib.h
6474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6476 echo "configure:6477: checking for $ac_hdr" >&5
6477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6480 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6486 { (eval echo configure:6487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6488 if test -z "$ac_err"; then
6490 eval "ac_cv_header_$ac_safe=yes"
6493 echo "configure: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6496 eval "ac_cv_header_$ac_safe=no"
6500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6501 echo "$ac_t""yes" 1>&6
6502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6503 cat >> confdefs.h <<EOF
6504 #define $ac_tr_hdr 1
6507 PLUGINS="${PLUGINS} x11"
6508 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6509 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6512 echo "$ac_t""no" 1>&6
6516 CPPFLAGS=$saved_CPPFLAGS
6519 # Check whether --enable-xvideo or --disable-xvideo was given.
6520 if test "${enable_xvideo+set}" = set; then
6521 enableval="$enable_xvideo"
6525 if test x$enable_xvideo != xno &&
6526 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6527 if test x$x_includes = xNONE; then
6528 x_includes=/usr/X11R6/include
6530 if test x$x_libraries = xNONE; then
6531 x_libraries=/usr/X11R6/lib
6533 saved_CPPFLAGS=$CPPFLAGS
6534 CPPFLAGS="$CPPFLAGS -I$x_includes"
6535 for ac_hdr in X11/extensions/Xv.h
6537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6539 echo "configure:6540: checking for $ac_hdr" >&5
6540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6541 echo $ac_n "(cached) $ac_c" 1>&6
6543 cat > conftest.$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6549 { (eval echo configure:6550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6551 if test -z "$ac_err"; then
6553 eval "ac_cv_header_$ac_safe=yes"
6556 echo "configure: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6559 eval "ac_cv_header_$ac_safe=no"
6563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6564 echo "$ac_t""yes" 1>&6
6565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6566 cat >> confdefs.h <<EOF
6567 #define $ac_tr_hdr 1
6570 saved_CFLAGS=$CFLAGS
6571 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6572 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6573 echo "configure:6574: checking for XvSetPortAttribute in -lXv_pic" >&5
6574 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 ac_save_LIBS="$LIBS"
6579 LIBS="-lXv_pic $LIBS"
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6586 char XvSetPortAttribute();
6589 XvSetPortAttribute()
6592 if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6594 eval "ac_cv_lib_$ac_lib_var=yes"
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6599 eval "ac_cv_lib_$ac_lib_var=no"
6602 LIBS="$ac_save_LIBS"
6605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6606 echo "$ac_t""yes" 1>&6
6607 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6608 PLUGINS="${PLUGINS} xvideo"
6609 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6610 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6612 echo "$ac_t""no" 1>&6
6613 # We don't have Xv_pic, let's make xvideo.a as builtin
6614 BUILTINS="${BUILTINS} xvideo"
6615 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
6616 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6619 CFLAGS=$saved_CFLAGS
6621 CPPFLAGS=$saved_CPPFLAGS
6623 echo "$ac_t""no" 1>&6
6629 # Check whether --enable-sdl or --disable-sdl was given.
6630 if test "${enable_sdl+set}" = set; then
6631 enableval="$enable_sdl"
6635 if test "x$enable_sdl" != "xno"
6638 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6639 if test "${with_sdl_config_path+set}" = set; then
6640 withval="$with_sdl_config_path"
6641 if test "x$withval" != "xno"
6643 SDL_PATH=$withval:$PATH
6647 # Extract the first word of "sdl12-config", so it can be a program name with args.
6648 set dummy sdl12-config; ac_word=$2
6649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6650 echo "configure:6651: checking for $ac_word" >&5
6651 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6652 echo $ac_n "(cached) $ac_c" 1>&6
6654 case "$SDL12_CONFIG" in
6656 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6659 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6663 ac_dummy="$SDL_PATH"
6664 for ac_dir in $ac_dummy; do
6665 test -z "$ac_dir" && ac_dir=.
6666 if test -f $ac_dir/$ac_word; then
6667 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6672 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6676 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6677 if test -n "$SDL12_CONFIG"; then
6678 echo "$ac_t""$SDL12_CONFIG" 1>&6
6680 echo "$ac_t""no" 1>&6
6683 SDL_CONFIG=${SDL12_CONFIG}
6684 SDL_HEADER="SDL12/SDL.h"
6685 if test x${SDL_CONFIG} = xno
6687 # Extract the first word of "sdl11-config", so it can be a program name with args.
6688 set dummy sdl11-config; ac_word=$2
6689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6690 echo "configure:6691: checking for $ac_word" >&5
6691 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 case "$SDL11_CONFIG" in
6696 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6699 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6703 ac_dummy="$SDL_PATH"
6704 for ac_dir in $ac_dummy; do
6705 test -z "$ac_dir" && ac_dir=.
6706 if test -f $ac_dir/$ac_word; then
6707 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6712 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6716 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6717 if test -n "$SDL11_CONFIG"; then
6718 echo "$ac_t""$SDL11_CONFIG" 1>&6
6720 echo "$ac_t""no" 1>&6
6723 SDL_CONFIG=${SDL11_CONFIG}
6724 SDL_HEADER="SDL11/SDL.h"
6726 if test x${SDL_CONFIG} = xno
6728 # Extract the first word of "sdl-config", so it can be a program name with args.
6729 set dummy sdl-config; ac_word=$2
6730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6731 echo "configure:6732: checking for $ac_word" >&5
6732 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6733 echo $ac_n "(cached) $ac_c" 1>&6
6735 case "$SDL_CONFIG" in
6737 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6740 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6744 ac_dummy="$SDL_PATH"
6745 for ac_dir in $ac_dummy; do
6746 test -z "$ac_dir" && ac_dir=.
6747 if test -f $ac_dir/$ac_word; then
6748 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6753 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6757 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6758 if test -n "$SDL_CONFIG"; then
6759 echo "$ac_t""$SDL_CONFIG" 1>&6
6761 echo "$ac_t""no" 1>&6
6764 SDL_HEADER="SDL/SDL.h"
6766 if test x${SDL_CONFIG} != xno
6768 PLUGINS="${PLUGINS} sdl"
6769 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
6770 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6771 save_CPPFLAGS=$CPPFLAGS
6772 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
6773 for ac_hdr in ${SDL_HEADER}
6775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6777 echo "configure:6778: checking for $ac_hdr" >&5
6778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6779 echo $ac_n "(cached) $ac_c" 1>&6
6781 cat > conftest.$ac_ext <<EOF
6782 #line 6783 "configure"
6783 #include "confdefs.h"
6786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6787 { (eval echo configure:6788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6789 if test -z "$ac_err"; then
6791 eval "ac_cv_header_$ac_safe=yes"
6794 echo "configure: failed program was:" >&5
6795 cat conftest.$ac_ext >&5
6797 eval "ac_cv_header_$ac_safe=no"
6801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6802 echo "$ac_t""yes" 1>&6
6803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6804 cat >> confdefs.h <<EOF
6805 #define $ac_tr_hdr 1
6807 cat >> confdefs.h <<EOF
6808 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6812 echo "$ac_t""no" 1>&6
6813 { echo "configure: error: The development package for SDL is not installed.
6814 Please install it and try again. Alternatively you can also configure with
6815 --disable-sdl." 1>&2; exit 1; }
6820 CPPFLAGS=$save_CPPFLAGS
6821 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6823 { echo "configure: error: The development package for SDL is not installed.
6824 Please install it and try again. Alternatively you can also configure with
6825 --disable-sdl." 1>&2; exit 1; }
6827 elif test "x$enable_sdl" = "xyes"
6829 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6830 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6835 # Check whether --enable-directx or --disable-directx was given.
6836 if test "${enable_directx+set}" = set; then
6837 enableval="$enable_directx"
6841 if test "x$enableval" != "xno"
6843 if test x$SYS = xmingw32
6845 # Check whether --with-directx or --without-directx was given.
6846 if test "${with_directx+set}" = set; then
6847 withval="$with_directx"
6851 if test "x$with_directx" = "x"
6853 for ac_hdr in ddraw.h
6855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6857 echo "configure:6858: checking for $ac_hdr" >&5
6858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6867 { (eval echo configure:6868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6869 if test -z "$ac_err"; then
6871 eval "ac_cv_header_$ac_safe=yes"
6874 echo "configure: failed program was:" >&5
6875 cat conftest.$ac_ext >&5
6877 eval "ac_cv_header_$ac_safe=no"
6881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6882 echo "$ac_t""yes" 1>&6
6883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6884 cat >> confdefs.h <<EOF
6885 #define $ac_tr_hdr 1
6887 PLUGINS="${PLUGINS} directx"
6888 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
6890 echo "$ac_t""no" 1>&6
6895 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
6896 echo "configure:6897: checking for directX headers in ${withval}" >&5
6897 if test -f ${withval}/ddraw.h
6899 PLUGINS="${PLUGINS} directx"
6900 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
6901 INCLUDE="${INCLUDE} -I${withval}"
6902 echo "$ac_t""yes" 1>&6
6904 echo "$ac_t""no" 1>&6
6905 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
6911 # Check whether --enable-fb or --disable-fb was given.
6912 if test "${enable_fb+set}" = set; then
6913 enableval="$enable_fb"
6917 if test x$enable_fb != xno
6919 for ac_hdr in linux/fb.h
6921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6923 echo "configure:6924: checking for $ac_hdr" >&5
6924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6925 echo $ac_n "(cached) $ac_c" 1>&6
6927 cat > conftest.$ac_ext <<EOF
6928 #line 6929 "configure"
6929 #include "confdefs.h"
6932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6933 { (eval echo configure:6934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6935 if test -z "$ac_err"; then
6937 eval "ac_cv_header_$ac_safe=yes"
6940 echo "configure: failed program was:" >&5
6941 cat conftest.$ac_ext >&5
6943 eval "ac_cv_header_$ac_safe=no"
6947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6948 echo "$ac_t""yes" 1>&6
6949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6950 cat >> confdefs.h <<EOF
6951 #define $ac_tr_hdr 1
6954 PLUGINS="${PLUGINS} fb"
6957 echo "$ac_t""no" 1>&6
6963 # Check whether --enable-mga or --disable-mga was given.
6964 if test "${enable_mga+set}" = set; then
6965 enableval="$enable_mga"
6966 if test x$enable_mga = xyes
6968 PLUGINS="${PLUGINS} mga xmga"
6973 # Check whether --enable-ggi or --disable-ggi was given.
6974 if test "${enable_ggi+set}" = set; then
6975 enableval="$enable_ggi"
6979 if test x$enable_ggi = xyes
6981 PLUGINS="${PLUGINS} ggi"
6982 LIB_GGI="${LIB_GGI} -lggi"
6983 # Check whether --with-ggi or --without-ggi was given.
6984 if test "${with_ggi+set}" = set; then
6986 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6988 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
6989 LIB_GGI="${LIB_GGI} -L$with_val/lib"
6995 # Check whether --enable-glide or --disable-glide was given.
6996 if test "${enable_glide+set}" = set; then
6997 enableval="$enable_glide"
7001 if test x$enable_glide = xyes
7003 PLUGINS="${PLUGINS} glide"
7004 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7005 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7006 # Check whether --with-glide or --without-glide was given.
7007 if test "${with_glide+set}" = set; then
7008 withval="$with_glide"
7009 if test "x$with_val" != "xno" -a "x$with_val" != "x"
7011 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
7012 LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
7018 # Check whether --enable-aa or --disable-aa was given.
7019 if test "${enable_aa+set}" = set; then
7020 enableval="$enable_aa"
7024 if test x$enable_aa = xyes
7026 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7027 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7028 echo "configure:7029: checking for aalib.h" >&5
7029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7030 echo $ac_n "(cached) $ac_c" 1>&6
7032 cat > conftest.$ac_ext <<EOF
7033 #line 7034 "configure"
7034 #include "confdefs.h"
7037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7038 { (eval echo configure:7039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7040 if test -z "$ac_err"; then
7042 eval "ac_cv_header_$ac_safe=yes"
7045 echo "configure: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7048 eval "ac_cv_header_$ac_safe=no"
7052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7056 echo "$ac_t""no" 1>&6
7060 if test x$have_aa = xtrue
7062 PLUGINS="${PLUGINS} aa"
7063 LIB_AA="${LIB_AA} -laa"
7068 # Check whether --with- or --without- was given.
7069 if test "${with_+set}" = set; then
7075 # Check whether --enable-dsp or --disable-dsp was given.
7076 if test "${enable_dsp+set}" = set; then
7077 enableval="$enable_dsp"
7082 if test x$enable_dsp != xno &&
7083 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7085 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7089 echo "configure:7090: checking for $ac_hdr" >&5
7090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7091 echo $ac_n "(cached) $ac_c" 1>&6
7093 cat > conftest.$ac_ext <<EOF
7094 #line 7095 "configure"
7095 #include "confdefs.h"
7098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7099 { (eval echo configure:7100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7101 if test -z "$ac_err"; then
7103 eval "ac_cv_header_$ac_safe=yes"
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7109 eval "ac_cv_header_$ac_safe=no"
7113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7114 echo "$ac_t""yes" 1>&6
7115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7116 cat >> confdefs.h <<EOF
7117 #define $ac_tr_hdr 1
7120 PLUGINS="${PLUGINS} dsp"
7121 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7122 echo "configure:7123: checking for main in -lossaudio" >&5
7123 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7125 echo $ac_n "(cached) $ac_c" 1>&6
7127 ac_save_LIBS="$LIBS"
7128 LIBS="-lossaudio $LIBS"
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7137 if { (eval echo configure:7138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7139 eval "ac_cv_lib_$ac_lib_var=yes"
7141 echo "configure: failed program was:" >&5
7142 cat conftest.$ac_ext >&5
7144 eval "ac_cv_lib_$ac_lib_var=no"
7147 LIBS="$ac_save_LIBS"
7150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7151 echo "$ac_t""yes" 1>&6
7152 LIB_DSP="${LIB_DSP} -lossaudio"
7154 echo "$ac_t""no" 1>&6
7159 echo "$ac_t""no" 1>&6
7165 # Check whether --enable-esd or --disable-esd was given.
7166 if test "${enable_esd+set}" = set; then
7167 enableval="$enable_esd"
7168 if test x$enable_esd = xyes
7170 # Extract the first word of "esd-config", so it can be a program name with args.
7171 set dummy esd-config; ac_word=$2
7172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7173 echo "configure:7174: checking for $ac_word" >&5
7174 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7175 echo $ac_n "(cached) $ac_c" 1>&6
7177 case "$ESD_CONFIG" in
7179 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7182 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7187 for ac_dir in $ac_dummy; do
7188 test -z "$ac_dir" && ac_dir=.
7189 if test -f $ac_dir/$ac_word; then
7190 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7195 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7199 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7200 if test -n "$ESD_CONFIG"; then
7201 echo "$ac_t""$ESD_CONFIG" 1>&6
7203 echo "$ac_t""no" 1>&6
7206 if test x${ESD_CONFIG} != xno
7208 PLUGINS="${PLUGINS} esd"
7209 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
7210 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
7216 # Check whether --enable-arts or --disable-arts was given.
7217 if test "${enable_arts+set}" = set; then
7218 enableval="$enable_arts"
7219 if test x$enable_arts = xyes
7221 # Extract the first word of "artsc-config", so it can be a program name with args.
7222 set dummy artsc-config; ac_word=$2
7223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7224 echo "configure:7225: checking for $ac_word" >&5
7225 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7228 case "$ARTS_CONFIG" in
7230 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7233 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7238 for ac_dir in $ac_dummy; do
7239 test -z "$ac_dir" && ac_dir=.
7240 if test -f $ac_dir/$ac_word; then
7241 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7246 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7250 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7251 if test -n "$ARTS_CONFIG"; then
7252 echo "$ac_t""$ARTS_CONFIG" 1>&6
7254 echo "$ac_t""no" 1>&6
7257 if test x${ARTS_CONFIG} != xno
7259 PLUGINS="${PLUGINS} arts"
7260 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7261 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7267 # Check whether --enable-alsa or --disable-alsa was given.
7268 if test "${enable_alsa+set}" = set; then
7269 enableval="$enable_alsa"
7270 if test x$enable_alsa = xyes
7272 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7273 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7274 echo "configure:7275: checking for alsa/asoundlib.h" >&5
7275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7276 echo $ac_n "(cached) $ac_c" 1>&6
7278 cat > conftest.$ac_ext <<EOF
7279 #line 7280 "configure"
7280 #include "confdefs.h"
7281 #include <alsa/asoundlib.h>
7283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7284 { (eval echo configure:7285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7286 if test -z "$ac_err"; then
7288 eval "ac_cv_header_$ac_safe=yes"
7291 echo "configure: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7294 eval "ac_cv_header_$ac_safe=no"
7298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7299 echo "$ac_t""yes" 1>&6
7300 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7301 echo "configure:7302: checking for main in -lasound" >&5
7302 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7304 echo $ac_n "(cached) $ac_c" 1>&6
7306 ac_save_LIBS="$LIBS"
7307 LIBS="-lasound $LIBS"
7308 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7316 if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7318 eval "ac_cv_lib_$ac_lib_var=yes"
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7323 eval "ac_cv_lib_$ac_lib_var=no"
7326 LIBS="$ac_save_LIBS"
7329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7330 echo "$ac_t""yes" 1>&6
7333 echo "$ac_t""no" 1>&6
7338 echo "$ac_t""no" 1>&6
7342 if test x$have_alsa = xtrue
7344 PLUGINS="${PLUGINS} alsa"
7345 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7351 # Check whether --enable-waveout or --disable-waveout was given.
7352 if test "${enable_waveout+set}" = set; then
7353 enableval="$enable_waveout"
7357 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7359 PLUGINS="${PLUGINS} waveout"
7360 LIB_WAVEOUT="-lwinmm"
7364 # Check whether --with- or --without- was given.
7365 if test "${with_+set}" = set; then
7371 # Check whether --enable-gtk or --disable-gtk was given.
7372 if test "${enable_gtk+set}" = set; then
7373 enableval="$enable_gtk"
7377 if test x$enable_gtk != xno
7380 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7381 if test "${with_gtk_config_path+set}" = set; then
7382 withval="$with_gtk_config_path"
7383 if test "x$withval" != "xno"
7385 GTK_PATH=$withval:$PATH
7389 # look for gtk-config
7390 # Extract the first word of "gtk12-config", so it can be a program name with args.
7391 set dummy gtk12-config; ac_word=$2
7392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7393 echo "configure:7394: checking for $ac_word" >&5
7394 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7397 case "$GTK12_CONFIG" in
7399 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7402 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7406 ac_dummy="$GTK_PATH"
7407 for ac_dir in $ac_dummy; do
7408 test -z "$ac_dir" && ac_dir=.
7409 if test -f $ac_dir/$ac_word; then
7410 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7415 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7419 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7420 if test -n "$GTK12_CONFIG"; then
7421 echo "$ac_t""$GTK12_CONFIG" 1>&6
7423 echo "$ac_t""no" 1>&6
7426 GTK_CONFIG=${GTK12_CONFIG}
7427 if test x${GTK_CONFIG} = xno
7429 # Extract the first word of "gtk-config", so it can be a program name with args.
7430 set dummy gtk-config; ac_word=$2
7431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7432 echo "configure:7433: checking for $ac_word" >&5
7433 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7434 echo $ac_n "(cached) $ac_c" 1>&6
7436 case "$GTK_CONFIG" in
7438 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7441 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7445 ac_dummy="$GTK_PATH"
7446 for ac_dir in $ac_dummy; do
7447 test -z "$ac_dir" && ac_dir=.
7448 if test -f $ac_dir/$ac_word; then
7449 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7454 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7458 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7459 if test -n "$GTK_CONFIG"; then
7460 echo "$ac_t""$GTK_CONFIG" 1>&6
7462 echo "$ac_t""no" 1>&6
7466 if test x${GTK_CONFIG} != xno
7468 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7470 { 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; }
7472 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7473 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7474 # now look for the gtk.h header
7475 saved_CPPFLAGS=$CPPFLAGS
7476 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7477 ac_cv_gtk_headers=yes
7478 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7482 echo "configure:7483: checking for $ac_hdr" >&5
7483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7484 echo $ac_n "(cached) $ac_c" 1>&6
7486 cat > conftest.$ac_ext <<EOF
7487 #line 7488 "configure"
7488 #include "confdefs.h"
7491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7492 { (eval echo configure:7493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7494 if test -z "$ac_err"; then
7496 eval "ac_cv_header_$ac_safe=yes"
7499 echo "configure: failed program was:" >&5
7500 cat conftest.$ac_ext >&5
7502 eval "ac_cv_header_$ac_safe=no"
7506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7507 echo "$ac_t""yes" 1>&6
7508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7509 cat >> confdefs.h <<EOF
7510 #define $ac_tr_hdr 1
7514 echo "$ac_t""no" 1>&6
7515 ac_cv_gtk_headers=no
7516 echo "Cannot find gtk development headers."
7521 if test "x$ac_cv_gtk_headers" = xyes
7523 PLUGINS="${PLUGINS} gtk"
7524 ALIASES="${ALIASES} gvlc"
7526 CPPFLAGS=$saved_CPPFLAGS
7530 # Check whether --enable-gnome or --disable-gnome was given.
7531 if test "${enable_gnome+set}" = set; then
7532 enableval="$enable_gnome"
7533 if test x$enable_gnome = xyes; then
7534 # look for gnome-config
7535 # Extract the first word of "gnome-config", so it can be a program name with args.
7536 set dummy gnome-config; ac_word=$2
7537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7538 echo "configure:7539: checking for $ac_word" >&5
7539 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7540 echo $ac_n "(cached) $ac_c" 1>&6
7542 case "$GNOME_CONFIG" in
7544 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7547 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7552 for ac_dir in $ac_dummy; do
7553 test -z "$ac_dir" && ac_dir=.
7554 if test -f $ac_dir/$ac_word; then
7555 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7560 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7564 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7565 if test -n "$GNOME_CONFIG"; then
7566 echo "$ac_t""$GNOME_CONFIG" 1>&6
7568 echo "$ac_t""no" 1>&6
7571 if test -x ${GNOME_CONFIG}
7573 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7574 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7576 # now look for the gnome.h header
7577 saved_CPPFLAGS=$CPPFLAGS
7578 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7579 for ac_hdr in gnome.h
7581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7583 echo "configure:7584: checking for $ac_hdr" >&5
7584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7585 echo $ac_n "(cached) $ac_c" 1>&6
7587 cat > conftest.$ac_ext <<EOF
7588 #line 7589 "configure"
7589 #include "confdefs.h"
7592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7593 { (eval echo configure:7594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7595 if test -z "$ac_err"; then
7597 eval "ac_cv_header_$ac_safe=yes"
7600 echo "configure: failed program was:" >&5
7601 cat conftest.$ac_ext >&5
7603 eval "ac_cv_header_$ac_safe=no"
7607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7608 echo "$ac_t""yes" 1>&6
7609 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7610 cat >> confdefs.h <<EOF
7611 #define $ac_tr_hdr 1
7614 PLUGINS="${PLUGINS} gnome"
7615 ALIASES="${ALIASES} gnome-vlc"
7618 echo "$ac_t""no" 1>&6
7619 { echo "configure: error: Can't find gnome headers. Please install the gnome
7620 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7626 CPPFLAGS=$saved_CPPFLAGS
7631 # Check whether --enable-qt or --disable-qt was given.
7632 if test "${enable_qt+set}" = set; then
7633 enableval="$enable_qt"
7634 if test x$enable_qt = xyes; then
7635 PLUGINS="${PLUGINS} qt"
7636 ALIASES="${ALIASES} qvlc"
7637 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7638 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7639 if test -x ${QTDIR}/bin/moc
7641 MOC=${QTDIR}/bin/moc
7649 # Check whether --enable-kde or --disable-kde was given.
7650 if test "${enable_kde+set}" = set; then
7651 enableval="$enable_kde"
7652 if test x$enable_kde = xyes; then
7653 PLUGINS="${PLUGINS} kde"
7654 ALIASES="${ALIASES} kvlc"
7655 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7656 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7657 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7658 if test -x ${QTDIR}/bin/moc
7660 MOC=${QTDIR}/bin/moc
7668 # Check whether --enable-macosx or --disable-macosx was given.
7669 if test "${enable_macosx+set}" = set; then
7670 enableval="$enable_macosx"
7671 if test x$enable_macosx = xyes
7673 BUILTINS="${BUILTINS} macosx"
7674 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7675 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7676 LIB_COMMON="${LIB_COMMON} -ObjC"
7679 for ac_hdr in Cocoa/Cocoa.h
7681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7683 echo "configure:7684: checking for $ac_hdr" >&5
7684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7685 echo $ac_n "(cached) $ac_c" 1>&6
7687 cat > conftest.$ac_ext <<EOF
7688 #line 7689 "configure"
7689 #include "confdefs.h"
7692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7693 { (eval echo configure:7694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7695 if test -z "$ac_err"; then
7697 eval "ac_cv_header_$ac_safe=yes"
7700 echo "configure: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7703 eval "ac_cv_header_$ac_safe=no"
7707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7708 echo "$ac_t""yes" 1>&6
7709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7710 cat >> confdefs.h <<EOF
7711 #define $ac_tr_hdr 1
7713 BUILTINS="${BUILTINS} macosx"
7714 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7715 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7716 LIB_COMMON="${LIB_COMMON} -ObjC"
7719 echo "$ac_t""no" 1>&6
7726 # Check whether --enable-qnx or --disable-qnx was given.
7727 if test "${enable_qnx+set}" = set; then
7728 enableval="$enable_qnx"
7732 if test x$enable_qnx != xno
7736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7738 echo "configure:7739: checking for $ac_hdr" >&5
7739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7742 cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7748 { (eval echo configure:7749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7750 if test -z "$ac_err"; then
7752 eval "ac_cv_header_$ac_safe=yes"
7755 echo "configure: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7758 eval "ac_cv_header_$ac_safe=no"
7762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7763 echo "$ac_t""yes" 1>&6
7764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7765 cat >> confdefs.h <<EOF
7766 #define $ac_tr_hdr 1
7769 PLUGINS="${PLUGINS} qnx"
7770 LIB_QNX="${LIB_QNX} -lasound -lph"
7773 echo "$ac_t""no" 1>&6
7779 # Check whether --enable-win32 or --disable-win32 was given.
7780 if test "${enable_win32+set}" = set; then
7781 enableval="$enable_win32"
7782 if test "x$enableval" != "xno"
7784 PLUGINS="${PLUGINS} win32"
7789 # Check whether --enable-ncurses or --disable-ncurses was given.
7790 if test "${enable_ncurses+set}" = set; then
7791 enableval="$enable_ncurses"
7792 if test x$enable_ncurses = xyes; then
7793 PLUGINS="${PLUGINS} ncurses"
7794 LIB_NCURSES="${LIB_NCURSES} -lncurses"
7799 # Check whether --enable-lirc or --disable-lirc was given.
7800 if test "${enable_lirc+set}" = set; then
7801 enableval="$enable_lirc"
7805 if test x$enable_lirc = xyes
7807 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7808 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7809 echo "configure:7810: checking for lirc/lirc_client.h" >&5
7810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7811 echo $ac_n "(cached) $ac_c" 1>&6
7813 cat > conftest.$ac_ext <<EOF
7814 #line 7815 "configure"
7815 #include "confdefs.h"
7816 #include <lirc/lirc_client.h>
7818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7819 { (eval echo configure:7820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7821 if test -z "$ac_err"; then
7823 eval "ac_cv_header_$ac_safe=yes"
7826 echo "configure: failed program was:" >&5
7827 cat conftest.$ac_ext >&5
7829 eval "ac_cv_header_$ac_safe=no"
7833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7834 echo "$ac_t""yes" 1>&6
7835 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
7836 echo "configure:7837: checking for lirc_init in -llirc_client" >&5
7837 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
7838 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7841 ac_save_LIBS="$LIBS"
7842 LIBS="-llirc_client $LIBS"
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 /* Override any gcc2 internal prototype to avoid an error. */
7847 /* We use char because int might match the return type of a gcc2
7848 builtin and then its argument prototype would still apply. */
7855 if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7857 eval "ac_cv_lib_$ac_lib_var=yes"
7859 echo "configure: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7862 eval "ac_cv_lib_$ac_lib_var=no"
7865 LIBS="$ac_save_LIBS"
7868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7869 echo "$ac_t""yes" 1>&6
7872 echo "$ac_t""no" 1>&6
7877 echo "$ac_t""no" 1>&6
7881 if test x$have_lirc = xtrue
7883 PLUGINS="${PLUGINS} lirc"
7884 LIB_LIRC="${LIB_LIRC} -llirc_client"
7890 # Check whether --with- or --without- was given.
7891 if test "${with_+set}" = set; then
7897 # Check whether --with-words or --without-words was given.
7898 if test "${with_words+set}" = set; then
7899 withval="$with_words"
7905 ac_cv_c_bigendian=yes
7908 ac_cv_c_bigendian=no
7911 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
7912 echo "configure:7913: checking whether the byte order is big-endian" >&5
7913 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7914 echo $ac_n "(cached) $ac_c" 1>&6
7916 ac_cv_c_bigendian=unknown
7917 cat >conftest.c <<EOF
7918 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
7919 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
7920 void _a(void) { char*s = (char*)am; s = (char *)ai; }
7921 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
7922 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
7923 void _e(void) { char*s = (char*)em; s = (char*)ei; }
7924 int main(void) { _a(); _e(); return 0; }
7927 if test -f conftest.c
7929 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
7930 && test -f conftest.o
7932 if test "`strings conftest.o | grep BIGenDianSyS`"
7934 ac_cv_c_bigendian=yes
7936 if test "`strings conftest.o | grep LiTTleEnDian`"
7938 ac_cv_c_bigendian=no
7945 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7946 if test x$ac_cv_c_bigendian = xunknown
7948 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
7952 if test $ac_cv_c_bigendian = yes
7954 cat >> confdefs.h <<\EOF
7955 #define WORDS_BIGENDIAN 1
7961 # Check whether --with-dll-path or --without-dll-path was given.
7962 if test "${with_dll_path+set}" = set; then
7963 withval="$with_dll_path"
7964 if test "x$withval" != "xno"
7972 # Check whether --enable-gprof or --disable-gprof was given.
7973 if test "${enable_gprof+set}" = set; then
7974 enableval="$enable_gprof"
7975 if test x$enableval = xyes; then GPROF=1; fi
7980 # Check whether --enable-cprof or --disable-cprof was given.
7981 if test "${enable_cprof+set}" = set; then
7982 enableval="$enable_cprof"
7983 if test x$enableval = xyes;
7985 LIB_COMMON="${LIB_COMMON} -lcprof"
7992 # Check whether --enable-pth or --disable-pth was given.
7993 if test "${enable_pth+set}" = set; then
7994 enableval="$enable_pth"
7995 if test x$enableval = xyes; then
7996 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
7997 echo "configure:7998: checking for pth_init in -lpth" >&5
7998 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
7999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8000 echo $ac_n "(cached) $ac_c" 1>&6
8002 ac_save_LIBS="$LIBS"
8004 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* Override any gcc2 internal prototype to avoid an error. */
8008 /* We use char because int might match the return type of a gcc2
8009 builtin and then its argument prototype would still apply. */
8016 if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8018 eval "ac_cv_lib_$ac_lib_var=yes"
8020 echo "configure: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8023 eval "ac_cv_lib_$ac_lib_var=no"
8026 LIBS="$ac_save_LIBS"
8029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8030 echo "$ac_t""yes" 1>&6
8031 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8032 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8033 cat >> confdefs.h <<EOF
8034 #define $ac_tr_lib 1
8040 echo "$ac_t""no" 1>&6
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8049 egrep "pth_init" >/dev/null 2>&1; then
8052 cat >> confdefs.h <<\EOF
8053 #define PTH_INIT_IN_PTH_H 1
8065 # Check whether --enable-st or --disable-st was given.
8066 if test "${enable_st+set}" = set; then
8067 enableval="$enable_st"
8068 if test x$enableval = xyes; then
8069 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8070 echo "configure:8071: checking for st_init in -lst" >&5
8071 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8073 echo $ac_n "(cached) $ac_c" 1>&6
8075 ac_save_LIBS="$LIBS"
8077 cat > conftest.$ac_ext <<EOF
8078 #line 8079 "configure"
8079 #include "confdefs.h"
8080 /* Override any gcc2 internal prototype to avoid an error. */
8081 /* We use char because int might match the return type of a gcc2
8082 builtin and then its argument prototype would still apply. */
8089 if { (eval echo configure:8090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8091 eval "ac_cv_lib_$ac_lib_var=yes"
8093 echo "configure: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8096 eval "ac_cv_lib_$ac_lib_var=no"
8099 LIBS="$ac_save_LIBS"
8102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8103 echo "$ac_t""yes" 1>&6
8104 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8105 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8106 cat >> confdefs.h <<EOF
8107 #define $ac_tr_lib 1
8113 echo "$ac_t""no" 1>&6
8116 cat > conftest.$ac_ext <<EOF
8117 #line 8118 "configure"
8118 #include "confdefs.h"
8121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8122 egrep "st_init" >/dev/null 2>&1; then
8125 cat >> confdefs.h <<\EOF
8126 #define ST_INIT_IN_ST_H 1
8138 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
8140 # Check whether --enable-plugins or --disable-plugins was given.
8141 if test "${enable_plugins+set}" = set; then
8142 enableval="$enable_plugins"
8143 if test x$enable_plugins = xno
8145 BUILTINS="${BUILTINS} ${PLUGINS}"
8151 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8153 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8155 BUILTINS="${BUILTINS} ${PLUGINS}"
8159 cat >> confdefs.h <<EOF
8160 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN\n"
8163 cat >> confdefs.h <<EOF
8164 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8168 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8169 cat >> confdefs.h <<EOF
8170 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8173 cat >> confdefs.h <<EOF
8174 #define MODULE_SYMBOL $VLC_SYMBOL
8178 DATA_PATH="${ac_tool_prefix}/share/videolan"
8180 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8275 cat > confcache <<\EOF
8276 # This file is a shell script that caches the results of configure
8277 # tests run on this system so they can be shared between configure
8278 # scripts and configure runs. It is not useful on other systems.
8279 # If it contains results you don't want to keep, you may remove or edit it.
8281 # By default, configure uses ./config.cache as the cache file,
8282 # creating it if it does not exist already. You can give configure
8283 # the --cache-file=FILE option to use a different cache file; that is
8284 # what configure does when it calls configure scripts in
8285 # subdirectories, so they share the cache.
8286 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8287 # config.status only pays attention to the cache file if you give it the
8288 # --recheck option to rerun configure.
8291 # The following way of writing the cache mishandles newlines in values,
8292 # but we know of no workaround that is simple, portable, and efficient.
8293 # So, don't put newlines in cache variables' values.
8294 # Ultrix sh set writes to stderr and can't be redirected directly,
8295 # and sets the high bit in the cache file unless we assign to the vars.
8297 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8299 # `set' does not quote correctly, so add quotes (double-quote substitution
8300 # turns \\\\ into \\, and sed turns \\ into \).
8302 -e "s/'/'\\\\''/g" \
8303 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8306 # `set' quotes correctly as required by POSIX, so do not add quotes.
8307 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8310 if cmp -s $cache_file confcache; then
8313 if test -w $cache_file; then
8314 echo "updating cache $cache_file"
8315 cat confcache > $cache_file
8317 echo "not updating unwritable cache $cache_file"
8322 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8324 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8325 # Let make expand exec_prefix.
8326 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8328 # Any assignment to VPATH causes Sun make to only execute
8329 # the first set of double-colon rules, so remove it if not needed.
8330 # If there is a colon in the path, we need to keep it.
8331 if test "x$srcdir" = x.; then
8332 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8335 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8337 DEFS=-DHAVE_CONFIG_H
8339 # Without the "./", some shells look in PATH for config.status.
8340 : ${CONFIG_STATUS=./config.status}
8342 echo creating $CONFIG_STATUS
8343 rm -f $CONFIG_STATUS
8344 cat > $CONFIG_STATUS <<EOF
8346 # Generated automatically by configure.
8347 # Run this file to recreate the current configuration.
8348 # This directory was configured as follows,
8349 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8351 # $0 $ac_configure_args
8353 # Compiler output produced by configure, useful for debugging
8354 # configure, is in ./config.log if it exists.
8356 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8359 case "\$ac_option" in
8360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8361 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8362 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8363 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8364 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8366 -help | --help | --hel | --he | --h)
8367 echo "\$ac_cs_usage"; exit 0 ;;
8368 *) echo "\$ac_cs_usage"; exit 1 ;;
8372 ac_given_srcdir=$srcdir
8373 ac_given_INSTALL="$INSTALL"
8375 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8377 cat >> $CONFIG_STATUS <<EOF
8379 # Protect against being on the right side of a sed subst in config.status.
8380 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8381 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8385 s%@CFLAGS@%$CFLAGS%g
8386 s%@CPPFLAGS@%$CPPFLAGS%g
8387 s%@CXXFLAGS@%$CXXFLAGS%g
8388 s%@FFLAGS@%$FFLAGS%g
8390 s%@LDFLAGS@%$LDFLAGS%g
8392 s%@exec_prefix@%$exec_prefix%g
8393 s%@prefix@%$prefix%g
8394 s%@program_transform_name@%$program_transform_name%g
8395 s%@bindir@%$bindir%g
8396 s%@sbindir@%$sbindir%g
8397 s%@libexecdir@%$libexecdir%g
8398 s%@datadir@%$datadir%g
8399 s%@sysconfdir@%$sysconfdir%g
8400 s%@sharedstatedir@%$sharedstatedir%g
8401 s%@localstatedir@%$localstatedir%g
8402 s%@libdir@%$libdir%g
8403 s%@includedir@%$includedir%g
8404 s%@oldincludedir@%$oldincludedir%g
8405 s%@infodir@%$infodir%g
8406 s%@mandir@%$mandir%g
8408 s%@host_alias@%$host_alias%g
8409 s%@host_cpu@%$host_cpu%g
8410 s%@host_vendor@%$host_vendor%g
8411 s%@host_os@%$host_os%g
8412 s%@target@%$target%g
8413 s%@target_alias@%$target_alias%g
8414 s%@target_cpu@%$target_cpu%g
8415 s%@target_vendor@%$target_vendor%g
8416 s%@target_os@%$target_os%g
8418 s%@build_alias@%$build_alias%g
8419 s%@build_cpu@%$build_cpu%g
8420 s%@build_vendor@%$build_vendor%g
8421 s%@build_os@%$build_os%g
8422 s%@SET_MAKE@%$SET_MAKE%g
8425 s%@RANLIB@%$RANLIB%g
8427 s%@ALLOCA@%$ALLOCA%g
8428 s%@GLIBC21@%$GLIBC21%g
8429 s%@LIBICONV@%$LIBICONV%g
8430 s%@USE_NLS@%$USE_NLS%g
8431 s%@MSGFMT@%$MSGFMT%g
8432 s%@GMSGFMT@%$GMSGFMT%g
8433 s%@XGETTEXT@%$XGETTEXT%g
8434 s%@INTLBISON@%$INTLBISON%g
8435 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8436 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8437 s%@CATALOGS@%$CATALOGS%g
8438 s%@CATOBJEXT@%$CATOBJEXT%g
8439 s%@GMOFILES@%$GMOFILES%g
8440 s%@INTLLIBS@%$INTLLIBS%g
8441 s%@INTLOBJS@%$INTLOBJS%g
8442 s%@POFILES@%$POFILES%g
8444 s%@DATADIRNAME@%$DATADIRNAME%g
8445 s%@INSTOBJEXT@%$INSTOBJEXT%g
8446 s%@GENCAT@%$GENCAT%g
8447 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8448 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8449 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8450 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8451 s%@INSTALL_DATA@%$INSTALL_DATA%g
8452 s%@WINDRES@%$WINDRES%g
8453 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8454 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8455 s%@SDL_CONFIG@%$SDL_CONFIG%g
8456 s%@ESD_CONFIG@%$ESD_CONFIG%g
8457 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8458 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8459 s%@GTK_CONFIG@%$GTK_CONFIG%g
8460 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8461 s%@DATA_PATH@%$DATA_PATH%g
8462 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8465 s%@PLUGINS@%$PLUGINS%g
8466 s%@BUILTINS@%$BUILTINS%g
8467 s%@ALIASES@%$ALIASES%g
8468 s%@INCLUDE@%$INCLUDE%g
8473 s%@OPTIMS@%$OPTIMS%g
8474 s%@TUNING@%$TUNING%g
8475 s%@RELEASE@%$RELEASE%g
8477 s%@DLL_PATH@%$DLL_PATH%g
8478 s%@PACKAGE@%$PACKAGE%g
8479 s%@VERSION@%$VERSION%g
8480 s%@PLDFLAGS@%$PLDFLAGS%g
8481 s%@LIB_COMMON@%$LIB_COMMON%g
8482 s%@LIB_VLC@%$LIB_VLC%g
8483 s%@LIB_A52@%$LIB_A52%g
8484 s%@LIB_AA@%$LIB_AA%g
8485 s%@LIB_ALSA@%$LIB_ALSA%g
8486 s%@LIB_ARTS@%$LIB_ARTS%g
8487 s%@LIB_BEOS@%$LIB_BEOS%g
8488 s%@LIB_CHROMA_I420_RGB@%$LIB_CHROMA_I420_RGB%g
8489 s%@LIB_DARWIN@%$LIB_DARWIN%g
8490 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8491 s%@LIB_DSP@%$LIB_DSP%g
8492 s%@LIB_DVD@%$LIB_DVD%g
8493 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8494 s%@LIB_ESD@%$LIB_ESD%g
8495 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8496 s%@LIB_GGI@%$LIB_GGI%g
8497 s%@LIB_GLIDE@%$LIB_GLIDE%g
8498 s%@LIB_GNOME@%$LIB_GNOME%g
8499 s%@LIB_GTK@%$LIB_GTK%g
8500 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8501 s%@LIB_IMDCT@%$LIB_IMDCT%g
8502 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8503 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8504 s%@LIB_IPV4@%$LIB_IPV4%g
8505 s%@LIB_IPV6@%$LIB_IPV6%g
8506 s%@LIB_KDE@%$LIB_KDE%g
8507 s%@LIB_LIRC@%$LIB_LIRC%g
8508 s%@LIB_MACOSX@%$LIB_MACOSX%g
8509 s%@LIB_MAD@%$LIB_MAD%g
8510 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8511 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8512 s%@LIB_NCURSES@%$LIB_NCURSES%g
8513 s%@LIB_QNX@%$LIB_QNX%g
8514 s%@LIB_QT@%$LIB_QT%g
8515 s%@LIB_RC@%$LIB_RC%g
8516 s%@LIB_SDL@%$LIB_SDL%g
8517 s%@LIB_VCD@%$LIB_VCD%g
8518 s%@LIB_VORBIS@%$LIB_VORBIS%g
8519 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8520 s%@LIB_WIN32@%$LIB_WIN32%g
8521 s%@LIB_X11@%$LIB_X11%g
8522 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8523 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8524 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8525 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8526 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8527 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8528 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8529 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8530 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8531 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8532 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8533 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8534 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8535 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8536 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8537 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8538 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8539 s%@CFLAGS_QT@%$CFLAGS_QT%g
8540 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8541 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8542 s%@CFLAGS_X11@%$CFLAGS_X11%g
8543 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8544 s%@NEED_GETOPT@%$NEED_GETOPT%g
8549 cat >> $CONFIG_STATUS <<\EOF
8551 # Split the substitutions into bite-sized pieces for seds with
8552 # small command number limits, like on Digital OSF/1 and HP-UX.
8553 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8554 ac_file=1 # Number of current file.
8555 ac_beg=1 # First line for current file.
8556 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8559 while $ac_more_lines; do
8560 if test $ac_beg -gt 1; then
8561 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8563 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8565 if test ! -s conftest.s$ac_file; then
8567 rm -f conftest.s$ac_file
8569 if test -z "$ac_sed_cmds"; then
8570 ac_sed_cmds="sed -f conftest.s$ac_file"
8572 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8574 ac_file=`expr $ac_file + 1`
8576 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8579 if test -z "$ac_sed_cmds"; then
8584 cat >> $CONFIG_STATUS <<EOF
8586 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8588 cat >> $CONFIG_STATUS <<\EOF
8589 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8590 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8592 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8593 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8594 *) ac_file_in="${ac_file}.in" ;;
8597 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8599 # Remove last slash and all that follows it. Not all systems have dirname.
8600 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8601 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8602 # The file is in a subdirectory.
8603 test ! -d "$ac_dir" && mkdir "$ac_dir"
8604 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8605 # A "../" for each directory in $ac_dir_suffix.
8606 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8608 ac_dir_suffix= ac_dots=
8611 case "$ac_given_srcdir" in
8613 if test -z "$ac_dots"; then top_srcdir=.
8614 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8615 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8617 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8618 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8621 case "$ac_given_INSTALL" in
8622 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8623 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8626 echo creating "$ac_file"
8628 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8630 *Makefile*) ac_comsub="1i\\
8631 # $configure_input" ;;
8635 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8637 s%@configure_input@%$configure_input%g
8638 s%@srcdir@%$srcdir%g
8639 s%@top_srcdir@%$top_srcdir%g
8640 s%@INSTALL@%$INSTALL%g
8641 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8645 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8646 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8648 # ac_d sets the value in "#define NAME VALUE" lines.
8649 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8650 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8653 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8654 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8655 ac_uB='\([ ]\)%\1#\2define\3'
8658 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8659 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8660 ac_eB='$%\1#\2define\3'
8664 if test "${CONFIG_HEADERS+set}" != set; then
8666 cat >> $CONFIG_STATUS <<EOF
8667 CONFIG_HEADERS="include/defs.h"
8669 cat >> $CONFIG_STATUS <<\EOF
8671 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8672 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8674 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8675 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8676 *) ac_file_in="${ac_file}.in" ;;
8679 echo creating $ac_file
8681 rm -f conftest.frag conftest.in conftest.out
8682 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8683 cat $ac_file_inputs > conftest.in
8687 # Transform confdefs.h into a sed script conftest.vals that substitutes
8688 # the proper values into config.h.in to produce config.h. And first:
8689 # Protect against being on the right side of a sed subst in config.status.
8690 # Protect against being in an unquoted here document in config.status.
8692 cat > conftest.hdr <<\EOF
8695 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8699 sed -n -f conftest.hdr confdefs.h > conftest.vals
8702 # This sed command replaces #undef with comments. This is necessary, for
8703 # example, in the case of _POSIX_SOURCE, which is predefined and required
8704 # on some systems where configure will not decide to define it.
8705 cat >> conftest.vals <<\EOF
8706 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8709 # Break up conftest.vals because some shells have a limit on
8710 # the size of here documents, and old seds have small limits too.
8715 ac_lines=`grep -c . conftest.vals`
8716 # grep -c gives empty output for an empty file on some AIX systems.
8717 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8718 # Write a limited-size here document to conftest.frag.
8719 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8720 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8722 sed -f conftest.frag conftest.in > conftest.out
8724 mv conftest.out conftest.in
8726 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8728 mv conftest.tail conftest.vals
8732 cat >> $CONFIG_STATUS <<\EOF
8733 rm -f conftest.frag conftest.h
8734 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8735 cat conftest.in >> conftest.h
8737 if cmp -s $ac_file conftest.h 2>/dev/null; then
8738 echo "$ac_file is unchanged"
8741 # Remove last slash and all that follows it. Not all systems have dirname.
8742 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8743 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8744 # The file is in a subdirectory.
8745 test ! -d "$ac_dir" && mkdir "$ac_dir"
8748 mv conftest.h $ac_file
8753 cat >> $CONFIG_STATUS <<EOF
8757 cat >> $CONFIG_STATUS <<\EOF
8758 for ac_file in $CONFIG_FILES; do
8759 # Support "outfile[:infile[:infile...]]"
8761 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8763 # PO directories have a Makefile.in generated from Makefile.in.in.
8764 case "$ac_file" in */Makefile.in)
8765 # Adjust a relative srcdir.
8766 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8767 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8768 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8769 # In autoconf-2.13 it is called $ac_given_srcdir.
8770 # In autoconf-2.50 it is called $srcdir.
8771 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8772 case "$ac_given_srcdir" in
8773 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8774 /*) top_srcdir="$ac_given_srcdir" ;;
8775 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8777 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8778 rm -f "$ac_dir/POTFILES"
8779 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8780 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8781 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8782 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8790 chmod +x $CONFIG_STATUS
8791 rm -fr confdefs* $ac_clean_files
8792 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8797 --------------------
8798 vlc version : ${VERSION}
8800 architecture : ${ARCH}
8801 optimizations : ${OPTIMS}
8803 debug mode : ${DEBUG}
8804 release : ${RELEASE}
8805 cprof/gprof support : ${CPROF}/${GPROF}
8806 need builtin getopt : ${NEED_GETOPT}
8807 built-in modules :${BUILTINS}
8808 plug-in modules :${PLUGINS}
8809 vlc aliases :${ALIASES}
8811 You may now tune Makefile.opts at your convenience, for instance to choose
8812 which modules get compiled as plugins.
8814 To build vlc and its plugins, type \`$VLC_MAKE'.