3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable altivec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-vcd VCD support for Linux and MacOS X (default enabled)"
50 --enable-satellite satellite card support (default disabled)"
52 --enable-avi AVI demux module (default enabled)"
56 --enable-mad libmad module (default disabled)"
58 --with-mad=PATH path to libmad"
60 --enable-ffmpeg ffmpeg codec (default disabled)"
62 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
64 --enable-a52 AC3 support with liba52 (default enabled)"
66 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
70 --enable-x11 X11 support (default enabled)"
72 --enable-xvideo XVideo support (default enabled)"
74 --enable-sdl SDL support (default enabled)"
76 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
78 --enable-directx Win32 DirectX support (default enabled on Win32)"
80 --with-directx=PATH Win32 DirectX headers and libraries"
82 --enable-fb Linux framebuffer support (default enabled on Linux)"
84 --enable-mga Linux kernel Matrox support (default disabled)"
86 --enable-ggi GGI support (default disabled)"
88 --with-ggi=PATH path to libggi"
90 --enable-glide Glide (3dfx) support (default disabled)"
92 --with-glide=PATH path to libglide"
94 --enable-aa aalib output (default disabled)"
98 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
100 --enable-esd Esound library support (default disabled)"
102 --enable-arts aRts sound server (default disabled)"
104 --enable-alsa ALSA sound support for Linux (default disabled)"
106 --enable-waveout Win32 waveOut module (default enabled on Win32)"
110 --enable-gtk Gtk+ support (default enabled)"
112 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
114 --enable-gnome Gnome interface support (default disabled)"
116 --enable-qt Qt interface support (default disabled)"
118 --enable-kde KDE interface support (default disabled)"
120 --enable-macosx MacOS X support (default enabled on MacOS X)"
122 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
124 --enable-intfwin Win32 interface support (default disabled)"
126 --with-bcbuilder=PATH Borland C++ Builder installation path"
128 --enable-ncurses ncurses interface support (default disabled)"
130 --enable-lirc lirc support (default disabled)"
134 --with-words=endianness set endianness (big or little)"
136 --enable-gprof gprof profiling (default disabled)"
138 --enable-cprof cprof profiling (default disabled)"
140 --enable-pth GNU Pth support (default disabled)"
142 --enable-st State Threads (default disabled)"
144 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
146 # Initialize some variables set by options.
147 # The variables have the same names as the options, with
148 # dashes changed to underlines.
150 cache_file=./config.cache
159 program_transform_name=s,x,x,
167 bindir='${exec_prefix}/bin'
168 sbindir='${exec_prefix}/sbin'
169 libexecdir='${exec_prefix}/libexec'
170 datadir='${prefix}/share'
171 sysconfdir='${prefix}/etc'
172 sharedstatedir='${prefix}/com'
173 localstatedir='${prefix}/var'
174 libdir='${exec_prefix}/lib'
175 includedir='${prefix}/include'
176 oldincludedir='/usr/include'
177 infodir='${prefix}/info'
178 mandir='${prefix}/man'
180 # Initialize some other variables.
183 SHELL=${CONFIG_SHELL-/bin/sh}
184 # Maximum number of lines to put in a shell here document.
191 # If the previous option needs an argument, assign it.
192 if test -n "$ac_prev"; then
193 eval "$ac_prev=\$ac_option"
199 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir="$ac_optarg" ;;
212 -build | --build | --buil | --bui | --bu)
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build="$ac_optarg" ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file="$ac_optarg" ;;
224 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
226 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
228 datadir="$ac_optarg" ;;
230 -disable-* | --disable-*)
231 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
232 # Reject names that are not valid shell variable names.
233 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
234 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
236 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
237 eval "enable_${ac_feature}=no" ;;
239 -enable-* | --enable-*)
240 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
243 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
245 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
250 eval "enable_${ac_feature}='$ac_optarg'" ;;
252 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
253 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
254 | --exec | --exe | --ex)
255 ac_prev=exec_prefix ;;
256 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
257 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
258 | --exec=* | --exe=* | --ex=*)
259 exec_prefix="$ac_optarg" ;;
261 -gas | --gas | --ga | --g)
262 # Obsolete; use --with-gas.
265 -help | --help | --hel | --he)
266 # Omit some internal or obsolete options to make the list less imposing.
267 # This message is too long to be a string in the A/UX 3.1 sh.
269 Usage: configure [options] [host]
270 Options: [defaults in brackets after descriptions]
272 --cache-file=FILE cache test results in FILE
273 --help print this message
274 --no-create do not create output files
275 --quiet, --silent do not print \`checking...' messages
276 --version print the version of autoconf that created configure
277 Directory and file names:
278 --prefix=PREFIX install architecture-independent files in PREFIX
280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
282 --bindir=DIR user executables in DIR [EPREFIX/bin]
283 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
284 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
285 --datadir=DIR read-only architecture-independent data in DIR
287 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
288 --sharedstatedir=DIR modifiable architecture-independent data in DIR
290 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
291 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
292 --includedir=DIR C header files in DIR [PREFIX/include]
293 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
294 --infodir=DIR info documentation in DIR [PREFIX/info]
295 --mandir=DIR man documentation in DIR [PREFIX/man]
296 --srcdir=DIR find the sources in DIR [configure dir or ..]
297 --program-prefix=PREFIX prepend PREFIX to installed program names
298 --program-suffix=SUFFIX append SUFFIX to installed program names
299 --program-transform-name=PROGRAM
300 run sed PROGRAM on installed program names
304 --build=BUILD configure for building on BUILD [BUILD=HOST]
305 --host=HOST configure for HOST [guessed]
306 --target=TARGET configure for TARGET [TARGET=HOST]
307 Features and packages:
308 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
309 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
310 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
311 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
312 --x-includes=DIR X include files are in DIR
313 --x-libraries=DIR X library files are in DIR
315 if test -n "$ac_help"; then
316 echo "--enable and --with options recognized:$ac_help"
320 -host | --host | --hos | --ho)
322 -host=* | --host=* | --hos=* | --ho=*)
325 -includedir | --includedir | --includedi | --included | --include \
326 | --includ | --inclu | --incl | --inc)
327 ac_prev=includedir ;;
328 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
329 | --includ=* | --inclu=* | --incl=* | --inc=*)
330 includedir="$ac_optarg" ;;
332 -infodir | --infodir | --infodi | --infod | --info | --inf)
334 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
335 infodir="$ac_optarg" ;;
337 -libdir | --libdir | --libdi | --libd)
339 -libdir=* | --libdir=* | --libdi=* | --libd=*)
340 libdir="$ac_optarg" ;;
342 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
343 | --libexe | --libex | --libe)
344 ac_prev=libexecdir ;;
345 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
346 | --libexe=* | --libex=* | --libe=*)
347 libexecdir="$ac_optarg" ;;
349 -localstatedir | --localstatedir | --localstatedi | --localstated \
350 | --localstate | --localstat | --localsta | --localst \
351 | --locals | --local | --loca | --loc | --lo)
352 ac_prev=localstatedir ;;
353 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
354 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
355 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
356 localstatedir="$ac_optarg" ;;
358 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
360 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
361 mandir="$ac_optarg" ;;
364 # Obsolete; use --without-fp.
367 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
371 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
372 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
375 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
376 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
377 | --oldin | --oldi | --old | --ol | --o)
378 ac_prev=oldincludedir ;;
379 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
380 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
381 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
382 oldincludedir="$ac_optarg" ;;
384 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
386 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
387 prefix="$ac_optarg" ;;
389 -program-prefix | --program-prefix | --program-prefi | --program-pref \
390 | --program-pre | --program-pr | --program-p)
391 ac_prev=program_prefix ;;
392 -program-prefix=* | --program-prefix=* | --program-prefi=* \
393 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
394 program_prefix="$ac_optarg" ;;
396 -program-suffix | --program-suffix | --program-suffi | --program-suff \
397 | --program-suf | --program-su | --program-s)
398 ac_prev=program_suffix ;;
399 -program-suffix=* | --program-suffix=* | --program-suffi=* \
400 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
401 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
411 -program-transform-name=* | --program-transform-name=* \
412 | --program-transform-nam=* | --program-transform-na=* \
413 | --program-transform-n=* | --program-transform-=* \
414 | --program-transform=* | --program-transfor=* \
415 | --program-transfo=* | --program-transf=* \
416 | --program-trans=* | --program-tran=* \
417 | --progr-tra=* | --program-tr=* | --program-t=*)
418 program_transform_name="$ac_optarg" ;;
420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
421 | -silent | --silent | --silen | --sile | --sil)
424 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
426 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
428 sbindir="$ac_optarg" ;;
430 -sharedstatedir | --sharedstatedir | --sharedstatedi \
431 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
432 | --sharedst | --shareds | --shared | --share | --shar \
434 ac_prev=sharedstatedir ;;
435 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
436 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
437 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
439 sharedstatedir="$ac_optarg" ;;
441 -site | --site | --sit)
443 -site=* | --site=* | --sit=*)
446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
449 srcdir="$ac_optarg" ;;
451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
452 | --syscon | --sysco | --sysc | --sys | --sy)
453 ac_prev=sysconfdir ;;
454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
456 sysconfdir="$ac_optarg" ;;
458 -target | --target | --targe | --targ | --tar | --ta | --t)
460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
461 target="$ac_optarg" ;;
463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
466 -version | --version | --versio | --versi | --vers)
467 echo "configure generated by autoconf version 2.13"
471 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
472 # Reject names that are not valid shell variable names.
473 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
474 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
476 ac_package=`echo $ac_package| sed 's/-/_/g'`
481 eval "with_${ac_package}='$ac_optarg'" ;;
483 -without-* | --without-*)
484 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
485 # Reject names that are not valid shell variable names.
486 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
487 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
489 ac_package=`echo $ac_package| sed 's/-/_/g'`
490 eval "with_${ac_package}=no" ;;
493 # Obsolete; use --with-x.
496 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
497 | --x-incl | --x-inc | --x-in | --x-i)
498 ac_prev=x_includes ;;
499 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
500 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
501 x_includes="$ac_optarg" ;;
503 -x-libraries | --x-libraries | --x-librarie | --x-librari \
504 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
505 ac_prev=x_libraries ;;
506 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
507 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
508 x_libraries="$ac_optarg" ;;
510 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
514 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
515 echo "configure: warning: $ac_option: invalid host type" 1>&2
517 if test "x$nonopt" != xNONE; then
518 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
526 if test -n "$ac_prev"; then
527 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
530 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
532 # File descriptor usage:
535 # 2 errors and warnings
536 # 3 some systems may open it to /dev/tty
537 # 4 used on the Kubota Titan
538 # 6 checking for... messages and results
539 # 5 compiler messages saved in config.log
540 if test "$silent" = yes; then
548 This file contains any messages produced by compilers while
549 running configure, to aid debugging if configure makes a mistake.
552 # Strip out --no-create and --no-recursion so they do not pile up.
553 # Also quote any args containing shell metacharacters.
558 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
559 | --no-cr | --no-c) ;;
560 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
561 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
562 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
563 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
564 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
569 # Only set these to C if already set. These must not be set unconditionally
570 # because not all systems understand e.g. LANG=C (notably SCO).
571 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
572 # Non-C LC_CTYPE values break the ctype check.
573 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
574 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
575 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
576 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
579 rm -rf conftest* confdefs.h
580 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
583 # A filename unique to this package, relative to the directory that
584 # configure is in, which we can look for to find out if srcdir is correct.
585 ac_unique_file=include/main.h
587 # Find the source files, if location was not specified.
588 if test -z "$srcdir"; then
589 ac_srcdir_defaulted=yes
590 # Try the directory containing this script, then its parent.
592 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
593 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
595 if test ! -r $srcdir/$ac_unique_file; then
599 ac_srcdir_defaulted=no
601 if test ! -r $srcdir/$ac_unique_file; then
602 if test "$ac_srcdir_defaulted" = yes; then
603 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
605 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
608 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
610 # Prefer explicitly selected file to automatically selected ones.
611 if test -z "$CONFIG_SITE"; then
612 if test "x$prefix" != xNONE; then
613 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
615 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
618 for ac_site_file in $CONFIG_SITE; do
619 if test -r "$ac_site_file"; then
620 echo "loading site script $ac_site_file"
625 if test -r "$cache_file"; then
626 echo "loading cache $cache_file"
629 echo "creating cache $cache_file"
634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
635 ac_cpp='$CPP $CPPFLAGS'
636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
638 cross_compiling=$ac_cv_prog_cc_cross
642 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
643 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
644 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
651 ac_n= ac_c='\c' ac_t=
657 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
658 if test -f $ac_dir/install-sh; then
660 ac_install_sh="$ac_aux_dir/install-sh -c"
662 elif test -f $ac_dir/install.sh; then
664 ac_install_sh="$ac_aux_dir/install.sh -c"
668 if test -z "$ac_aux_dir"; then
669 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
671 ac_config_guess=$ac_aux_dir/config.guess
672 ac_config_sub=$ac_aux_dir/config.sub
673 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
676 # Do some error checking and defaulting for the host and target type.
678 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
681 # 1. You are not allowed to specify --host, --target, and nonopt at the
683 # 2. Host defaults to nonopt.
684 # 3. If nonopt is not specified, then host defaults to the current host,
685 # as determined by config.guess.
686 # 4. Target and build default to nonopt.
687 # 5. If nonopt is not specified, then target and build default to host.
689 # The aliases save the names the user supplied, while $host etc.
690 # will get canonicalized.
691 case $host---$target---$nonopt in
692 NONE---*---* | *---NONE---* | *---*---NONE) ;;
693 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
697 # Make sure we can run config.sub.
698 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
699 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
702 echo $ac_n "checking host system type""... $ac_c" 1>&6
703 echo "configure:704: checking host system type" >&5
706 case "$host_alias" in
710 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
711 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
713 *) host_alias=$nonopt ;;
717 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
718 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
719 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
720 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
721 echo "$ac_t""$host" 1>&6
723 echo $ac_n "checking target system type""... $ac_c" 1>&6
724 echo "configure:725: checking target system type" >&5
727 case "$target_alias" in
730 NONE) target_alias=$host_alias ;;
731 *) target_alias=$nonopt ;;
735 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
736 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
737 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
738 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
739 echo "$ac_t""$target" 1>&6
741 echo $ac_n "checking build system type""... $ac_c" 1>&6
742 echo "configure:743: checking build system type" >&5
745 case "$build_alias" in
748 NONE) build_alias=$host_alias ;;
749 *) build_alias=$nonopt ;;
753 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
754 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
755 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
756 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
757 echo "$ac_t""$build" 1>&6
759 test "$host_alias" != "$target_alias" &&
760 test "$program_prefix$program_suffix$program_transform_name" = \
762 program_prefix=${target_alias}-
769 save_CFLAGS="${CFLAGS}"
770 save_CPPFLAGS="${CPPFLAGS}"
771 save_LDFLAGS="${LDFLAGS}"
773 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
774 echo "configure:775: checking whether ${MAKE-make} sets \${MAKE}" >&5
775 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
776 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 cat > conftestmake <<\EOF
781 @echo 'ac_maketemp="${MAKE}"'
783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
784 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
785 if test -n "$ac_maketemp"; then
786 eval ac_cv_prog_make_${ac_make}_set=yes
788 eval ac_cv_prog_make_${ac_make}_set=no
792 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
793 echo "$ac_t""yes" 1>&6
796 echo "$ac_t""no" 1>&6
797 SET_MAKE="MAKE=${MAKE-make}"
800 # Extract the first word of "gcc", so it can be a program name with args.
801 set dummy gcc; ac_word=$2
802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
803 echo "configure:804: checking for $ac_word" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
807 if test -n "$CC"; then
808 ac_cv_prog_CC="$CC" # Let the user override the test.
810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
812 for ac_dir in $ac_dummy; do
813 test -z "$ac_dir" && ac_dir=.
814 if test -f $ac_dir/$ac_word; then
823 if test -n "$CC"; then
824 echo "$ac_t""$CC" 1>&6
826 echo "$ac_t""no" 1>&6
829 if test -z "$CC"; then
830 # Extract the first word of "cc", so it can be a program name with args.
831 set dummy cc; ac_word=$2
832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
833 echo "configure:834: checking for $ac_word" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 if test -n "$CC"; then
838 ac_cv_prog_CC="$CC" # Let the user override the test.
840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
843 for ac_dir in $ac_dummy; do
844 test -z "$ac_dir" && ac_dir=.
845 if test -f $ac_dir/$ac_word; then
846 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
855 if test $ac_prog_rejected = yes; then
856 # We found a bogon in the path, so make sure we never use it.
857 set dummy $ac_cv_prog_CC
859 if test $# -gt 0; then
860 # We chose a different compiler from the bogus one.
861 # However, it has the same basename, so the bogon will be chosen
862 # first if we set CC to just the basename; use the full file name.
864 set dummy "$ac_dir/$ac_word" "$@"
872 if test -n "$CC"; then
873 echo "$ac_t""$CC" 1>&6
875 echo "$ac_t""no" 1>&6
878 if test -z "$CC"; then
881 # Extract the first word of "cl", so it can be a program name with args.
882 set dummy cl; ac_word=$2
883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
884 echo "configure:885: checking for $ac_word" >&5
885 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
888 if test -n "$CC"; then
889 ac_cv_prog_CC="$CC" # Let the user override the test.
891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
893 for ac_dir in $ac_dummy; do
894 test -z "$ac_dir" && ac_dir=.
895 if test -f $ac_dir/$ac_word; then
904 if test -n "$CC"; then
905 echo "$ac_t""$CC" 1>&6
907 echo "$ac_t""no" 1>&6
912 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
915 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
916 echo "configure:917: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
920 ac_cpp='$CPP $CPPFLAGS'
921 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
922 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
923 cross_compiling=$ac_cv_prog_cc_cross
925 cat > conftest.$ac_ext << EOF
927 #line 928 "configure"
928 #include "confdefs.h"
932 if { (eval echo configure:933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
933 ac_cv_prog_cc_works=yes
934 # If we can't run a trivial program, we are probably using a cross compiler.
935 if (./conftest; exit) 2>/dev/null; then
936 ac_cv_prog_cc_cross=no
938 ac_cv_prog_cc_cross=yes
941 echo "configure: failed program was:" >&5
942 cat conftest.$ac_ext >&5
943 ac_cv_prog_cc_works=no
947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
948 ac_cpp='$CPP $CPPFLAGS'
949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
951 cross_compiling=$ac_cv_prog_cc_cross
953 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
954 if test $ac_cv_prog_cc_works = no; then
955 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
957 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
958 echo "configure:959: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
959 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
960 cross_compiling=$ac_cv_prog_cc_cross
962 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
963 echo "configure:964: checking whether we are using GNU C" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 cat > conftest.c <<EOF
972 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
979 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
981 if test $ac_cv_prog_gcc = yes; then
987 ac_test_CFLAGS="${CFLAGS+set}"
988 ac_save_CFLAGS="$CFLAGS"
990 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
991 echo "configure:992: checking whether ${CC-cc} accepts -g" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 echo 'void f(){}' > conftest.c
996 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1005 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1006 if test "$ac_test_CFLAGS" = set; then
1007 CFLAGS="$ac_save_CFLAGS"
1008 elif test $ac_cv_prog_cc_g = yes; then
1009 if test "$GCC" = yes; then
1015 if test "$GCC" = yes; then
1022 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1023 echo "configure:1024: checking how to run the C preprocessor" >&5
1024 # On Suns, sometimes $CPP names a directory.
1025 if test -n "$CPP" && test -d "$CPP"; then
1028 if test -z "$CPP"; then
1029 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 # This must be in double quotes, not single quotes, because CPP may get
1033 # substituted into the Makefile and "${CC-cc}" will confuse make.
1035 # On the NeXT, cc -E runs the code through the compiler's parser,
1036 # not just through cpp.
1037 cat > conftest.$ac_ext <<EOF
1038 #line 1039 "configure"
1039 #include "confdefs.h"
1043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1044 { (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1046 if test -z "$ac_err"; then
1050 echo "configure: failed program was:" >&5
1051 cat conftest.$ac_ext >&5
1053 CPP="${CC-cc} -E -traditional-cpp"
1054 cat > conftest.$ac_ext <<EOF
1055 #line 1056 "configure"
1056 #include "confdefs.h"
1060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1061 { (eval echo configure:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1063 if test -z "$ac_err"; then
1067 echo "configure: failed program was:" >&5
1068 cat conftest.$ac_ext >&5
1070 CPP="${CC-cc} -nologo -E"
1071 cat > conftest.$ac_ext <<EOF
1072 #line 1073 "configure"
1073 #include "confdefs.h"
1077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1078 { (eval echo configure:1079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1080 if test -z "$ac_err"; then
1084 echo "configure: failed program was:" >&5
1085 cat conftest.$ac_ext >&5
1094 ac_cv_prog_CPP="$CPP"
1096 CPP="$ac_cv_prog_CPP"
1098 ac_cv_prog_CPP="$CPP"
1100 echo "$ac_t""$CPP" 1>&6
1103 if test $host != $build; then
1104 ac_tool_prefix=${host_alias}-
1109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1110 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 if test -n "$RANLIB"; then
1117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1121 for ac_dir in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1131 RANLIB="$ac_cv_prog_RANLIB"
1132 if test -n "$RANLIB"; then
1133 echo "$ac_t""$RANLIB" 1>&6
1135 echo "$ac_t""no" 1>&6
1139 if test -z "$ac_cv_prog_RANLIB"; then
1140 if test -n "$ac_tool_prefix"; then
1141 # Extract the first word of "ranlib", so it can be a program name with args.
1142 set dummy ranlib; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -n "$RANLIB"; then
1149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1153 for ac_dir in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f $ac_dir/$ac_word; then
1156 ac_cv_prog_RANLIB="ranlib"
1161 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1164 RANLIB="$ac_cv_prog_RANLIB"
1165 if test -n "$RANLIB"; then
1166 echo "$ac_t""$RANLIB" 1>&6
1168 echo "$ac_t""no" 1>&6
1176 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1177 set dummy ${ac_tool_prefix}strip; ac_word=$2
1178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1179 echo "configure:1180: checking for $ac_word" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 if test -n "$STRIP"; then
1184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1188 for ac_dir in $ac_dummy; do
1189 test -z "$ac_dir" && ac_dir=.
1190 if test -f $ac_dir/$ac_word; then
1191 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1198 STRIP="$ac_cv_prog_STRIP"
1199 if test -n "$STRIP"; then
1200 echo "$ac_t""$STRIP" 1>&6
1202 echo "$ac_t""no" 1>&6
1206 if test -z "$ac_cv_prog_STRIP"; then
1207 if test -n "$ac_tool_prefix"; then
1208 # Extract the first word of "strip", so it can be a program name with args.
1209 set dummy strip; ac_word=$2
1210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1211 echo "configure:1212: checking for $ac_word" >&5
1212 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 if test -n "$STRIP"; then
1216 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1220 for ac_dir in $ac_dummy; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f $ac_dir/$ac_word; then
1223 ac_cv_prog_STRIP="strip"
1228 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1231 STRIP="$ac_cv_prog_STRIP"
1232 if test -n "$STRIP"; then
1233 echo "$ac_t""$STRIP" 1>&6
1235 echo "$ac_t""no" 1>&6
1244 # Extract the first word of "gmake", so it can be a program name with args.
1245 set dummy gmake; ac_word=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1253 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1256 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1261 for ac_dir in $ac_dummy; do
1262 test -z "$ac_dir" && ac_dir=.
1263 if test -f $ac_dir/$ac_word; then
1264 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1269 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1273 GMAKE="$ac_cv_path_GMAKE"
1274 if test -n "$GMAKE"; then
1275 echo "$ac_t""$GMAKE" 1>&6
1277 echo "$ac_t""no" 1>&6
1280 if test "x$GMAKE" = "xno"; then
1281 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1282 echo "configure:1283: checking whether GNU make is installed" >&5
1283 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 if make --version | grep -q -i gnu; then
1289 echo "This software needs you to install GNU make to compile properly."
1290 echo "You can get it from http://www.gnu.org/."
1295 echo "$ac_t""$ac_cv_gmake" 1>&6
1301 ALL_LINGUAS="de en_GB fr ja no ru nl"
1303 cat >> confdefs.h <<EOF
1304 #define VLC_PACKAGE "$PACKAGE"
1307 cat >> confdefs.h <<EOF
1308 #define VLC_VERSION "$VERSION"
1311 # Extract the first word of "ranlib", so it can be a program name with args.
1312 set dummy ranlib; ac_word=$2
1313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1314 echo "configure:1315: checking for $ac_word" >&5
1315 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 if test -n "$RANLIB"; then
1319 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1323 for ac_dir in $ac_dummy; do
1324 test -z "$ac_dir" && ac_dir=.
1325 if test -f $ac_dir/$ac_word; then
1326 ac_cv_prog_RANLIB="ranlib"
1331 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1334 RANLIB="$ac_cv_prog_RANLIB"
1335 if test -n "$RANLIB"; then
1336 echo "$ac_t""$RANLIB" 1>&6
1338 echo "$ac_t""no" 1>&6
1342 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1343 echo "configure:1344: checking for strerror in -lcposix" >&5
1344 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 ac_save_LIBS="$LIBS"
1349 LIBS="-lcposix $LIBS"
1350 cat > conftest.$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1353 /* Override any gcc2 internal prototype to avoid an error. */
1354 /* We use char because int might match the return type of a gcc2
1355 builtin and then its argument prototype would still apply. */
1362 if { (eval echo configure:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1364 eval "ac_cv_lib_$ac_lib_var=yes"
1366 echo "configure: failed program was:" >&5
1367 cat conftest.$ac_ext >&5
1369 eval "ac_cv_lib_$ac_lib_var=no"
1372 LIBS="$ac_save_LIBS"
1375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1376 echo "$ac_t""yes" 1>&6
1377 LIBS="$LIBS -lcposix"
1379 echo "$ac_t""no" 1>&6
1384 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1385 echo "configure:1386: checking for ANSI C header files" >&5
1386 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 cat > conftest.$ac_ext <<EOF
1390 #line 1391 "configure"
1391 #include "confdefs.h"
1397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1398 { (eval echo configure:1399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1400 if test -z "$ac_err"; then
1402 ac_cv_header_stdc=yes
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1408 ac_cv_header_stdc=no
1412 if test $ac_cv_header_stdc = yes; then
1413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1414 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1420 egrep "memchr" >/dev/null 2>&1; then
1424 ac_cv_header_stdc=no
1430 if test $ac_cv_header_stdc = yes; then
1431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1438 egrep "free" >/dev/null 2>&1; then
1442 ac_cv_header_stdc=no
1448 if test $ac_cv_header_stdc = yes; then
1449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1450 if test "$cross_compiling" = yes; then
1453 cat > conftest.$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1457 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1458 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1460 int main () { int i; for (i = 0; i < 256; i++)
1461 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1465 if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1469 echo "configure: failed program was:" >&5
1470 cat conftest.$ac_ext >&5
1472 ac_cv_header_stdc=no
1480 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1481 if test $ac_cv_header_stdc = yes; then
1482 cat >> confdefs.h <<\EOF
1483 #define STDC_HEADERS 1
1488 echo $ac_n "checking for working const""... $ac_c" 1>&6
1489 echo "configure:1490: checking for working const" >&5
1490 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 cat > conftest.$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1499 /* Ultrix mips cc rejects this. */
1500 typedef int charset[2]; const charset x;
1501 /* SunOS 4.1.1 cc rejects this. */
1502 char const *const *ccp;
1504 /* NEC SVR4.0.2 mips cc rejects this. */
1505 struct point {int x, y;};
1506 static struct point const zero = {0,0};
1507 /* AIX XL C 1.02.0.0 rejects this.
1508 It does not let you subtract one const X* pointer from another in an arm
1509 of an if-expression whose if-part is not a constant expression */
1510 const char *g = "string";
1511 ccp = &g + (g ? g-g : 0);
1512 /* HPUX 7.0 cc rejects these. */
1515 ccp = (char const *const *) p;
1516 { /* SCO 3.2v4 cc rejects this. */
1518 char const *s = 0 ? (char *) 0 : (char const *) 0;
1522 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1524 const int *foo = &x[0];
1527 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1528 typedef const int *iptr;
1532 { /* AIX XL C 1.02.0.0 rejects this saying
1533 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1534 struct s { int j; const int *ap[3]; };
1535 struct s *b; b->j = 5;
1537 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1543 if { (eval echo configure:1544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1547 echo "configure: failed program was:" >&5
1548 cat conftest.$ac_ext >&5
1555 echo "$ac_t""$ac_cv_c_const" 1>&6
1556 if test $ac_cv_c_const = no; then
1557 cat >> confdefs.h <<\EOF
1563 echo $ac_n "checking for inline""... $ac_c" 1>&6
1564 echo "configure:1565: checking for inline" >&5
1565 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1569 for ac_kw in inline __inline__ __inline; do
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1578 if { (eval echo configure:1579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1580 ac_cv_c_inline=$ac_kw; break
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1590 echo "$ac_t""$ac_cv_c_inline" 1>&6
1591 case "$ac_cv_c_inline" in
1593 no) cat >> confdefs.h <<\EOF
1597 *) cat >> confdefs.h <<EOF
1598 #define inline $ac_cv_c_inline
1603 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1604 echo "configure:1605: checking for off_t" >&5
1605 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 #include <sys/types.h>
1617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1618 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1620 ac_cv_type_off_t=yes
1628 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1629 if test $ac_cv_type_off_t = no; then
1630 cat >> confdefs.h <<\EOF
1636 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1637 echo "configure:1638: checking for size_t" >&5
1638 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1641 cat > conftest.$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1644 #include <sys/types.h>
1650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1651 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1653 ac_cv_type_size_t=yes
1656 ac_cv_type_size_t=no
1661 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1662 if test $ac_cv_type_size_t = no; then
1663 cat >> confdefs.h <<\EOF
1664 #define size_t unsigned
1669 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1670 # for constant arguments. Useless!
1671 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1672 echo "configure:1673: checking for working alloca.h" >&5
1673 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 cat > conftest.$ac_ext <<EOF
1677 #line 1678 "configure"
1678 #include "confdefs.h"
1681 char *p = alloca(2 * sizeof(int));
1684 if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1686 ac_cv_header_alloca_h=yes
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1691 ac_cv_header_alloca_h=no
1696 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1697 if test $ac_cv_header_alloca_h = yes; then
1698 cat >> confdefs.h <<\EOF
1699 #define HAVE_ALLOCA_H 1
1704 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1705 echo "configure:1706: checking for alloca" >&5
1706 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1709 cat > conftest.$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1714 # define alloca __builtin_alloca
1717 # include <malloc.h>
1718 # define alloca _alloca
1721 # include <alloca.h>
1726 # ifndef alloca /* predefined by HP cc +Olibcalls */
1735 char *p = (char *) alloca(1);
1738 if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1740 ac_cv_func_alloca_works=yes
1742 echo "configure: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1745 ac_cv_func_alloca_works=no
1750 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1751 if test $ac_cv_func_alloca_works = yes; then
1752 cat >> confdefs.h <<\EOF
1753 #define HAVE_ALLOCA 1
1758 if test $ac_cv_func_alloca_works = no; then
1759 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1760 # that cause trouble. Some versions do not even contain alloca or
1761 # contain a buggy version. If you still want to use their alloca,
1762 # use ar to extract alloca.o from them instead of compiling alloca.c.
1763 ALLOCA=alloca.${ac_objext}
1764 cat >> confdefs.h <<\EOF
1769 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1770 echo "configure:1771: checking whether alloca needs Cray hooks" >&5
1771 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1777 #if defined(CRAY) && ! defined(CRAY2)
1784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1785 egrep "webecray" >/dev/null 2>&1; then
1796 echo "$ac_t""$ac_cv_os_cray" 1>&6
1797 if test $ac_cv_os_cray = yes; then
1798 for ac_func in _getb67 GETB67 getb67; do
1799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1800 echo "configure:1801: checking for $ac_func" >&5
1801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 /* System header to define __stub macros and hopefully few prototypes,
1808 which can conflict with char $ac_func(); below. */
1810 /* Override any gcc2 internal prototype to avoid an error. */
1811 /* We use char because int might match the return type of a gcc2
1812 builtin and then its argument prototype would still apply. */
1817 /* The GNU C library defines this for functions which it implements
1818 to always fail with ENOSYS. Some functions are actually named
1819 something starting with __ and the normal name is an alias. */
1820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1828 if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1830 eval "ac_cv_func_$ac_func=yes"
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1835 eval "ac_cv_func_$ac_func=no"
1840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1841 echo "$ac_t""yes" 1>&6
1842 cat >> confdefs.h <<EOF
1843 #define CRAY_STACKSEG_END $ac_func
1848 echo "$ac_t""no" 1>&6
1854 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1855 echo "configure:1856: checking stack direction for C alloca" >&5
1856 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 if test "$cross_compiling" = yes; then
1860 ac_cv_c_stack_direction=0
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1865 find_stack_direction ()
1867 static char *addr = 0;
1872 return find_stack_direction ();
1875 return (&dummy > addr) ? 1 : -1;
1879 exit (find_stack_direction() < 0);
1882 if { (eval echo configure:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1884 ac_cv_c_stack_direction=1
1886 echo "configure: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1889 ac_cv_c_stack_direction=-1
1896 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1897 cat >> confdefs.h <<EOF
1898 #define STACK_DIRECTION $ac_cv_c_stack_direction
1903 for ac_hdr in unistd.h
1905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_hdr" >&5
1908 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 cat > conftest.$ac_ext <<EOF
1912 #line 1913 "configure"
1913 #include "confdefs.h"
1916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1917 { (eval echo configure:1918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1919 if test -z "$ac_err"; then
1921 eval "ac_cv_header_$ac_safe=yes"
1924 echo "configure: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1927 eval "ac_cv_header_$ac_safe=no"
1931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1932 echo "$ac_t""yes" 1>&6
1933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1934 cat >> confdefs.h <<EOF
1935 #define $ac_tr_hdr 1
1939 echo "$ac_t""no" 1>&6
1943 for ac_func in getpagesize
1945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1946 echo "configure:1947: checking for $ac_func" >&5
1947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 /* System header to define __stub macros and hopefully few prototypes,
1954 which can conflict with char $ac_func(); below. */
1956 /* Override any gcc2 internal prototype to avoid an error. */
1957 /* We use char because int might match the return type of a gcc2
1958 builtin and then its argument prototype would still apply. */
1963 /* The GNU C library defines this for functions which it implements
1964 to always fail with ENOSYS. Some functions are actually named
1965 something starting with __ and the normal name is an alias. */
1966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1974 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1976 eval "ac_cv_func_$ac_func=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 eval "ac_cv_func_$ac_func=no"
1986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1988 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1989 cat >> confdefs.h <<EOF
1990 #define $ac_tr_func 1
1994 echo "$ac_t""no" 1>&6
1998 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1999 echo "configure:2000: checking for working mmap" >&5
2000 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2003 if test "$cross_compiling" = yes; then
2004 ac_cv_func_mmap_fixed_mapped=no
2006 cat > conftest.$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2010 /* Thanks to Mike Haertel and Jim Avera for this test.
2011 Here is a matrix of mmap possibilities:
2012 mmap private not fixed
2013 mmap private fixed at somewhere currently unmapped
2014 mmap private fixed at somewhere already mapped
2015 mmap shared not fixed
2016 mmap shared fixed at somewhere currently unmapped
2017 mmap shared fixed at somewhere already mapped
2018 For private mappings, we should verify that changes cannot be read()
2019 back from the file, nor mmap's back from the file at a different
2020 address. (There have been systems where private was not correctly
2021 implemented like the infamous i386 svr4.0, and systems where the
2022 VM page cache was not coherent with the filesystem buffer cache
2023 like early versions of FreeBSD and possibly contemporary NetBSD.)
2024 For shared mappings, we should conversely verify that changes get
2025 propogated back to all the places they're supposed to be.
2027 Grep wants private fixed already mapped.
2028 The main things grep needs to know about mmap are:
2029 * does it exist and is it safe to write into the mmap'd area
2030 * how to use it (BSD variants) */
2031 #include <sys/types.h>
2033 #include <sys/mman.h>
2035 /* This mess was copied from the GNU getpagesize.h. */
2036 #ifndef HAVE_GETPAGESIZE
2037 # ifdef HAVE_UNISTD_H
2038 # include <unistd.h>
2041 /* Assume that all systems that can run configure have sys/param.h. */
2042 # ifndef HAVE_SYS_PARAM_H
2043 # define HAVE_SYS_PARAM_H 1
2046 # ifdef _SC_PAGESIZE
2047 # define getpagesize() sysconf(_SC_PAGESIZE)
2048 # else /* no _SC_PAGESIZE */
2049 # ifdef HAVE_SYS_PARAM_H
2050 # include <sys/param.h>
2051 # ifdef EXEC_PAGESIZE
2052 # define getpagesize() EXEC_PAGESIZE
2053 # else /* no EXEC_PAGESIZE */
2055 # define getpagesize() NBPG * CLSIZE
2058 # endif /* no CLSIZE */
2059 # else /* no NBPG */
2061 # define getpagesize() NBPC
2062 # else /* no NBPC */
2064 # define getpagesize() PAGESIZE
2065 # endif /* PAGESIZE */
2066 # endif /* no NBPC */
2067 # endif /* no NBPG */
2068 # endif /* no EXEC_PAGESIZE */
2069 # else /* no HAVE_SYS_PARAM_H */
2070 # define getpagesize() 8192 /* punt totally */
2071 # endif /* no HAVE_SYS_PARAM_H */
2072 # endif /* no _SC_PAGESIZE */
2074 #endif /* no HAVE_GETPAGESIZE */
2077 extern "C" { void *malloc(unsigned); }
2085 char *data, *data2, *data3;
2089 pagesize = getpagesize();
2092 * First, make a file with some known garbage in it.
2094 data = malloc(pagesize);
2097 for (i = 0; i < pagesize; ++i)
2098 *(data + i) = rand();
2100 fd = creat("conftestmmap", 0600);
2103 if (write(fd, data, pagesize) != pagesize)
2108 * Next, try to mmap the file at a fixed address which
2109 * already has something else allocated at it. If we can,
2110 * also make sure that we see the same garbage.
2112 fd = open("conftestmmap", O_RDWR);
2115 data2 = malloc(2 * pagesize);
2118 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2119 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2120 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2122 for (i = 0; i < pagesize; ++i)
2123 if (*(data + i) != *(data2 + i))
2127 * Finally, make sure that changes to the mapped area
2128 * do not percolate back to the file as seen by read().
2129 * (This is a bug on some variants of i386 svr4.0.)
2131 for (i = 0; i < pagesize; ++i)
2132 *(data2 + i) = *(data2 + i) + 1;
2133 data3 = malloc(pagesize);
2136 if (read(fd, data3, pagesize) != pagesize)
2138 for (i = 0; i < pagesize; ++i)
2139 if (*(data + i) != *(data3 + i))
2142 unlink("conftestmmap");
2147 if { (eval echo configure:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2149 ac_cv_func_mmap_fixed_mapped=yes
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2154 ac_cv_func_mmap_fixed_mapped=no
2161 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2162 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2163 cat >> confdefs.h <<\EOF
2170 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2171 echo "configure:2172: checking whether we are using the GNU C Library 2.1 or newer" >&5
2172 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2179 #include <features.h>
2180 #ifdef __GNU_LIBRARY__
2181 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2188 egrep "Lucky GNU user" >/dev/null 2>&1; then
2190 ac_cv_gnu_library_2_1=yes
2193 ac_cv_gnu_library_2_1=no
2201 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2203 GLIBC21="$ac_cv_gnu_library_2_1"
2207 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2208 stdlib.h string.h unistd.h sys/param.h
2210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2212 echo "configure:2213: checking for $ac_hdr" >&5
2213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 cat > conftest.$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2222 { (eval echo configure:2223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2224 if test -z "$ac_err"; then
2226 eval "ac_cv_header_$ac_safe=yes"
2229 echo "configure: failed program was:" >&5
2230 cat conftest.$ac_ext >&5
2232 eval "ac_cv_header_$ac_safe=no"
2236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2237 echo "$ac_t""yes" 1>&6
2238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2239 cat >> confdefs.h <<EOF
2240 #define $ac_tr_hdr 1
2244 echo "$ac_t""no" 1>&6
2248 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2249 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2250 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2253 echo "configure:2254: checking for $ac_func" >&5
2254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2257 cat > conftest.$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2260 /* System header to define __stub macros and hopefully few prototypes,
2261 which can conflict with char $ac_func(); below. */
2263 /* Override any gcc2 internal prototype to avoid an error. */
2264 /* We use char because int might match the return type of a gcc2
2265 builtin and then its argument prototype would still apply. */
2270 /* The GNU C library defines this for functions which it implements
2271 to always fail with ENOSYS. Some functions are actually named
2272 something starting with __ and the normal name is an alias. */
2273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2281 if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2283 eval "ac_cv_func_$ac_func=yes"
2285 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2288 eval "ac_cv_func_$ac_func=no"
2293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2294 echo "$ac_t""yes" 1>&6
2295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2296 cat >> confdefs.h <<EOF
2297 #define $ac_tr_func 1
2301 echo "$ac_t""no" 1>&6
2308 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2309 if test "${with_libiconv_prefix+set}" = set; then
2310 withval="$with_libiconv_prefix"
2312 for dir in `echo "$withval" | tr : ' '`; do
2313 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2314 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2320 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2321 echo "configure:2322: checking for iconv" >&5
2322 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2326 am_cv_func_iconv="no, consider installing GNU libiconv"
2328 cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2334 iconv_t cd = iconv_open("","");
2335 iconv(cd,NULL,NULL,NULL,NULL);
2339 if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2341 am_cv_func_iconv=yes
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2347 if test "$am_cv_func_iconv" != yes; then
2348 am_save_LIBS="$LIBS"
2349 LIBS="$LIBS -liconv"
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2356 iconv_t cd = iconv_open("","");
2357 iconv(cd,NULL,NULL,NULL,NULL);
2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2364 am_cv_func_iconv=yes
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2370 LIBS="$am_save_LIBS"
2375 echo "$ac_t""$am_cv_func_iconv" 1>&6
2376 if test "$am_cv_func_iconv" = yes; then
2377 cat >> confdefs.h <<\EOF
2378 #define HAVE_ICONV 1
2381 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2382 echo "configure:2383: checking for iconv declaration" >&5
2383 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2397 #if defined(__STDC__) || defined(__cplusplus)
2398 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2407 if { (eval echo configure:2408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2409 am_cv_proto_iconv_arg1=""
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 am_cv_proto_iconv_arg1="const"
2417 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);"
2420 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2421 echo "$ac_t""${ac_t:-
2422 }$am_cv_proto_iconv" 1>&6
2423 cat >> confdefs.h <<EOF
2424 #define ICONV_CONST $am_cv_proto_iconv_arg1
2429 if test "$am_cv_lib_iconv" = yes; then
2435 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2436 echo "configure:2437: checking for nl_langinfo and CODESET" >&5
2437 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 #include <langinfo.h>
2445 char* cs = nl_langinfo(CODESET);
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2450 am_cv_langinfo_codeset=yes
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2455 am_cv_langinfo_codeset=no
2461 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2462 if test $am_cv_langinfo_codeset = yes; then
2463 cat >> confdefs.h <<\EOF
2464 #define HAVE_LANGINFO_CODESET 1
2469 if test $ac_cv_header_locale_h = yes; then
2470 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2471 echo "configure:2472: checking for LC_MESSAGES" >&5
2472 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2485 am_cv_val_LC_MESSAGES=yes
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2490 am_cv_val_LC_MESSAGES=no
2495 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2496 if test $am_cv_val_LC_MESSAGES = yes; then
2497 cat >> confdefs.h <<\EOF
2498 #define HAVE_LC_MESSAGES 1
2503 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2504 echo "configure:2505: checking whether NLS is requested" >&5
2505 # Check whether --enable-nls or --disable-nls was given.
2506 if test "${enable_nls+set}" = set; then
2507 enableval="$enable_nls"
2513 echo "$ac_t""$USE_NLS" 1>&6
2516 BUILD_INCLUDED_LIBINTL=no
2517 USE_INCLUDED_LIBINTL=no
2520 if test "$USE_NLS" = "yes"; then
2521 cat >> confdefs.h <<\EOF
2522 #define ENABLE_NLS 1
2525 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2526 echo "configure:2527: checking whether included gettext is requested" >&5
2527 # Check whether --with-included-gettext or --without-included-gettext was given.
2528 if test "${with_included_gettext+set}" = set; then
2529 withval="$with_included_gettext"
2530 nls_cv_force_use_gnu_gettext=$withval
2532 nls_cv_force_use_gnu_gettext=no
2535 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2537 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2538 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2544 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2545 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2546 echo "configure:2547: checking for libintl.h" >&5
2547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2553 #include <libintl.h>
2555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2556 { (eval echo configure:2557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2558 if test -z "$ac_err"; then
2560 eval "ac_cv_header_$ac_safe=yes"
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2566 eval "ac_cv_header_$ac_safe=no"
2570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2572 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2573 echo "configure:2574: checking for GNU gettext in libc" >&5
2574 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2577 cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2580 #include <libintl.h>
2581 extern int _nl_msg_cat_cntr;
2583 bindtextdomain ("", "");
2584 return (int) gettext ("") + _nl_msg_cat_cntr
2587 if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2589 gt_cv_func_gnugettext1_libc=yes
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2594 gt_cv_func_gnugettext1_libc=no
2599 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2601 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2602 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2603 echo "configure:2604: checking for GNU gettext in libintl" >&5
2604 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 gt_save_LIBS="$LIBS"
2608 LIBS="$LIBS -lintl $LIBICONV"
2609 cat > conftest.$ac_ext <<EOF
2610 #line 2611 "configure"
2611 #include "confdefs.h"
2612 #include <libintl.h>
2613 extern int _nl_msg_cat_cntr;
2615 bindtextdomain ("", "");
2616 return (int) gettext ("") + _nl_msg_cat_cntr
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2621 gt_cv_func_gnugettext1_libintl=yes
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2626 gt_cv_func_gnugettext1_libintl=no
2629 LIBS="$gt_save_LIBS"
2632 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2635 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2636 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2637 && test "$PACKAGE" != gettext; }; then
2638 cat >> confdefs.h <<\EOF
2639 #define HAVE_GETTEXT 1
2643 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2644 INTLLIBS="-lintl $LIBICONV"
2647 gt_save_LIBS="$LIBS"
2648 LIBS="$LIBS $INTLLIBS"
2649 for ac_func in dcgettext
2651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2652 echo "configure:2653: checking for $ac_func" >&5
2653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659 /* System header to define __stub macros and hopefully few prototypes,
2660 which can conflict with char $ac_func(); below. */
2662 /* Override any gcc2 internal prototype to avoid an error. */
2663 /* We use char because int might match the return type of a gcc2
2664 builtin and then its argument prototype would still apply. */
2669 /* The GNU C library defines this for functions which it implements
2670 to always fail with ENOSYS. Some functions are actually named
2671 something starting with __ and the normal name is an alias. */
2672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2680 if { (eval echo configure:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2682 eval "ac_cv_func_$ac_func=yes"
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2687 eval "ac_cv_func_$ac_func=no"
2692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2693 echo "$ac_t""yes" 1>&6
2694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2695 cat >> confdefs.h <<EOF
2696 #define $ac_tr_func 1
2700 echo "$ac_t""no" 1>&6
2704 LIBS="$gt_save_LIBS"
2706 # Extract the first word of "msgfmt", so it can be a program name with args.
2707 set dummy msgfmt; ac_word=$2
2708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2709 echo "configure:2710: checking for $ac_word" >&5
2710 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2715 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2719 for ac_dir in $PATH; do
2720 test -z "$ac_dir" && ac_dir=.
2721 if test -f $ac_dir/$ac_word; then
2722 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2723 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2729 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2733 MSGFMT="$ac_cv_path_MSGFMT"
2734 if test "$MSGFMT" != ":"; then
2735 echo "$ac_t""$MSGFMT" 1>&6
2737 echo "$ac_t""no" 1>&6
2740 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2741 set dummy gmsgfmt; ac_word=$2
2742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2743 echo "configure:2744: checking for $ac_word" >&5
2744 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2749 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2752 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2757 for ac_dir in $ac_dummy; do
2758 test -z "$ac_dir" && ac_dir=.
2759 if test -f $ac_dir/$ac_word; then
2760 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2765 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2769 GMSGFMT="$ac_cv_path_GMSGFMT"
2770 if test -n "$GMSGFMT"; then
2771 echo "$ac_t""$GMSGFMT" 1>&6
2773 echo "$ac_t""no" 1>&6
2777 # Extract the first word of "xgettext", so it can be a program name with args.
2778 set dummy xgettext; ac_word=$2
2779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2780 echo "configure:2781: checking for $ac_word" >&5
2781 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2786 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2790 for ac_dir in $PATH; do
2791 test -z "$ac_dir" && ac_dir=.
2792 if test -f $ac_dir/$ac_word; then
2793 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2794 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2800 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2804 XGETTEXT="$ac_cv_path_XGETTEXT"
2805 if test "$XGETTEXT" != ":"; then
2806 echo "$ac_t""$XGETTEXT" 1>&6
2808 echo "$ac_t""no" 1>&6
2816 echo "$ac_t""no" 1>&6
2820 if test "$CATOBJEXT" = "NONE"; then
2821 nls_cv_use_gnu_gettext=yes
2825 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2826 INTLOBJS="\$(GETTOBJS)"
2827 # Extract the first word of "msgfmt", so it can be a program name with args.
2828 set dummy msgfmt; ac_word=$2
2829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2830 echo "configure:2831: checking for $ac_word" >&5
2831 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2836 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2840 for ac_dir in $PATH; do
2841 test -z "$ac_dir" && ac_dir=.
2842 if test -f $ac_dir/$ac_word; then
2843 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2844 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2850 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2854 MSGFMT="$ac_cv_path_MSGFMT"
2855 if test "$MSGFMT" != ":"; then
2856 echo "$ac_t""$MSGFMT" 1>&6
2858 echo "$ac_t""no" 1>&6
2861 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2862 set dummy gmsgfmt; ac_word=$2
2863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2864 echo "configure:2865: checking for $ac_word" >&5
2865 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2870 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2873 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2878 for ac_dir in $ac_dummy; do
2879 test -z "$ac_dir" && ac_dir=.
2880 if test -f $ac_dir/$ac_word; then
2881 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2886 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2890 GMSGFMT="$ac_cv_path_GMSGFMT"
2891 if test -n "$GMSGFMT"; then
2892 echo "$ac_t""$GMSGFMT" 1>&6
2894 echo "$ac_t""no" 1>&6
2897 # Extract the first word of "xgettext", so it can be a program name with args.
2898 set dummy xgettext; ac_word=$2
2899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2900 echo "configure:2901: checking for $ac_word" >&5
2901 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2906 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2910 for ac_dir in $PATH; do
2911 test -z "$ac_dir" && ac_dir=.
2912 if test -f $ac_dir/$ac_word; then
2913 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2914 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2920 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2924 XGETTEXT="$ac_cv_path_XGETTEXT"
2925 if test "$XGETTEXT" != ":"; then
2926 echo "$ac_t""$XGETTEXT" 1>&6
2928 echo "$ac_t""no" 1>&6
2932 BUILD_INCLUDED_LIBINTL=yes
2933 USE_INCLUDED_LIBINTL=yes
2935 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2936 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2939 if test "$GMSGFMT" != ":"; then
2940 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2943 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2948 if test "$XGETTEXT" != ":"; then
2949 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2952 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2962 if test "$PACKAGE" = gettext; then
2963 BUILD_INCLUDED_LIBINTL=yes
2966 for ac_prog in bison
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2971 echo "configure:2972: checking for $ac_word" >&5
2972 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 if test -n "$INTLBISON"; then
2976 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2980 for ac_dir in $ac_dummy; do
2981 test -z "$ac_dir" && ac_dir=.
2982 if test -f $ac_dir/$ac_word; then
2983 ac_cv_prog_INTLBISON="$ac_prog"
2990 INTLBISON="$ac_cv_prog_INTLBISON"
2991 if test -n "$INTLBISON"; then
2992 echo "$ac_t""$INTLBISON" 1>&6
2994 echo "$ac_t""no" 1>&6
2997 test -n "$INTLBISON" && break
3000 if test -z "$INTLBISON"; then
3003 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3004 echo "configure:3005: checking version of bison" >&5
3005 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3006 case $ac_prog_version in
3007 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3008 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3009 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3010 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3012 echo "$ac_t""$ac_prog_version" 1>&6
3014 if test $ac_verc_fail = yes; then
3018 for lang in $ALL_LINGUAS; do
3019 GMOFILES="$GMOFILES $lang.gmo"
3020 POFILES="$POFILES $lang.po"
3034 nls_cv_header_libgt=
3046 if test "x$CATOBJEXT" != "x"; then
3047 if test "x$ALL_LINGUAS" = "x"; then
3050 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3051 echo "configure:3052: checking for catalogs to be installed" >&5
3053 for presentlang in $ALL_LINGUAS; do
3055 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3056 # Use the presentlang catalog if desiredlang is
3057 # a. equal to presentlang, or
3058 # b. a variant of presentlang (because in this case,
3059 # presentlang can be used as a fallback for messages
3060 # which are not translated in the desiredlang catalog).
3061 case "$desiredlang" in
3062 "$presentlang"*) useit=yes;;
3065 if test $useit = yes; then
3066 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3069 LINGUAS=$NEW_LINGUAS
3070 echo "$ac_t""$LINGUAS" 1>&6
3073 if test -n "$LINGUAS"; then
3074 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3079 if test -n "$ac_aux_dir"; then
3080 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3082 if test -z "$MKINSTALLDIRS"; then
3083 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3087 INTL_LIBTOOL_SUFFIX_PREFIX=
3091 # Find a good install program. We prefer a C program (faster),
3092 # so one script is as good as another. But avoid the broken or
3093 # incompatible versions:
3094 # SysV /etc/install, /usr/sbin/install
3095 # SunOS /usr/etc/install
3096 # IRIX /sbin/install
3098 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3099 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3100 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3101 # ./install, which can be erroneously created by make from ./install.sh.
3102 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3103 echo "configure:3104: checking for a BSD compatible install" >&5
3104 if test -z "$INSTALL"; then
3105 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3109 for ac_dir in $PATH; do
3110 # Account for people who put trailing slashes in PATH elements.
3112 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3114 # OSF1 and SCO ODT 3.0 have their own names for install.
3115 # Don't use installbsd from OSF since it installs stuff as root
3117 for ac_prog in ginstall scoinst install; do
3118 if test -f $ac_dir/$ac_prog; then
3119 if test $ac_prog = install &&
3120 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3121 # AIX install. It has an incompatible calling convention.
3124 ac_cv_path_install="$ac_dir/$ac_prog -c"
3135 if test "${ac_cv_path_install+set}" = set; then
3136 INSTALL="$ac_cv_path_install"
3138 # As a last resort, use the slow shell script. We don't cache a
3139 # path for INSTALL within a source directory, because that will
3140 # break other packages using the cache if that directory is
3141 # removed, or if the path is relative.
3142 INSTALL="$ac_install_sh"
3145 echo "$ac_t""$INSTALL" 1>&6
3147 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3148 # It thinks the first close brace ends the variable substitution.
3149 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3151 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3153 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3156 case x"${target_os}" in
3165 save_CFLAGS="${save_CFLAGS} -pthread"
3166 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3167 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3171 save_CFLAGS="${save_CFLAGS} -pthread"
3175 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3179 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}windres; ac_word=$2
3181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3182 echo "configure:3183: checking for $ac_word" >&5
3183 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 if test -n "$WINDRES"; then
3187 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3191 for ac_dir in $ac_dummy; do
3192 test -z "$ac_dir" && ac_dir=.
3193 if test -f $ac_dir/$ac_word; then
3194 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3201 WINDRES="$ac_cv_prog_WINDRES"
3202 if test -n "$WINDRES"; then
3203 echo "$ac_t""$WINDRES" 1>&6
3205 echo "$ac_t""no" 1>&6
3209 if test -z "$ac_cv_prog_WINDRES"; then
3210 if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "windres", so it can be a program name with args.
3212 set dummy windres; ac_word=$2
3213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3214 echo "configure:3215: checking for $ac_word" >&5
3215 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 if test -n "$WINDRES"; then
3219 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3223 for ac_dir in $ac_dummy; do
3224 test -z "$ac_dir" && ac_dir=.
3225 if test -f $ac_dir/$ac_word; then
3226 ac_cv_prog_WINDRES="windres"
3231 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3234 WINDRES="$ac_cv_prog_WINDRES"
3235 if test -n "$WINDRES"; then
3236 echo "$ac_t""$WINDRES" 1>&6
3238 echo "$ac_t""no" 1>&6
3246 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3247 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3248 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3249 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3250 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3254 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3255 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3259 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3260 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3261 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3262 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3263 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3270 if test x"${SYS}" = xmingw32
3272 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3274 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3277 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3279 for ac_func in gettimeofday select strerror strtod strtol isatty usleep vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3282 echo "configure:3283: checking for $ac_func" >&5
3283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 /* System header to define __stub macros and hopefully few prototypes,
3290 which can conflict with char $ac_func(); below. */
3292 /* Override any gcc2 internal prototype to avoid an error. */
3293 /* We use char because int might match the return type of a gcc2
3294 builtin and then its argument prototype would still apply. */
3299 /* The GNU C library defines this for functions which it implements
3300 to always fail with ENOSYS. Some functions are actually named
3301 something starting with __ and the normal name is an alias. */
3302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3312 eval "ac_cv_func_$ac_func=yes"
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 eval "ac_cv_func_$ac_func=no"
3322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3323 echo "$ac_t""yes" 1>&6
3324 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3325 cat >> confdefs.h <<EOF
3326 #define $ac_tr_func 1
3330 echo "$ac_t""no" 1>&6
3335 echo $ac_n "checking for connect""... $ac_c" 1>&6
3336 echo "configure:3337: checking for connect" >&5
3337 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3340 cat > conftest.$ac_ext <<EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3343 /* System header to define __stub macros and hopefully few prototypes,
3344 which can conflict with char connect(); below. */
3346 /* Override any gcc2 internal prototype to avoid an error. */
3347 /* We use char because int might match the return type of a gcc2
3348 builtin and then its argument prototype would still apply. */
3353 /* The GNU C library defines this for functions which it implements
3354 to always fail with ENOSYS. Some functions are actually named
3355 something starting with __ and the normal name is an alias. */
3356 #if defined (__stub_connect) || defined (__stub___connect)
3364 if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3366 eval "ac_cv_func_connect=yes"
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3371 eval "ac_cv_func_connect=no"
3376 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3380 echo "$ac_t""no" 1>&6
3382 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3383 echo "configure:3384: checking for connect in -lsocket" >&5
3384 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 ac_save_LIBS="$LIBS"
3389 LIBS="-lsocket $LIBS"
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 /* Override any gcc2 internal prototype to avoid an error. */
3394 /* We use char because int might match the return type of a gcc2
3395 builtin and then its argument prototype would still apply. */
3402 if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3404 eval "ac_cv_lib_$ac_lib_var=yes"
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3409 eval "ac_cv_lib_$ac_lib_var=no"
3412 LIBS="$ac_save_LIBS"
3415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3416 echo "$ac_t""yes" 1>&6
3417 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3418 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3421 echo "$ac_t""no" 1>&6
3426 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3427 echo "configure:3428: checking for gethostbyname" >&5
3428 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 /* System header to define __stub macros and hopefully few prototypes,
3435 which can conflict with char gethostbyname(); below. */
3437 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3440 char gethostbyname();
3444 /* The GNU C library defines this for functions which it implements
3445 to always fail with ENOSYS. Some functions are actually named
3446 something starting with __ and the normal name is an alias. */
3447 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3455 if { (eval echo configure:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3457 eval "ac_cv_func_gethostbyname=yes"
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3462 eval "ac_cv_func_gethostbyname=no"
3467 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3471 echo "$ac_t""no" 1>&6
3473 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3474 echo "configure:3475: checking for gethostbyname in -lnsl" >&5
3475 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 ac_save_LIBS="$LIBS"
3481 cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 /* Override any gcc2 internal prototype to avoid an error. */
3485 /* We use char because int might match the return type of a gcc2
3486 builtin and then its argument prototype would still apply. */
3487 char gethostbyname();
3493 if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3495 eval "ac_cv_lib_$ac_lib_var=yes"
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3500 eval "ac_cv_lib_$ac_lib_var=no"
3503 LIBS="$ac_save_LIBS"
3506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3507 echo "$ac_t""yes" 1>&6
3508 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3510 echo "$ac_t""no" 1>&6
3516 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3517 echo "configure:3518: checking for gethostbyname" >&5
3518 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3524 /* System header to define __stub macros and hopefully few prototypes,
3525 which can conflict with char gethostbyname(); below. */
3527 /* Override any gcc2 internal prototype to avoid an error. */
3528 /* We use char because int might match the return type of a gcc2
3529 builtin and then its argument prototype would still apply. */
3530 char gethostbyname();
3534 /* The GNU C library defines this for functions which it implements
3535 to always fail with ENOSYS. Some functions are actually named
3536 something starting with __ and the normal name is an alias. */
3537 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3545 if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3547 eval "ac_cv_func_gethostbyname=yes"
3549 echo "configure: failed program was:" >&5
3550 cat conftest.$ac_ext >&5
3552 eval "ac_cv_func_gethostbyname=no"
3557 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3558 echo "$ac_t""yes" 1>&6
3561 echo "$ac_t""no" 1>&6
3563 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3564 echo "configure:3565: checking for gethostbyname in -lbind" >&5
3565 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3569 ac_save_LIBS="$LIBS"
3571 cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3574 /* Override any gcc2 internal prototype to avoid an error. */
3575 /* We use char because int might match the return type of a gcc2
3576 builtin and then its argument prototype would still apply. */
3577 char gethostbyname();
3583 if { (eval echo configure:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3585 eval "ac_cv_lib_$ac_lib_var=yes"
3587 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3590 eval "ac_cv_lib_$ac_lib_var=no"
3593 LIBS="$ac_save_LIBS"
3596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3597 echo "$ac_t""yes" 1>&6
3598 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3600 echo "$ac_t""no" 1>&6
3606 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3607 echo "configure:3608: checking for nanosleep" >&5
3608 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3611 cat > conftest.$ac_ext <<EOF
3612 #line 3613 "configure"
3613 #include "confdefs.h"
3614 /* System header to define __stub macros and hopefully few prototypes,
3615 which can conflict with char nanosleep(); below. */
3617 /* Override any gcc2 internal prototype to avoid an error. */
3618 /* We use char because int might match the return type of a gcc2
3619 builtin and then its argument prototype would still apply. */
3624 /* The GNU C library defines this for functions which it implements
3625 to always fail with ENOSYS. Some functions are actually named
3626 something starting with __ and the normal name is an alias. */
3627 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3635 if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3637 eval "ac_cv_func_nanosleep=yes"
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3642 eval "ac_cv_func_nanosleep=no"
3647 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3648 echo "$ac_t""yes" 1>&6
3651 echo "$ac_t""no" 1>&6
3653 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3654 echo "configure:3655: checking for nanosleep in -lrt" >&5
3655 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 ac_save_LIBS="$LIBS"
3661 cat > conftest.$ac_ext <<EOF
3662 #line 3663 "configure"
3663 #include "confdefs.h"
3664 /* Override any gcc2 internal prototype to avoid an error. */
3665 /* We use char because int might match the return type of a gcc2
3666 builtin and then its argument prototype would still apply. */
3673 if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3675 eval "ac_cv_lib_$ac_lib_var=yes"
3677 echo "configure: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3680 eval "ac_cv_lib_$ac_lib_var=no"
3683 LIBS="$ac_save_LIBS"
3686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3687 echo "$ac_t""yes" 1>&6
3688 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3690 echo "$ac_t""no" 1>&6
3692 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3693 echo "configure:3694: checking for nanosleep in -lposix4" >&5
3694 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 ac_save_LIBS="$LIBS"
3699 LIBS="-lposix4 $LIBS"
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 /* Override any gcc2 internal prototype to avoid an error. */
3704 /* We use char because int might match the return type of a gcc2
3705 builtin and then its argument prototype would still apply. */
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3714 eval "ac_cv_lib_$ac_lib_var=yes"
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3719 eval "ac_cv_lib_$ac_lib_var=no"
3722 LIBS="$ac_save_LIBS"
3725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3726 echo "$ac_t""yes" 1>&6
3727 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3729 echo "$ac_t""no" 1>&6
3738 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3739 echo "configure:3740: checking for inet_aton" >&5
3740 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 /* System header to define __stub macros and hopefully few prototypes,
3747 which can conflict with char inet_aton(); below. */
3749 /* Override any gcc2 internal prototype to avoid an error. */
3750 /* We use char because int might match the return type of a gcc2
3751 builtin and then its argument prototype would still apply. */
3756 /* The GNU C library defines this for functions which it implements
3757 to always fail with ENOSYS. Some functions are actually named
3758 something starting with __ and the normal name is an alias. */
3759 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3767 if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3769 eval "ac_cv_func_inet_aton=yes"
3771 echo "configure: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3774 eval "ac_cv_func_inet_aton=no"
3779 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3780 echo "$ac_t""yes" 1>&6
3783 echo "$ac_t""no" 1>&6
3785 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3786 echo "configure:3787: checking for inet_aton in -lresolv" >&5
3787 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3791 ac_save_LIBS="$LIBS"
3792 LIBS="-lresolv $LIBS"
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
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. */
3805 if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3807 eval "ac_cv_lib_$ac_lib_var=yes"
3809 echo "configure: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3812 eval "ac_cv_lib_$ac_lib_var=no"
3815 LIBS="$ac_save_LIBS"
3818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3819 echo "$ac_t""yes" 1>&6
3820 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3822 echo "$ac_t""no" 1>&6
3828 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3829 echo "configure:3830: checking for textdomain" >&5
3830 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 /* System header to define __stub macros and hopefully few prototypes,
3837 which can conflict with char textdomain(); below. */
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3846 /* The GNU C library defines this for functions which it implements
3847 to always fail with ENOSYS. Some functions are actually named
3848 something starting with __ and the normal name is an alias. */
3849 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3857 if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3859 eval "ac_cv_func_textdomain=yes"
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3864 eval "ac_cv_func_textdomain=no"
3869 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3870 echo "$ac_t""yes" 1>&6
3873 echo "$ac_t""no" 1>&6
3875 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3876 echo "configure:3877: checking for textdomain in -lintl" >&5
3877 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3881 ac_save_LIBS="$LIBS"
3883 cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3886 /* Override any gcc2 internal prototype to avoid an error. */
3887 /* We use char because int might match the return type of a gcc2
3888 builtin and then its argument prototype would still apply. */
3895 if { (eval echo configure:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3897 eval "ac_cv_lib_$ac_lib_var=yes"
3899 echo "configure: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3902 eval "ac_cv_lib_$ac_lib_var=no"
3905 LIBS="$ac_save_LIBS"
3908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3909 echo "$ac_t""yes" 1>&6
3910 save_LDFLAGS="${save_LDFLAGS} -lintl"
3912 echo "$ac_t""no" 1>&6
3920 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3921 echo "configure:3922: checking for getopt_long" >&5
3922 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 /* System header to define __stub macros and hopefully few prototypes,
3929 which can conflict with char getopt_long(); below. */
3931 /* Override any gcc2 internal prototype to avoid an error. */
3932 /* We use char because int might match the return type of a gcc2
3933 builtin and then its argument prototype would still apply. */
3938 /* The GNU C library defines this for functions which it implements
3939 to always fail with ENOSYS. Some functions are actually named
3940 something starting with __ and the normal name is an alias. */
3941 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951 eval "ac_cv_func_getopt_long=yes"
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3956 eval "ac_cv_func_getopt_long=no"
3961 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3962 echo "$ac_t""yes" 1>&6
3963 cat >> confdefs.h <<\EOF
3964 #define HAVE_GETOPT_LONG 1
3968 echo "$ac_t""no" 1>&6
3969 # FreeBSD has a gnugetopt library for this:
3970 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3971 echo "configure:3972: checking for getopt_long in -lgnugetopt" >&5
3972 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 ac_save_LIBS="$LIBS"
3977 LIBS="-lgnugetopt $LIBS"
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 /* Override any gcc2 internal prototype to avoid an error. */
3982 /* We use char because int might match the return type of a gcc2
3983 builtin and then its argument prototype would still apply. */
3990 if { (eval echo configure:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3992 eval "ac_cv_lib_$ac_lib_var=yes"
3994 echo "configure: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3997 eval "ac_cv_lib_$ac_lib_var=no"
4000 LIBS="$ac_save_LIBS"
4003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4004 echo "$ac_t""yes" 1>&6
4005 cat >> confdefs.h <<\EOF
4006 #define HAVE_GETOPT_LONG 1
4008 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4010 echo "$ac_t""no" 1>&6
4017 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4018 echo "configure:4019: checking return type of signal handlers" >&5
4019 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4022 cat > conftest.$ac_ext <<EOF
4023 #line 4024 "configure"
4024 #include "confdefs.h"
4025 #include <sys/types.h>
4031 extern "C" void (*signal (int, void (*)(int)))(int);
4033 void (*signal ()) ();
4040 if { (eval echo configure:4041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4042 ac_cv_type_signal=void
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4047 ac_cv_type_signal=int
4052 echo "$ac_t""$ac_cv_type_signal" 1>&6
4053 cat >> confdefs.h <<EOF
4054 #define RETSIGTYPE $ac_cv_type_signal
4058 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4059 echo "configure:4060: checking for dlopen in -ldl" >&5
4060 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4061 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4062 echo $ac_n "(cached) $ac_c" 1>&6
4064 ac_save_LIBS="$LIBS"
4066 cat > conftest.$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4069 /* Override any gcc2 internal prototype to avoid an error. */
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4078 if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4080 eval "ac_cv_lib_$ac_lib_var=yes"
4082 echo "configure: failed program was:" >&5
4083 cat conftest.$ac_ext >&5
4085 eval "ac_cv_lib_$ac_lib_var=no"
4088 LIBS="$ac_save_LIBS"
4091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4092 echo "$ac_t""yes" 1>&6
4093 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4095 echo "$ac_t""no" 1>&6
4098 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4099 echo "configure:4100: checking for cos in -lm" >&5
4100 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4104 ac_save_LIBS="$LIBS"
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
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. */
4118 if { (eval echo configure:4119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4120 eval "ac_cv_lib_$ac_lib_var=yes"
4122 echo "configure: failed program was:" >&5
4123 cat conftest.$ac_ext >&5
4125 eval "ac_cv_lib_$ac_lib_var=no"
4128 LIBS="$ac_save_LIBS"
4131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4132 echo "$ac_t""yes" 1>&6
4133 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4134 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4136 echo "$ac_t""no" 1>&6
4139 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4140 echo "configure:4141: checking for pow in -lm" >&5
4141 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4145 ac_save_LIBS="$LIBS"
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 /* Override any gcc2 internal prototype to avoid an error. */
4151 /* We use char because int might match the return type of a gcc2
4152 builtin and then its argument prototype would still apply. */
4159 if { (eval echo configure:4160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4161 eval "ac_cv_lib_$ac_lib_var=yes"
4163 echo "configure: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4166 eval "ac_cv_lib_$ac_lib_var=no"
4169 LIBS="$ac_save_LIBS"
4172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4174 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4175 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4176 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4177 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4180 echo "$ac_t""no" 1>&6
4185 if test "x${THREAD_LIB}" = xerror; then
4186 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4187 echo "configure:4188: checking for pthread_attr_init in -lpthread" >&5
4188 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 ac_save_LIBS="$LIBS"
4193 LIBS="-lpthread $LIBS"
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 /* Override any gcc2 internal prototype to avoid an error. */
4198 /* We use char because int might match the return type of a gcc2
4199 builtin and then its argument prototype would still apply. */
4200 char pthread_attr_init();
4206 if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4208 eval "ac_cv_lib_$ac_lib_var=yes"
4210 echo "configure: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4213 eval "ac_cv_lib_$ac_lib_var=no"
4216 LIBS="$ac_save_LIBS"
4219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4220 echo "$ac_t""yes" 1>&6
4221 THREAD_LIB="-lpthread"
4223 echo "$ac_t""no" 1>&6
4227 if test "x${THREAD_LIB}" = xerror; then
4228 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4229 echo "configure:4230: checking for pthread_attr_init in -lpthreads" >&5
4230 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 ac_save_LIBS="$LIBS"
4235 LIBS="-lpthreads $LIBS"
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4239 /* Override any gcc2 internal prototype to avoid an error. */
4240 /* We use char because int might match the return type of a gcc2
4241 builtin and then its argument prototype would still apply. */
4242 char pthread_attr_init();
4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4250 eval "ac_cv_lib_$ac_lib_var=yes"
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4255 eval "ac_cv_lib_$ac_lib_var=no"
4258 LIBS="$ac_save_LIBS"
4261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4263 THREAD_LIB="-lpthreads"
4265 echo "$ac_t""no" 1>&6
4269 if test "x${THREAD_LIB}" = xerror; then
4270 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4271 echo "configure:4272: checking for pthread_attr_init in -lc_r" >&5
4272 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4276 ac_save_LIBS="$LIBS"
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 /* Override any gcc2 internal prototype to avoid an error. */
4282 /* We use char because int might match the return type of a gcc2
4283 builtin and then its argument prototype would still apply. */
4284 char pthread_attr_init();
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4292 eval "ac_cv_lib_$ac_lib_var=yes"
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4297 eval "ac_cv_lib_$ac_lib_var=no"
4300 LIBS="$ac_save_LIBS"
4303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4304 echo "$ac_t""yes" 1>&6
4307 echo "$ac_t""no" 1>&6
4311 if test "x${THREAD_LIB}" = xerror; then
4312 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4313 echo "configure:4314: checking for pthread_attr_init" >&5
4314 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4317 cat > conftest.$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4320 /* System header to define __stub macros and hopefully few prototypes,
4321 which can conflict with char pthread_attr_init(); below. */
4323 /* Override any gcc2 internal prototype to avoid an error. */
4324 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */
4326 char pthread_attr_init();
4330 /* The GNU C library defines this for functions which it implements
4331 to always fail with ENOSYS. Some functions are actually named
4332 something starting with __ and the normal name is an alias. */
4333 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4336 pthread_attr_init();
4341 if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4343 eval "ac_cv_func_pthread_attr_init=yes"
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4348 eval "ac_cv_func_pthread_attr_init=no"
4353 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4357 echo "$ac_t""no" 1>&6
4363 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4364 echo "configure:4365: checking for cthread_fork in -lthreads" >&5
4365 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4369 ac_save_LIBS="$LIBS"
4370 LIBS="-lthreads $LIBS"
4371 cat > conftest.$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4374 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4377 char cthread_fork();
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4385 eval "ac_cv_lib_$ac_lib_var=yes"
4387 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4390 eval "ac_cv_lib_$ac_lib_var=no"
4393 LIBS="$ac_save_LIBS"
4396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 THREAD_LIB="-lthreads"
4400 echo "$ac_t""no" 1>&6
4404 cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4407 #include <pthread.h>
4409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4410 egrep "pthread_cond_t" >/dev/null 2>&1; then
4413 cat >> confdefs.h <<\EOF
4414 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 #include <strings.h>
4425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4426 egrep "strncasecmp" >/dev/null 2>&1; then
4429 cat >> confdefs.h <<\EOF
4430 #define STRNCASECMP_IN_STRINGS_H 1
4437 for ac_hdr in getopt.h strings.h
4439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4441 echo "configure:4442: checking for $ac_hdr" >&5
4442 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4451 { (eval echo configure:4452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4453 if test -z "$ac_err"; then
4455 eval "ac_cv_header_$ac_safe=yes"
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4461 eval "ac_cv_header_$ac_safe=no"
4465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4466 echo "$ac_t""yes" 1>&6
4467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4468 cat >> confdefs.h <<EOF
4469 #define $ac_tr_hdr 1
4473 echo "$ac_t""no" 1>&6
4477 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4481 echo "configure:4482: checking for $ac_hdr" >&5
4482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4491 { (eval echo configure:4492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4493 if test -z "$ac_err"; then
4495 eval "ac_cv_header_$ac_safe=yes"
4498 echo "configure: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4501 eval "ac_cv_header_$ac_safe=no"
4505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4508 cat >> confdefs.h <<EOF
4509 #define $ac_tr_hdr 1
4513 echo "$ac_t""no" 1>&6
4517 for ac_hdr in dlfcn.h image.h
4519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4521 echo "configure:4522: checking for $ac_hdr" >&5
4522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4531 { (eval echo configure:4532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4533 if test -z "$ac_err"; then
4535 eval "ac_cv_header_$ac_safe=yes"
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4541 eval "ac_cv_header_$ac_safe=no"
4545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4546 echo "$ac_t""yes" 1>&6
4547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4548 cat >> confdefs.h <<EOF
4549 #define $ac_tr_hdr 1
4553 echo "$ac_t""no" 1>&6
4557 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4561 echo "configure:4562: checking for $ac_hdr" >&5
4562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4565 cat > conftest.$ac_ext <<EOF
4566 #line 4567 "configure"
4567 #include "confdefs.h"
4570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4571 { (eval echo configure:4572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4573 if test -z "$ac_err"; then
4575 eval "ac_cv_header_$ac_safe=yes"
4578 echo "configure: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4581 eval "ac_cv_header_$ac_safe=no"
4585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4586 echo "$ac_t""yes" 1>&6
4587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4588 cat >> confdefs.h <<EOF
4589 #define $ac_tr_hdr 1
4593 echo "$ac_t""no" 1>&6
4597 for ac_hdr in machine/param.h sys/shm.h
4599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4601 echo "configure:4602: checking for $ac_hdr" >&5
4602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4611 { (eval echo configure:4612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4613 if test -z "$ac_err"; then
4615 eval "ac_cv_header_$ac_safe=yes"
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 eval "ac_cv_header_$ac_safe=no"
4625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4626 echo "$ac_t""yes" 1>&6
4627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4628 cat >> confdefs.h <<EOF
4629 #define $ac_tr_hdr 1
4633 echo "$ac_t""no" 1>&6
4637 for ac_hdr in linux/version.h
4639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4641 echo "configure:4642: checking for $ac_hdr" >&5
4642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4645 cat > conftest.$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4651 { (eval echo configure:4652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4653 if test -z "$ac_err"; then
4655 eval "ac_cv_header_$ac_safe=yes"
4658 echo "configure: failed program was:" >&5
4659 cat conftest.$ac_ext >&5
4661 eval "ac_cv_header_$ac_safe=no"
4665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4666 echo "$ac_t""yes" 1>&6
4667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4668 cat >> confdefs.h <<EOF
4669 #define $ac_tr_hdr 1
4673 echo "$ac_t""no" 1>&6
4678 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4679 echo "configure:4680: checking whether time.h and sys/time.h may both be included" >&5
4680 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 #include <sys/types.h>
4687 #include <sys/time.h>
4693 if { (eval echo configure:4694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4695 ac_cv_header_time=yes
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4700 ac_cv_header_time=no
4705 echo "$ac_t""$ac_cv_header_time" 1>&6
4706 if test $ac_cv_header_time = yes; then
4707 cat >> confdefs.h <<\EOF
4708 #define TIME_WITH_SYS_TIME 1
4714 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4716 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4718 echo "configure:4719: checking for $ac_hdr" >&5
4719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4722 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4728 { (eval echo configure:4729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4730 if test -z "$ac_err"; then
4732 eval "ac_cv_header_$ac_safe=yes"
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4738 eval "ac_cv_header_$ac_safe=no"
4742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4744 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4745 cat >> confdefs.h <<EOF
4746 #define $ac_tr_hdr 1
4750 echo "$ac_t""no" 1>&6
4755 if test x$SYS != xmingw32
4757 if test x$x_includes = xNONE; then
4758 x_includes=/usr/X11R6/include
4760 if test x$x_libraries = xNONE; then
4761 x_libraries=/usr/X11R6/lib
4763 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4764 for ac_hdr in X11/extensions/dpms.h
4766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4768 echo "configure:4769: checking for $ac_hdr" >&5
4769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 cat > conftest.$ac_ext <<EOF
4773 #line 4774 "configure"
4774 #include "confdefs.h"
4777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4778 { (eval echo configure:4779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4780 if test -z "$ac_err"; then
4782 eval "ac_cv_header_$ac_safe=yes"
4785 echo "configure: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4788 eval "ac_cv_header_$ac_safe=no"
4792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4795 cat >> confdefs.h <<EOF
4796 #define $ac_tr_hdr 1
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 #include <X11/extensions/dpms.h>
4804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4805 egrep "DPMSInfo" >/dev/null 2>&1; then
4808 cat >> confdefs.h <<\EOF
4809 #define DPMSINFO_IN_DPMS_H 1
4818 echo "$ac_t""no" 1>&6
4822 CPPFLAGS="$save_CPPFLAGS"
4825 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4826 echo "configure:4827: checking for ntohl in sys/param.h" >&5
4827 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 CFLAGS="${save_CFLAGS} -Wall -Werror"
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4834 #include <sys/param.h>
4836 void foo() { int meuh; ntohl(meuh); }
4839 if { (eval echo configure:4840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4841 ac_cv_c_ntohl_sys_param_h=yes
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4846 ac_cv_c_ntohl_sys_param_h=no
4851 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4852 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4853 cat >> confdefs.h <<\EOF
4854 #define NTOHL_IN_SYS_PARAM_H 1
4859 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4860 echo "configure:4861: checking if \$CC accepts -finline-limit" >&5
4861 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4864 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4873 if { (eval echo configure:4874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4875 ac_cv_c_inline_limit=yes
4877 echo "configure: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4880 ac_cv_c_inline_limit=no
4885 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4886 if test x"$ac_cv_c_inline_limit" != x"no"; then
4887 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4890 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4891 echo "configure:4892: checking if \$CC accepts -Wall -Winline" >&5
4892 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4893 echo $ac_n "(cached) $ac_c" 1>&6
4895 CFLAGS="${save_CFLAGS} -Wall -Winline"
4896 cat > conftest.$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4904 if { (eval echo configure:4905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4906 ac_cv_c_Wall_Winline=yes
4908 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4911 ac_cv_c_Wall_Winline=no
4916 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4917 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4918 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4920 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4921 echo "configure:4922: checking if \$CC accepts -wall -winline" >&5
4922 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4925 CFLAGS="${save_CFLAGS} -wall -winline"
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4934 if { (eval echo configure:4935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4936 ac_cv_c_wall_winline=yes
4938 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5
4941 ac_cv_c_wall_winline=no
4946 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4947 if test x"$ac_cv_c_wall_winline" != x"no"; then
4948 save_CFLAGS="${save_CFLAGS} -wall -winline"
4952 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4953 echo "configure:4954: checking if \$CC accepts -pipe" >&5
4954 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4957 CFLAGS="${save_CFLAGS} -pipe"
4958 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4966 if { (eval echo configure:4967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4970 echo "configure: failed program was:" >&5
4971 cat conftest.$ac_ext >&5
4978 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4979 if test x"$ac_cv_c_pipe" != x"no"; then
4980 save_CFLAGS="${save_CFLAGS} -pipe"
4983 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4984 echo "configure:4985: checking if \$CC accepts -O3" >&5
4985 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4988 CFLAGS="${save_CFLAGS} -O3"
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4997 if { (eval echo configure:4998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5001 echo "configure: failed program was:" >&5
5002 cat conftest.$ac_ext >&5
5009 echo "$ac_t""$ac_cv_c_o3" 1>&6
5010 if test x"$ac_cv_c_o3" != x"no"; then
5011 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5013 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5014 echo "configure:5015: checking if \$CC accepts -O2" >&5
5015 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5018 CFLAGS="${save_CFLAGS} -O2"
5019 cat > conftest.$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5027 if { (eval echo configure:5028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5039 echo "$ac_t""$ac_cv_c_o2" 1>&6
5040 if test x"$ac_cv_c_o2" != x"no"; then
5041 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5043 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5044 echo "configure:5045: checking if \$CC accepts -O" >&5
5045 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5048 CFLAGS="${save_CFLAGS} -O"
5049 cat > conftest.$ac_ext <<EOF
5050 #line 5051 "configure"
5051 #include "confdefs.h"
5057 if { (eval echo configure:5058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5061 echo "configure: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5069 echo "$ac_t""$ac_cv_c_o" 1>&6
5070 if test x"$ac_cv_c_o" != x"no"; then
5071 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5076 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5077 echo "configure:5078: checking if \$CC accepts -ffast-math" >&5
5078 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5079 echo $ac_n "(cached) $ac_c" 1>&6
5081 CFLAGS="${save_CFLAGS} -ffast-math"
5082 cat > conftest.$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5090 if { (eval echo configure:5091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5092 ac_cv_c_fast_math=yes
5094 echo "configure: failed program was:" >&5
5095 cat conftest.$ac_ext >&5
5097 ac_cv_c_fast_math=no
5102 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5103 if test x"$ac_cv_c_fast_math" != x"no"; then
5104 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5107 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5108 echo "configure:5109: checking if \$CC accepts -funroll-loops" >&5
5109 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5110 echo $ac_n "(cached) $ac_c" 1>&6
5112 CFLAGS="${save_CFLAGS} -funroll-loops"
5113 cat > conftest.$ac_ext <<EOF
5114 #line 5115 "configure"
5115 #include "confdefs.h"
5121 if { (eval echo configure:5122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5123 ac_cv_c_unroll_loops=yes
5125 echo "configure: failed program was:" >&5
5126 cat conftest.$ac_ext >&5
5128 ac_cv_c_unroll_loops=no
5133 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5134 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5135 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5138 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5139 echo "configure:5140: checking if \$CC accepts -fomit-frame-pointer" >&5
5140 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5141 echo $ac_n "(cached) $ac_c" 1>&6
5143 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5144 cat > conftest.$ac_ext <<EOF
5145 #line 5146 "configure"
5146 #include "confdefs.h"
5152 if { (eval echo configure:5153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5154 ac_cv_c_omit_frame_pointer=yes
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5159 ac_cv_c_omit_frame_pointer=no
5164 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5165 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5166 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5169 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5170 echo "configure:5171: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5171 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5183 if { (eval echo configure:5184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5187 echo "configure: failed program was:" >&5
5188 cat conftest.$ac_ext >&5
5195 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5196 if test x"$ac_cv_ld_darwin" != x"no"; then
5197 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5200 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5201 echo "configure:5202: checking if \$CC accepts -shared" >&5
5202 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5205 CFLAGS="${save_CFLAGS} -shared"
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5214 if { (eval echo configure:5215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5216 ac_cv_ld_plugins=yes
5218 echo "configure: failed program was:" >&5
5219 cat conftest.$ac_ext >&5
5226 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5227 if test x"$ac_cv_ld_plugins" != x"no"; then
5228 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5231 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5232 echo "configure:5233: checking __attribute__ ((aligned ())) support" >&5
5233 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5236 ac_cv_c_attribute_aligned=0
5237 CFLAGS="${save_CFLAGS} -Werror"
5238 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5239 cat > conftest.$ac_ext <<EOF
5240 #line 5241 "configure"
5241 #include "confdefs.h"
5244 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5247 if { (eval echo configure:5248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5249 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5258 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5259 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5260 cat >> confdefs.h <<EOF
5261 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5266 CFLAGS="${save_CFLAGS}"
5267 CPPFLAGS="${save_CPPFLAGS}"
5268 LDFLAGS="${save_LDFLAGS}"
5270 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5271 echo "configure:5272: checking for boolean_t in sys/types.h" >&5
5272 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5275 cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5278 #include <sys/types.h>
5283 if { (eval echo configure:5284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5285 ac_cv_c_boolean_t_sys_types_h=yes
5287 echo "configure: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5290 ac_cv_c_boolean_t_sys_types_h=no
5295 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5296 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5297 cat >> confdefs.h <<\EOF
5298 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5303 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5304 echo "configure:5305: checking for boolean_t in pthread.h" >&5
5305 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5308 cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5311 #include <pthread.h>
5316 if { (eval echo configure:5317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5318 ac_cv_c_boolean_t_pthread_h=yes
5320 echo "configure: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5323 ac_cv_c_boolean_t_pthread_h=no
5328 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5329 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5330 cat >> confdefs.h <<\EOF
5331 #define BOOLEAN_T_IN_PTHREAD_H 1
5336 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5337 echo "configure:5338: checking for boolean_t in cthreads.h" >&5
5338 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5339 echo $ac_n "(cached) $ac_c" 1>&6
5341 cat > conftest.$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5344 #include <cthreads.h>
5349 if { (eval echo configure:5350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5351 ac_cv_c_boolean_t_cthreads_h=yes
5353 echo "configure: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5356 ac_cv_c_boolean_t_cthreads_h=no
5361 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5362 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5363 cat >> confdefs.h <<\EOF
5364 #define BOOLEAN_T_IN_CTHREADS_H 1
5369 case x"${target_cpu}" in
5374 ARCH="${target_cpu}"
5378 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"
5379 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"
5381 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5382 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5383 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5384 SSE_MODULES="imdctsse downmixsse"
5385 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5387 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5388 echo "configure:5389: checking if \$CC groks MMX inline assembly" >&5
5389 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5397 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5400 if { (eval echo configure:5401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5402 ac_cv_mmx_inline=yes
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5412 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5413 if test x"$ac_cv_mmx_inline" != x"no"; then
5414 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5417 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5418 echo "configure:5419: checking if \$CC groks MMX EXT inline assembly" >&5
5419 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5422 cat > conftest.$ac_ext <<EOF
5423 #line 5424 "configure"
5424 #include "confdefs.h"
5427 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5430 if { (eval echo configure:5431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5432 ac_cv_mmxext_inline=yes
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5437 ac_cv_mmxext_inline=no
5442 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5443 if test x"$ac_cv_mmxext_inline" != x"no"; then
5444 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5447 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5448 echo "configure:5449: checking if \$CC groks 3D Now! inline assembly" >&5
5449 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5452 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5457 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5460 if { (eval echo configure:5461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5462 ac_cv_3dnow_inline=yes
5464 echo "configure: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5467 ac_cv_3dnow_inline=no
5472 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5473 if test x"$ac_cv_3dnow_inline" != x"no"; then
5474 cat >> confdefs.h <<\EOF
5475 #define CAN_COMPILE_3DNOW 1
5478 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5481 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5482 echo "configure:5483: checking if \$CC groks SSE inline assembly" >&5
5483 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5486 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5491 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5494 if { (eval echo configure:5495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5496 ac_cv_sse_inline=yes
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5506 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5507 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5508 cat >> confdefs.h <<\EOF
5509 #define CAN_COMPILE_SSE 1
5512 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5515 # don't try to grok altivec with native mingw32 it doesn't work right now
5516 # we should be able to remove this test with future versions of mingw32
5517 if test x$SYS != xmingw32; then
5518 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5519 echo "configure:5520: checking if \$CC groks Altivec inline assembly" >&5
5520 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5523 cat > conftest.$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5528 asm volatile("vperm 0,1,2,3");
5531 if { (eval echo configure:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5533 ac_cv_altivec_inline=yes
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5539 CFLAGS="$CFLAGS -Wa,-m7400"
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5545 asm volatile("vperm 0,1,2,3");
5548 if { (eval echo configure:5549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5550 ac_cv_altivec_inline="-Wa,-m7400"
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5555 ac_cv_altivec_inline=no
5564 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5565 if test x"$ac_cv_altivec_inline" != x"no"; then
5566 cat >> confdefs.h <<\EOF
5567 #define CAN_COMPILE_ALTIVEC 1
5570 if test x"$ac_cv_altivec_inline" != x"yes"; then
5571 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5572 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5573 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5574 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5576 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5579 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5580 echo "configure:5581: checking if \$CC groks Altivec C extensions" >&5
5581 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5582 echo $ac_n "(cached) $ac_c" 1>&6
5585 CFLAGS="$CFLAGS -faltivec"
5587 cat > conftest.$ac_ext <<EOF
5588 #line 5589 "configure"
5589 #include "confdefs.h"
5592 vec_mtvscr((vector unsigned int)(0));
5595 if { (eval echo configure:5596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5597 ac_cv_c_altivec=-faltivec
5599 echo "configure: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5604 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5605 cat > conftest.$ac_ext <<EOF
5606 #line 5607 "configure"
5607 #include "confdefs.h"
5610 vec_mtvscr((vector unsigned int)(0));
5613 if { (eval echo configure:5614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5615 ac_cv_c_altivec="-fvec"
5617 echo "configure: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5630 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5631 if test x"$ac_cv_c_altivec" != x"no"; then
5632 cat >> confdefs.h <<\EOF
5633 #define CAN_COMPILE_C_ALTIVEC 1
5636 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5637 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5638 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5639 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5640 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5643 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5644 echo "configure:5645: checking if linker needs -framework vecLib" >&5
5645 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5648 save_LDFLAGS=$LDFLAGS
5649 LDFLAGS="$LDFLAGS -framework vecLib"
5650 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5660 ac_cv_ld_altivec=yes
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5668 LDFLAGS=$save_LDFLAGS
5672 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5673 if test x"$ac_cv_ld_altivec" != x"no"; then
5674 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5675 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5676 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5677 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5682 # Check whether --with- or --without- was given.
5683 if test "${with_+set}" = set; then
5688 # Check whether --with- or --without- was given.
5689 if test "${with_+set}" = set; then
5695 # Check whether --with-tuning or --without-tuning was given.
5696 if test "${with_tuning+set}" = set; then
5697 withval="$with_tuning"
5701 if test "x$withval" != "x"; then
5704 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5706 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5710 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5713 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5716 # Check whether --enable-optimizations or --disable-optimizations was given.
5717 if test "${enable_optimizations+set}" = set; then
5718 enableval="$enable_optimizations"
5719 if test x$enableval = xno; then OPTIMS=0; fi
5725 # Check whether --enable-altivec or --disable-altivec was given.
5726 if test "${enable_altivec+set}" = set; then
5727 enableval="$enable_altivec"
5728 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
5729 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5731 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5732 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5737 # Check whether --enable-debug or --disable-debug was given.
5738 if test "${enable_debug+set}" = set; then
5739 enableval="$enable_debug"
5740 if test x$enableval = xyes; then DEBUG=1; fi
5745 # Check whether --enable-release or --disable-release was given.
5746 if test "${enable_release+set}" = set; then
5747 enableval="$enable_release"
5748 if test x$enableval = xyes; then RELEASE=1; fi
5750 VERSION="${VERSION}_`date +%Y-%m-%d`"
5755 # Check whether --with- or --without- was given.
5756 if test "${with_+set}" = set; then
5762 # Check whether --enable-dvd or --disable-dvd was given.
5763 if test "${enable_dvd+set}" = set; then
5764 enableval="$enable_dvd"
5768 if test "x$enableval" != "xno"
5770 # Check whether --with-dvdcss or --without-dvdcss was given.
5771 if test "${with_dvdcss+set}" = set; then
5772 withval="$with_dvdcss"
5776 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5777 if test "${with_dvdcss_tree+set}" = set; then
5778 withval="$with_dvdcss_tree"
5782 case "x$with_dvdcss" in
5784 if test "x$with_dvdcss_tree" = x
5786 for ac_hdr in dvdcss/dvdcss.h
5788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5790 echo "configure:5791: checking for $ac_hdr" >&5
5791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5794 cat > conftest.$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5800 { (eval echo configure:5801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5802 if test -z "$ac_err"; then
5804 eval "ac_cv_header_$ac_safe=yes"
5807 echo "configure: failed program was:" >&5
5808 cat conftest.$ac_ext >&5
5810 eval "ac_cv_header_$ac_safe=no"
5814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5815 echo "$ac_t""yes" 1>&6
5816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5817 cat >> confdefs.h <<EOF
5818 #define $ac_tr_hdr 1
5820 PLUGINS="${PLUGINS} dvd"
5821 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5823 echo "$ac_t""no" 1>&6
5824 echo "configure: warning: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." 1>&2
5825 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5830 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5831 echo "configure:5832: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5832 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5833 if test "x$real_dvdcss_tree" = x
5835 echo "$ac_t""no" 1>&6
5836 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5838 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5840 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5841 BUILTINS="${BUILTINS} dvd"
5842 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5843 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5845 echo "$ac_t""no" 1>&6
5846 { echo "configure: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" 1>&2; exit 1; }
5851 PLUGINS="${PLUGINS} dvd"
5852 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5853 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5856 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5857 echo "configure:5858: checking for dvdcss headers in ${with_dvdcss}" >&5
5858 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5860 echo "$ac_t""yes" 1>&6
5861 PLUGINS="${PLUGINS} dvd"
5862 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5863 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5865 echo "$ac_t""no" 1>&6
5866 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5872 # Check whether --enable-dvdread or --disable-dvdread was given.
5873 if test "${enable_dvdread+set}" = set; then
5874 enableval="$enable_dvdread"
5878 if test "x$enable_dvdread" != "xno"
5880 # Check whether --with-dvdread or --without-dvdread was given.
5881 if test "${with_dvdread+set}" = set; then
5882 withval="$with_dvdread"
5886 if test "x$withval" = x
5891 test_LDFLAGS="-L${withval}/lib"
5892 test_CFLAGS="-I${withval}/include"
5894 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5895 for ac_hdr in dvdread/dvd_reader.h
5897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5899 echo "configure:5900: checking for $ac_hdr" >&5
5900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5901 echo $ac_n "(cached) $ac_c" 1>&6
5903 cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5909 { (eval echo configure:5910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5911 if test -z "$ac_err"; then
5913 eval "ac_cv_header_$ac_safe=yes"
5916 echo "configure: failed program was:" >&5
5917 cat conftest.$ac_ext >&5
5919 eval "ac_cv_header_$ac_safe=no"
5923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5926 cat >> confdefs.h <<EOF
5927 #define $ac_tr_hdr 1
5930 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5933 #include <dvdread/dvd_reader.h>
5935 void foo() { int i=DVD_VIDEO_LB_LEN; }
5938 if { (eval echo configure:5939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5941 PLUGINS="${PLUGINS} dvdread"
5942 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
5943 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5950 if test "x$enable_dvdread" != x
5952 { echo "configure: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" 1>&2; exit 1; }
5959 echo "$ac_t""no" 1>&6
5960 if test "x$enable_dvdread" != x
5962 if test "x$withval" != x
5964 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${withval}/include" 1>&2; exit 1; }
5966 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
5973 CPPFLAGS="$save_CPPFLAGS"
5976 # Check whether --enable-vcd or --disable-vcd was given.
5977 if test "${enable_vcd+set}" = set; then
5978 enableval="$enable_vcd"
5983 if test x$enable_vcd != xno
5985 cat > conftest.$ac_ext <<EOF
5986 #line 5987 "configure"
5987 #include "confdefs.h"
5988 #include <linux/cdrom.h>
5990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5991 egrep "cdrom_msf0" >/dev/null 2>&1; then
5994 PLUGINS="${PLUGINS} vcd"
6000 if test "x${SYS}" = "xbsdi"
6002 PLUGINS="${PLUGINS} vcd"
6005 if test "x${SYS}" = "xdarwin"
6007 PLUGINS="${PLUGINS} vcd"
6008 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6012 # Check whether --enable-satellite or --disable-satellite was given.
6013 if test "${enable_satellite+set}" = set; then
6014 enableval="$enable_satellite"
6015 if test x$enable_satellite = xyes
6017 PLUGINS="${PLUGINS} satellite"
6022 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6023 echo "configure:6024: checking for inet_pton" >&5
6024 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 cat > conftest.$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 /* System header to define __stub macros and hopefully few prototypes,
6031 which can conflict with char inet_pton(); below. */
6033 /* Override any gcc2 internal prototype to avoid an error. */
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6040 /* The GNU C library defines this for functions which it implements
6041 to always fail with ENOSYS. Some functions are actually named
6042 something starting with __ and the normal name is an alias. */
6043 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6051 if { (eval echo configure:6052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6053 eval "ac_cv_func_inet_pton=yes"
6055 echo "configure: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6058 eval "ac_cv_func_inet_pton=no"
6063 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6064 echo "$ac_t""yes" 1>&6
6065 PLUGINS="${PLUGINS} ipv6"
6067 echo "$ac_t""no" 1>&6
6071 # Check whether --enable-avi or --disable-avi was given.
6072 if test "${enable_avi+set}" = set; then
6073 enableval="$enable_avi"
6077 if test x$enable_avi != xno
6079 PLUGINS="${PLUGINS} avi"
6083 # Check whether --with- or --without- was given.
6084 if test "${with_+set}" = set; then
6090 # Check whether --enable-mad or --disable-mad was given.
6091 if test "${enable_mad+set}" = set; then
6092 enableval="$enable_mad"
6096 if test x$enable_mad = xyes
6098 PLUGINS="${PLUGINS} mad"
6099 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6100 # Check whether --with-mad or --without-mad was given.
6101 if test "${with_mad+set}" = set; then
6103 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6105 mad_CFLAGS="${mad_CFLAGS} -I$with_val/include"
6106 mad_LDFLAGS="${mad_LDFLAGS} -L$with_val/lib"
6111 save_LDFLAGS=$LDFLAGS
6112 CFLAGS="$CFLAGS $mad_CFLAGS"
6113 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6116 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6117 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6118 echo "configure:6119: checking for $ac_hdr" >&5
6119 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6120 echo $ac_n "(cached) $ac_c" 1>&6
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6128 { (eval echo configure:6129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6130 if test -z "$ac_err"; then
6132 eval "ac_cv_header_$ac_safe=yes"
6135 echo "configure: failed program was:" >&5
6136 cat conftest.$ac_ext >&5
6138 eval "ac_cv_header_$ac_safe=no"
6142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6143 echo "$ac_t""yes" 1>&6
6144 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6145 cat >> confdefs.h <<EOF
6146 #define $ac_tr_hdr 1
6150 echo "$ac_t""no" 1>&6
6151 echo "Cannot find development headers for libmad..."
6157 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6158 echo "configure:6159: checking for mad_bit_init in -lmad" >&5
6159 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6163 ac_save_LIBS="$LIBS"
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 /* Override any gcc2 internal prototype to avoid an error. */
6169 /* We use char because int might match the return type of a gcc2
6170 builtin and then its argument prototype would still apply. */
6171 char mad_bit_init();
6177 if { (eval echo configure:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6179 eval "ac_cv_lib_$ac_lib_var=yes"
6181 echo "configure: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6184 eval "ac_cv_lib_$ac_lib_var=no"
6187 LIBS="$ac_save_LIBS"
6190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6191 echo "$ac_t""yes" 1>&6
6192 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6194 cat >> confdefs.h <<EOF
6195 #define $ac_tr_lib 1
6201 echo "$ac_t""no" 1>&6
6202 echo "Cannot find libmad library..."
6208 LDFLAGS=$save_LDFLAGS
6211 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6212 if test "${enable_ffmpeg+set}" = set; then
6213 enableval="$enable_ffmpeg"
6217 if test "x$enableval" = "xyes"
6219 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6220 if test "${with_ffmpeg_tree+set}" = set; then
6221 withval="$with_ffmpeg_tree"
6225 if test "x$with_ffmpeg_tree" = x
6227 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&2; exit 1; }
6229 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6230 echo "configure:6231: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6231 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6232 if test "x$real_ffmpeg_tree" = x
6234 echo "$ac_t""no" 1>&6
6235 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6237 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6239 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6240 BUILTINS="${BUILTINS} ffmpeg"
6241 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6242 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6244 echo "$ac_t""no" 1>&6
6245 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6251 if test x$SYS = xbeos
6253 PLUGINS="${PLUGINS} beos"
6256 # Check whether --enable-a52 or --disable-a52 was given.
6257 if test "${enable_a52+set}" = set; then
6258 enableval="$enable_a52"
6262 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6264 for ac_hdr in a52dec/a52.h
6266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6268 echo "configure:6269: checking for $ac_hdr" >&5
6269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6270 echo $ac_n "(cached) $ac_c" 1>&6
6272 cat > conftest.$ac_ext <<EOF
6273 #line 6274 "configure"
6274 #include "confdefs.h"
6277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6278 { (eval echo configure:6279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6280 if test -z "$ac_err"; then
6282 eval "ac_cv_header_$ac_safe=yes"
6285 echo "configure: failed program was:" >&5
6286 cat conftest.$ac_ext >&5
6288 eval "ac_cv_header_$ac_safe=no"
6292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6293 echo "$ac_t""yes" 1>&6
6294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6295 cat >> confdefs.h <<EOF
6296 #define $ac_tr_hdr 1
6299 BUILTINS="${BUILTINS} a52"
6300 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6303 echo "$ac_t""no" 1>&6
6309 # Check whether --enable-vorbis or --disable-vorbis was given.
6310 if test "${enable_vorbis+set}" = set; then
6311 enableval="$enable_vorbis"
6315 if test "x$enableval" != "xno"
6317 for ac_hdr in ogg/ogg.h
6319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6321 echo "configure:6322: checking for $ac_hdr" >&5
6322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6
6325 cat > conftest.$ac_ext <<EOF
6326 #line 6327 "configure"
6327 #include "confdefs.h"
6330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6331 { (eval echo configure:6332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6333 if test -z "$ac_err"; then
6335 eval "ac_cv_header_$ac_safe=yes"
6338 echo "configure: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6341 eval "ac_cv_header_$ac_safe=no"
6345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6346 echo "$ac_t""yes" 1>&6
6347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6348 cat >> confdefs.h <<EOF
6349 #define $ac_tr_hdr 1
6352 #PLUGINS="${PLUGINS} vorbis"
6353 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6356 echo "$ac_t""no" 1>&6
6363 # Check whether --with- or --without- was given.
6364 if test "${with_+set}" = set; then
6370 # Check whether --enable-x11 or --disable-x11 was given.
6371 if test "${enable_x11+set}" = set; then
6372 enableval="$enable_x11"
6376 if test x$enable_x11 != xno &&
6377 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6378 if test x$x_includes = xNONE; then
6379 x_includes=/usr/X11R6/include
6381 if test x$x_libraries = xNONE; then
6382 x_libraries=/usr/X11R6/lib
6384 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6385 for ac_hdr in X11/Xlib.h
6387 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6389 echo "configure:6390: checking for $ac_hdr" >&5
6390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6391 echo $ac_n "(cached) $ac_c" 1>&6
6393 cat > conftest.$ac_ext <<EOF
6394 #line 6395 "configure"
6395 #include "confdefs.h"
6398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6399 { (eval echo configure:6400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6401 if test -z "$ac_err"; then
6403 eval "ac_cv_header_$ac_safe=yes"
6406 echo "configure: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6409 eval "ac_cv_header_$ac_safe=no"
6413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6414 echo "$ac_t""yes" 1>&6
6415 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6416 cat >> confdefs.h <<EOF
6417 #define $ac_tr_hdr 1
6420 PLUGINS="${PLUGINS} x11"
6421 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6422 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6425 echo "$ac_t""no" 1>&6
6429 CPPFLAGS="$save_CPPFLAGS"
6432 # Check whether --enable-xvideo or --disable-xvideo was given.
6433 if test "${enable_xvideo+set}" = set; then
6434 enableval="$enable_xvideo"
6438 if test x$enable_xvideo != xno &&
6439 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6440 if test x$x_includes = xNONE; then
6441 x_includes=/usr/X11R6/include
6443 if test x$x_libraries = xNONE; then
6444 x_libraries=/usr/X11R6/lib
6446 save_CPPFLAGS=$CPPFLAGS
6447 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6448 for ac_hdr in X11/extensions/Xv.h
6450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6452 echo "configure:6453: checking for $ac_hdr" >&5
6453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6454 echo $ac_n "(cached) $ac_c" 1>&6
6456 cat > conftest.$ac_ext <<EOF
6457 #line 6458 "configure"
6458 #include "confdefs.h"
6461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6462 { (eval echo configure:6463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6464 if test -z "$ac_err"; then
6466 eval "ac_cv_header_$ac_safe=yes"
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6472 eval "ac_cv_header_$ac_safe=no"
6476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6477 echo "$ac_t""yes" 1>&6
6478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6479 cat >> confdefs.h <<EOF
6480 #define $ac_tr_hdr 1
6484 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6485 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6486 echo "configure:6487: checking for XvSetPortAttribute in -lXv_pic" >&5
6487 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6489 echo $ac_n "(cached) $ac_c" 1>&6
6491 ac_save_LIBS="$LIBS"
6492 LIBS="-lXv_pic $LIBS"
6493 cat > conftest.$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 /* Override any gcc2 internal prototype to avoid an error. */
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6499 char XvSetPortAttribute();
6502 XvSetPortAttribute()
6505 if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6507 eval "ac_cv_lib_$ac_lib_var=yes"
6509 echo "configure: failed program was:" >&5
6510 cat conftest.$ac_ext >&5
6512 eval "ac_cv_lib_$ac_lib_var=no"
6515 LIBS="$ac_save_LIBS"
6518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6519 echo "$ac_t""yes" 1>&6
6520 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6521 PLUGINS="${PLUGINS} xvideo"
6522 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6523 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6525 echo "$ac_t""no" 1>&6
6526 # We don't have Xv_pic, let's make xvideo.a as builtin
6527 BUILTINS="${BUILTINS} xvideo"
6528 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6529 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6532 CFLAGS="$save_CFLAGS"
6534 CPPFLAGS="$save_CPPFLAGS"
6536 echo "$ac_t""no" 1>&6
6542 # Check whether --enable-sdl or --disable-sdl was given.
6543 if test "${enable_sdl+set}" = set; then
6544 enableval="$enable_sdl"
6548 if test "x$enable_sdl" != "xno"
6551 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6552 if test "${with_sdl_config_path+set}" = set; then
6553 withval="$with_sdl_config_path"
6554 if test "x$withval" != "xno"
6556 SDL_PATH=$withval:$PATH
6560 # Extract the first word of "sdl12-config", so it can be a program name with args.
6561 set dummy sdl12-config; ac_word=$2
6562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6563 echo "configure:6564: checking for $ac_word" >&5
6564 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6565 echo $ac_n "(cached) $ac_c" 1>&6
6567 case "$SDL12_CONFIG" in
6569 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6572 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6576 ac_dummy="$SDL_PATH"
6577 for ac_dir in $ac_dummy; do
6578 test -z "$ac_dir" && ac_dir=.
6579 if test -f $ac_dir/$ac_word; then
6580 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6585 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6589 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6590 if test -n "$SDL12_CONFIG"; then
6591 echo "$ac_t""$SDL12_CONFIG" 1>&6
6593 echo "$ac_t""no" 1>&6
6596 SDL_CONFIG=${SDL12_CONFIG}
6597 SDL_HEADER="SDL12/SDL.h"
6598 if test x${SDL_CONFIG} = xno
6600 # Extract the first word of "sdl11-config", so it can be a program name with args.
6601 set dummy sdl11-config; ac_word=$2
6602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6603 echo "configure:6604: checking for $ac_word" >&5
6604 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6605 echo $ac_n "(cached) $ac_c" 1>&6
6607 case "$SDL11_CONFIG" in
6609 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6612 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6616 ac_dummy="$SDL_PATH"
6617 for ac_dir in $ac_dummy; do
6618 test -z "$ac_dir" && ac_dir=.
6619 if test -f $ac_dir/$ac_word; then
6620 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6625 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6629 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6630 if test -n "$SDL11_CONFIG"; then
6631 echo "$ac_t""$SDL11_CONFIG" 1>&6
6633 echo "$ac_t""no" 1>&6
6636 SDL_CONFIG=${SDL11_CONFIG}
6637 SDL_HEADER="SDL11/SDL.h"
6639 if test x${SDL_CONFIG} = xno
6641 # Extract the first word of "sdl-config", so it can be a program name with args.
6642 set dummy sdl-config; ac_word=$2
6643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6644 echo "configure:6645: checking for $ac_word" >&5
6645 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6646 echo $ac_n "(cached) $ac_c" 1>&6
6648 case "$SDL_CONFIG" in
6650 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6653 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6657 ac_dummy="$SDL_PATH"
6658 for ac_dir in $ac_dummy; do
6659 test -z "$ac_dir" && ac_dir=.
6660 if test -f $ac_dir/$ac_word; then
6661 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6666 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6670 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6671 if test -n "$SDL_CONFIG"; then
6672 echo "$ac_t""$SDL_CONFIG" 1>&6
6674 echo "$ac_t""no" 1>&6
6677 SDL_HEADER="SDL/SDL.h"
6679 if test x${SDL_CONFIG} != xno
6681 PLUGINS="${PLUGINS} sdl"
6682 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
6683 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6684 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
6685 for ac_hdr in ${SDL_HEADER}
6687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6689 echo "configure:6690: checking for $ac_hdr" >&5
6690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6691 echo $ac_n "(cached) $ac_c" 1>&6
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6699 { (eval echo configure:6700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6701 if test -z "$ac_err"; then
6703 eval "ac_cv_header_$ac_safe=yes"
6706 echo "configure: failed program was:" >&5
6707 cat conftest.$ac_ext >&5
6709 eval "ac_cv_header_$ac_safe=no"
6713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6714 echo "$ac_t""yes" 1>&6
6715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6716 cat >> confdefs.h <<EOF
6717 #define $ac_tr_hdr 1
6719 cat >> confdefs.h <<EOF
6720 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6724 echo "$ac_t""no" 1>&6
6725 { echo "configure: error: The development package for SDL is not installed.
6726 Please install it and try again. Alternatively you can also configure with
6727 --disable-sdl." 1>&2; exit 1; }
6732 CPPFLAGS="$save_CPPFLAGS"
6733 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6735 { echo "configure: error: The development package for SDL is not installed.
6736 Please install it and try again. Alternatively you can also configure with
6737 --disable-sdl." 1>&2; exit 1; }
6739 elif test "x$enable_sdl" = "xyes"
6741 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6742 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6747 # Check whether --enable-directx or --disable-directx was given.
6748 if test "${enable_directx+set}" = set; then
6749 enableval="$enable_directx"
6753 if test "x$enableval" != "xno"
6755 if test x$SYS = xmingw32
6757 # Check whether --with-directx or --without-directx was given.
6758 if test "${with_directx+set}" = set; then
6759 withval="$with_directx"
6763 if test "x$with_directx" = "x"
6765 for ac_hdr in ddraw.h
6767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6769 echo "configure:6770: checking for $ac_hdr" >&5
6770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6771 echo $ac_n "(cached) $ac_c" 1>&6
6773 cat > conftest.$ac_ext <<EOF
6774 #line 6775 "configure"
6775 #include "confdefs.h"
6778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6779 { (eval echo configure:6780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6781 if test -z "$ac_err"; then
6783 eval "ac_cv_header_$ac_safe=yes"
6786 echo "configure: failed program was:" >&5
6787 cat conftest.$ac_ext >&5
6789 eval "ac_cv_header_$ac_safe=no"
6793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6794 echo "$ac_t""yes" 1>&6
6795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6796 cat >> confdefs.h <<EOF
6797 #define $ac_tr_hdr 1
6799 PLUGINS="${PLUGINS} directx"
6800 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
6802 echo "$ac_t""no" 1>&6
6807 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
6808 echo "configure:6809: checking for directX headers in ${withval}" >&5
6809 if test -f ${withval}/ddraw.h
6811 PLUGINS="${PLUGINS} directx"
6812 directx_LDFLAGS="${directx_LDFLAGS} -L${withval}/lib -lgdi32"
6813 directx_CFLAGS="${directx_CFLAGS} -I${withval}"
6814 echo "$ac_t""yes" 1>&6
6816 echo "$ac_t""no" 1>&6
6817 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
6823 # Check whether --enable-fb or --disable-fb was given.
6824 if test "${enable_fb+set}" = set; then
6825 enableval="$enable_fb"
6829 if test x$enable_fb != xno
6831 for ac_hdr in linux/fb.h
6833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6835 echo "configure:6836: checking for $ac_hdr" >&5
6836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6837 echo $ac_n "(cached) $ac_c" 1>&6
6839 cat > conftest.$ac_ext <<EOF
6840 #line 6841 "configure"
6841 #include "confdefs.h"
6844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6845 { (eval echo configure:6846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6847 if test -z "$ac_err"; then
6849 eval "ac_cv_header_$ac_safe=yes"
6852 echo "configure: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6855 eval "ac_cv_header_$ac_safe=no"
6859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6860 echo "$ac_t""yes" 1>&6
6861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6862 cat >> confdefs.h <<EOF
6863 #define $ac_tr_hdr 1
6866 PLUGINS="${PLUGINS} fb"
6869 echo "$ac_t""no" 1>&6
6875 # Check whether --enable-mga or --disable-mga was given.
6876 if test "${enable_mga+set}" = set; then
6877 enableval="$enable_mga"
6878 if test x$enable_mga = xyes
6880 PLUGINS="${PLUGINS} mga xmga"
6885 # Check whether --enable-ggi or --disable-ggi was given.
6886 if test "${enable_ggi+set}" = set; then
6887 enableval="$enable_ggi"
6891 if test x$enable_ggi = xyes
6893 PLUGINS="${PLUGINS} ggi"
6894 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
6895 # Check whether --with-ggi or --without-ggi was given.
6896 if test "${with_ggi+set}" = set; then
6898 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6900 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
6901 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_val/lib"
6907 # Check whether --enable-glide or --disable-glide was given.
6908 if test "${enable_glide+set}" = set; then
6909 enableval="$enable_glide"
6913 if test x$enable_glide = xyes
6915 PLUGINS="${PLUGINS} glide"
6916 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
6917 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
6918 # Check whether --with-glide or --without-glide was given.
6919 if test "${with_glide+set}" = set; then
6920 withval="$with_glide"
6921 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6923 glide_CFLAGS="${glide_CFLAGS} -I$with_val/include"
6924 glide_LDFLAGS="${glide_LDFLAGS} -L$with_val/lib"
6930 # Check whether --enable-aa or --disable-aa was given.
6931 if test "${enable_aa+set}" = set; then
6932 enableval="$enable_aa"
6936 if test x$enable_aa = xyes
6938 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
6939 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
6940 echo "configure:6941: checking for aalib.h" >&5
6941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6942 echo $ac_n "(cached) $ac_c" 1>&6
6944 cat > conftest.$ac_ext <<EOF
6945 #line 6946 "configure"
6946 #include "confdefs.h"
6949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6950 { (eval echo configure:6951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6952 if test -z "$ac_err"; then
6954 eval "ac_cv_header_$ac_safe=yes"
6957 echo "configure: failed program was:" >&5
6958 cat conftest.$ac_ext >&5
6960 eval "ac_cv_header_$ac_safe=no"
6964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6965 echo "$ac_t""yes" 1>&6
6968 echo "$ac_t""no" 1>&6
6972 if test x$have_aa = xtrue
6974 PLUGINS="${PLUGINS} aa"
6975 aa_LDFLAGS="${aa_LDFLAGS} -laa"
6980 # Check whether --with- or --without- was given.
6981 if test "${with_+set}" = set; then
6987 # Check whether --enable-dsp or --disable-dsp was given.
6988 if test "${enable_dsp+set}" = set; then
6989 enableval="$enable_dsp"
6994 if test x$enable_dsp != xno &&
6995 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
6997 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
6999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7001 echo "configure:7002: checking for $ac_hdr" >&5
7002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7003 echo $ac_n "(cached) $ac_c" 1>&6
7005 cat > conftest.$ac_ext <<EOF
7006 #line 7007 "configure"
7007 #include "confdefs.h"
7010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7011 { (eval echo configure:7012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7013 if test -z "$ac_err"; then
7015 eval "ac_cv_header_$ac_safe=yes"
7018 echo "configure: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7021 eval "ac_cv_header_$ac_safe=no"
7025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7026 echo "$ac_t""yes" 1>&6
7027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7028 cat >> confdefs.h <<EOF
7029 #define $ac_tr_hdr 1
7032 PLUGINS="${PLUGINS} dsp"
7033 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7034 echo "configure:7035: checking for main in -lossaudio" >&5
7035 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7039 ac_save_LIBS="$LIBS"
7040 LIBS="-lossaudio $LIBS"
7041 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7049 if { (eval echo configure:7050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7051 eval "ac_cv_lib_$ac_lib_var=yes"
7053 echo "configure: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7056 eval "ac_cv_lib_$ac_lib_var=no"
7059 LIBS="$ac_save_LIBS"
7062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7063 echo "$ac_t""yes" 1>&6
7064 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7066 echo "$ac_t""no" 1>&6
7071 echo "$ac_t""no" 1>&6
7077 # Check whether --enable-esd or --disable-esd was given.
7078 if test "${enable_esd+set}" = set; then
7079 enableval="$enable_esd"
7080 if test x$enable_esd = xyes
7082 # Extract the first word of "esd-config", so it can be a program name with args.
7083 set dummy esd-config; ac_word=$2
7084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7085 echo "configure:7086: checking for $ac_word" >&5
7086 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7089 case "$ESD_CONFIG" in
7091 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7094 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7099 for ac_dir in $ac_dummy; do
7100 test -z "$ac_dir" && ac_dir=.
7101 if test -f $ac_dir/$ac_word; then
7102 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7107 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7111 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7112 if test -n "$ESD_CONFIG"; then
7113 echo "$ac_t""$ESD_CONFIG" 1>&6
7115 echo "$ac_t""no" 1>&6
7118 if test x${ESD_CONFIG} != xno
7120 PLUGINS="${PLUGINS} esd"
7121 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7122 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7128 # Check whether --enable-arts or --disable-arts was given.
7129 if test "${enable_arts+set}" = set; then
7130 enableval="$enable_arts"
7131 if test x$enable_arts = xyes
7133 # Extract the first word of "artsc-config", so it can be a program name with args.
7134 set dummy artsc-config; ac_word=$2
7135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7136 echo "configure:7137: checking for $ac_word" >&5
7137 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7138 echo $ac_n "(cached) $ac_c" 1>&6
7140 case "$ARTS_CONFIG" in
7142 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7145 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7150 for ac_dir in $ac_dummy; do
7151 test -z "$ac_dir" && ac_dir=.
7152 if test -f $ac_dir/$ac_word; then
7153 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7158 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7162 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7163 if test -n "$ARTS_CONFIG"; then
7164 echo "$ac_t""$ARTS_CONFIG" 1>&6
7166 echo "$ac_t""no" 1>&6
7169 if test x${ARTS_CONFIG} != xno
7171 PLUGINS="${PLUGINS} arts"
7172 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7173 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7179 # Check whether --enable-alsa or --disable-alsa was given.
7180 if test "${enable_alsa+set}" = set; then
7181 enableval="$enable_alsa"
7182 if test x$enable_alsa = xyes
7184 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7185 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7186 echo "configure:7187: checking for alsa/asoundlib.h" >&5
7187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7188 echo $ac_n "(cached) $ac_c" 1>&6
7190 cat > conftest.$ac_ext <<EOF
7191 #line 7192 "configure"
7192 #include "confdefs.h"
7193 #include <alsa/asoundlib.h>
7195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7196 { (eval echo configure:7197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7198 if test -z "$ac_err"; then
7200 eval "ac_cv_header_$ac_safe=yes"
7203 echo "configure: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7206 eval "ac_cv_header_$ac_safe=no"
7210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7211 echo "$ac_t""yes" 1>&6
7212 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7213 echo "configure:7214: checking for main in -lasound" >&5
7214 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7216 echo $ac_n "(cached) $ac_c" 1>&6
7218 ac_save_LIBS="$LIBS"
7219 LIBS="-lasound $LIBS"
7220 cat > conftest.$ac_ext <<EOF
7221 #line 7222 "configure"
7222 #include "confdefs.h"
7228 if { (eval echo configure:7229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7230 eval "ac_cv_lib_$ac_lib_var=yes"
7232 echo "configure: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7235 eval "ac_cv_lib_$ac_lib_var=no"
7238 LIBS="$ac_save_LIBS"
7241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7242 echo "$ac_t""yes" 1>&6
7245 echo "$ac_t""no" 1>&6
7250 echo "$ac_t""no" 1>&6
7254 if test x$have_alsa = xtrue
7256 PLUGINS="${PLUGINS} alsa"
7257 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7263 # Check whether --enable-waveout or --disable-waveout was given.
7264 if test "${enable_waveout+set}" = set; then
7265 enableval="$enable_waveout"
7269 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7271 PLUGINS="${PLUGINS} waveout"
7272 waveout_LDFLAGS="-lwinmm"
7276 # Check whether --with- or --without- was given.
7277 if test "${with_+set}" = set; then
7283 # Check whether --enable-gtk or --disable-gtk was given.
7284 if test "${enable_gtk+set}" = set; then
7285 enableval="$enable_gtk"
7289 if test x$enable_gtk != xno
7292 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7293 if test "${with_gtk_config_path+set}" = set; then
7294 withval="$with_gtk_config_path"
7295 if test "x$withval" != "xno"
7297 GTK_PATH=$withval:$PATH
7301 # look for gtk-config
7302 # Extract the first word of "gtk12-config", so it can be a program name with args.
7303 set dummy gtk12-config; ac_word=$2
7304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7305 echo "configure:7306: checking for $ac_word" >&5
7306 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7307 echo $ac_n "(cached) $ac_c" 1>&6
7309 case "$GTK12_CONFIG" in
7311 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7314 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7318 ac_dummy="$GTK_PATH"
7319 for ac_dir in $ac_dummy; do
7320 test -z "$ac_dir" && ac_dir=.
7321 if test -f $ac_dir/$ac_word; then
7322 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7327 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7331 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7332 if test -n "$GTK12_CONFIG"; then
7333 echo "$ac_t""$GTK12_CONFIG" 1>&6
7335 echo "$ac_t""no" 1>&6
7338 GTK_CONFIG=${GTK12_CONFIG}
7339 if test x${GTK_CONFIG} = xno
7341 # Extract the first word of "gtk-config", so it can be a program name with args.
7342 set dummy gtk-config; ac_word=$2
7343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7344 echo "configure:7345: checking for $ac_word" >&5
7345 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7348 case "$GTK_CONFIG" in
7350 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7353 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7357 ac_dummy="$GTK_PATH"
7358 for ac_dir in $ac_dummy; do
7359 test -z "$ac_dir" && ac_dir=.
7360 if test -f $ac_dir/$ac_word; then
7361 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7366 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7370 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7371 if test -n "$GTK_CONFIG"; then
7372 echo "$ac_t""$GTK_CONFIG" 1>&6
7374 echo "$ac_t""no" 1>&6
7378 if test x${GTK_CONFIG} != xno
7380 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7382 { 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; }
7384 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7385 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7386 # now look for the gtk.h header
7387 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7388 ac_cv_gtk_headers=yes
7389 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7393 echo "configure:7394: checking for $ac_hdr" >&5
7394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7397 cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7403 { (eval echo configure:7404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7405 if test -z "$ac_err"; then
7407 eval "ac_cv_header_$ac_safe=yes"
7410 echo "configure: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7413 eval "ac_cv_header_$ac_safe=no"
7417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7418 echo "$ac_t""yes" 1>&6
7419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7420 cat >> confdefs.h <<EOF
7421 #define $ac_tr_hdr 1
7425 echo "$ac_t""no" 1>&6
7426 ac_cv_gtk_headers=no
7427 echo "Cannot find gtk development headers."
7432 if test "x$ac_cv_gtk_headers" = xyes
7434 PLUGINS="${PLUGINS} gtk"
7435 ALIASES="${ALIASES} gvlc"
7437 CPPFLAGS="$save_CPPFLAGS"
7441 # Check whether --enable-gnome or --disable-gnome was given.
7442 if test "${enable_gnome+set}" = set; then
7443 enableval="$enable_gnome"
7444 if test x$enable_gnome = xyes; then
7445 # look for gnome-config
7446 # Extract the first word of "gnome-config", so it can be a program name with args.
7447 set dummy gnome-config; ac_word=$2
7448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7449 echo "configure:7450: checking for $ac_word" >&5
7450 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7451 echo $ac_n "(cached) $ac_c" 1>&6
7453 case "$GNOME_CONFIG" in
7455 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7458 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7463 for ac_dir in $ac_dummy; do
7464 test -z "$ac_dir" && ac_dir=.
7465 if test -f $ac_dir/$ac_word; then
7466 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7471 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7475 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7476 if test -n "$GNOME_CONFIG"; then
7477 echo "$ac_t""$GNOME_CONFIG" 1>&6
7479 echo "$ac_t""no" 1>&6
7482 if test -x ${GNOME_CONFIG}
7484 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7485 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7487 # now look for the gnome.h header
7488 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
7489 for ac_hdr in gnome.h
7491 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7492 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7493 echo "configure:7494: checking for $ac_hdr" >&5
7494 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7495 echo $ac_n "(cached) $ac_c" 1>&6
7497 cat > conftest.$ac_ext <<EOF
7498 #line 7499 "configure"
7499 #include "confdefs.h"
7502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7503 { (eval echo configure:7504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7505 if test -z "$ac_err"; then
7507 eval "ac_cv_header_$ac_safe=yes"
7510 echo "configure: failed program was:" >&5
7511 cat conftest.$ac_ext >&5
7513 eval "ac_cv_header_$ac_safe=no"
7517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7518 echo "$ac_t""yes" 1>&6
7519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7520 cat >> confdefs.h <<EOF
7521 #define $ac_tr_hdr 1
7524 PLUGINS="${PLUGINS} gnome"
7525 ALIASES="${ALIASES} gnome-vlc"
7528 echo "$ac_t""no" 1>&6
7529 { echo "configure: error: Can't find gnome headers. Please install the gnome
7530 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7535 CPPFLAGS="$save_CPPFLAGS"
7540 # Check whether --enable-qt or --disable-qt was given.
7541 if test "${enable_qt+set}" = set; then
7542 enableval="$enable_qt"
7543 if test x$enable_qt = xyes; then
7544 PLUGINS="${PLUGINS} qt"
7545 ALIASES="${ALIASES} qvlc"
7546 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7547 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7548 if test -x ${QTDIR}/bin/moc
7550 MOC=${QTDIR}/bin/moc
7558 # Check whether --enable-kde or --disable-kde was given.
7559 if test "${enable_kde+set}" = set; then
7560 enableval="$enable_kde"
7561 if test x$enable_kde = xyes; then
7562 PLUGINS="${PLUGINS} kde"
7563 ALIASES="${ALIASES} kvlc"
7564 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
7565 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
7566 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
7567 if test -x ${QTDIR}/bin/moc
7569 MOC=${QTDIR}/bin/moc
7577 # Check whether --enable-macosx or --disable-macosx was given.
7578 if test "${enable_macosx+set}" = set; then
7579 enableval="$enable_macosx"
7580 if test x$enable_macosx = xyes
7582 BUILTINS="${BUILTINS} macosx"
7583 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7584 macosx_CFLAGS="${macosx_CFLAGS} -ObjC"
7585 LDFLAGS="${LDFLAGS} -ObjC"
7588 for ac_hdr in Cocoa/Cocoa.h
7590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7592 echo "configure:7593: checking for $ac_hdr" >&5
7593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7594 echo $ac_n "(cached) $ac_c" 1>&6
7596 cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7602 { (eval echo configure:7603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7604 if test -z "$ac_err"; then
7606 eval "ac_cv_header_$ac_safe=yes"
7609 echo "configure: failed program was:" >&5
7610 cat conftest.$ac_ext >&5
7612 eval "ac_cv_header_$ac_safe=no"
7616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7617 echo "$ac_t""yes" 1>&6
7618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7619 cat >> confdefs.h <<EOF
7620 #define $ac_tr_hdr 1
7622 BUILTINS="${BUILTINS} macosx"
7623 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7624 macosx_CFLAGS="${macosx_CFLAGS} -ObjC"
7625 LDFLAGS="${LDFLAGS} -ObjC"
7628 echo "$ac_t""no" 1>&6
7635 # Check whether --enable-qnx or --disable-qnx was given.
7636 if test "${enable_qnx+set}" = set; then
7637 enableval="$enable_qnx"
7641 if test x$enable_qnx != xno
7645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7647 echo "configure:7648: checking for $ac_hdr" >&5
7648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7649 echo $ac_n "(cached) $ac_c" 1>&6
7651 cat > conftest.$ac_ext <<EOF
7652 #line 7653 "configure"
7653 #include "confdefs.h"
7656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7657 { (eval echo configure:7658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7659 if test -z "$ac_err"; then
7661 eval "ac_cv_header_$ac_safe=yes"
7664 echo "configure: failed program was:" >&5
7665 cat conftest.$ac_ext >&5
7667 eval "ac_cv_header_$ac_safe=no"
7671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7672 echo "$ac_t""yes" 1>&6
7673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7674 cat >> confdefs.h <<EOF
7675 #define $ac_tr_hdr 1
7678 PLUGINS="${PLUGINS} qnx"
7679 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
7682 echo "$ac_t""no" 1>&6
7688 # Check whether --enable-intfwin or --disable-intfwin was given.
7689 if test "${enable_intfwin+set}" = set; then
7690 enableval="$enable_intfwin"
7691 if test "x$enableval" != "xno"
7693 # Check whether --with-bcbuilder or --without-bcbuilder was given.
7694 if test "${with_bcbuilder+set}" = set; then
7695 withval="$with_bcbuilder"
7699 if test "x$with_bcbuilder" != "x"
7701 BCBUILDER="$with_bcbuilder"
7703 PLUGINS="${PLUGINS} intfwin"
7708 # Check whether --enable-ncurses or --disable-ncurses was given.
7709 if test "${enable_ncurses+set}" = set; then
7710 enableval="$enable_ncurses"
7711 if test x$enable_ncurses = xyes; then
7712 PLUGINS="${PLUGINS} ncurses"
7713 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
7718 # Check whether --enable-lirc or --disable-lirc was given.
7719 if test "${enable_lirc+set}" = set; then
7720 enableval="$enable_lirc"
7724 if test x$enable_lirc = xyes
7726 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7727 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7728 echo "configure:7729: checking for lirc/lirc_client.h" >&5
7729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7730 echo $ac_n "(cached) $ac_c" 1>&6
7732 cat > conftest.$ac_ext <<EOF
7733 #line 7734 "configure"
7734 #include "confdefs.h"
7735 #include <lirc/lirc_client.h>
7737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7738 { (eval echo configure:7739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7740 if test -z "$ac_err"; then
7742 eval "ac_cv_header_$ac_safe=yes"
7745 echo "configure: failed program was:" >&5
7746 cat conftest.$ac_ext >&5
7748 eval "ac_cv_header_$ac_safe=no"
7752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7753 echo "$ac_t""yes" 1>&6
7754 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
7755 echo "configure:7756: checking for lirc_init in -llirc_client" >&5
7756 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
7757 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7758 echo $ac_n "(cached) $ac_c" 1>&6
7760 ac_save_LIBS="$LIBS"
7761 LIBS="-llirc_client $LIBS"
7762 cat > conftest.$ac_ext <<EOF
7763 #line 7764 "configure"
7764 #include "confdefs.h"
7765 /* Override any gcc2 internal prototype to avoid an error. */
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7774 if { (eval echo configure:7775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7776 eval "ac_cv_lib_$ac_lib_var=yes"
7778 echo "configure: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7781 eval "ac_cv_lib_$ac_lib_var=no"
7784 LIBS="$ac_save_LIBS"
7787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7788 echo "$ac_t""yes" 1>&6
7791 echo "$ac_t""no" 1>&6
7796 echo "$ac_t""no" 1>&6
7800 if test x$have_lirc = xtrue
7802 PLUGINS="${PLUGINS} lirc"
7803 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
7807 # Check whether --with- or --without- was given.
7808 if test "${with_+set}" = set; then
7814 # Check whether --with-words or --without-words was given.
7815 if test "${with_words+set}" = set; then
7816 withval="$with_words"
7822 ac_cv_c_bigendian=yes
7825 ac_cv_c_bigendian=no
7828 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
7829 echo "configure:7830: checking whether the byte order is big-endian" >&5
7830 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7833 ac_cv_c_bigendian=unknown
7834 cat >conftest.c <<EOF
7835 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
7836 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
7837 void _a(void) { char*s = (char*)am; s = (char *)ai; }
7838 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
7839 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
7840 void _e(void) { char*s = (char*)em; s = (char*)ei; }
7841 int main(void) { _a(); _e(); return 0; }
7844 if test -f conftest.c
7846 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
7847 && test -f conftest.o
7849 if test "`strings conftest.o | grep BIGenDianSyS`"
7851 ac_cv_c_bigendian=yes
7853 if test "`strings conftest.o | grep LiTTleEnDian`"
7855 ac_cv_c_bigendian=no
7862 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7863 if test x$ac_cv_c_bigendian = xunknown
7865 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
7869 if test $ac_cv_c_bigendian = yes
7871 cat >> confdefs.h <<\EOF
7872 #define WORDS_BIGENDIAN 1
7878 # Check whether --enable-gprof or --disable-gprof was given.
7879 if test "${enable_gprof+set}" = set; then
7880 enableval="$enable_gprof"
7881 if test x$enableval = xyes; then GPROF=1; fi
7886 # Check whether --enable-cprof or --disable-cprof was given.
7887 if test "${enable_cprof+set}" = set; then
7888 enableval="$enable_cprof"
7889 if test x$enableval = xyes;
7891 LDFLAGS="${LDFLAGS} -lcprof"
7898 # Check whether --enable-pth or --disable-pth was given.
7899 if test "${enable_pth+set}" = set; then
7900 enableval="$enable_pth"
7901 if test x$enableval = xyes; then
7902 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
7903 echo "configure:7904: checking for pth_init in -lpth" >&5
7904 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
7905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7908 ac_save_LIBS="$LIBS"
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 /* Override any gcc2 internal prototype to avoid an error. */
7914 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */
7922 if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7924 eval "ac_cv_lib_$ac_lib_var=yes"
7926 echo "configure: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7929 eval "ac_cv_lib_$ac_lib_var=no"
7932 LIBS="$ac_save_LIBS"
7935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7936 echo "$ac_t""yes" 1>&6
7937 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7938 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7939 cat >> confdefs.h <<EOF
7940 #define $ac_tr_lib 1
7946 echo "$ac_t""no" 1>&6
7949 cat > conftest.$ac_ext <<EOF
7950 #line 7951 "configure"
7951 #include "confdefs.h"
7954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7955 egrep "pth_init" >/dev/null 2>&1; then
7958 cat >> confdefs.h <<\EOF
7959 #define PTH_INIT_IN_PTH_H 1
7971 # Check whether --enable-st or --disable-st was given.
7972 if test "${enable_st+set}" = set; then
7973 enableval="$enable_st"
7974 if test x$enableval = xyes; then
7975 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
7976 echo "configure:7977: checking for st_init in -lst" >&5
7977 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
7978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7981 ac_save_LIBS="$LIBS"
7983 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 /* Override any gcc2 internal prototype to avoid an error. */
7987 /* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7995 if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7997 eval "ac_cv_lib_$ac_lib_var=yes"
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8002 eval "ac_cv_lib_$ac_lib_var=no"
8005 LIBS="$ac_save_LIBS"
8008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8009 echo "$ac_t""yes" 1>&6
8010 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8011 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8012 cat >> confdefs.h <<EOF
8013 #define $ac_tr_lib 1
8019 echo "$ac_t""no" 1>&6
8022 cat > conftest.$ac_ext <<EOF
8023 #line 8024 "configure"
8024 #include "confdefs.h"
8027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8028 egrep "st_init" >/dev/null 2>&1; then
8031 cat >> confdefs.h <<\EOF
8032 #define ST_INIT_IN_ST_H 1
8044 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
8046 # Check whether --enable-plugins or --disable-plugins was given.
8047 if test "${enable_plugins+set}" = set; then
8048 enableval="$enable_plugins"
8049 if test x$enable_plugins = xno
8051 BUILTINS="${BUILTINS} ${PLUGINS}"
8057 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8059 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8061 BUILTINS="${BUILTINS} ${PLUGINS}"
8065 cat >> confdefs.h <<EOF
8066 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8069 cat >> confdefs.h <<EOF
8070 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8074 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8075 cat >> confdefs.h <<EOF
8076 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8079 cat >> confdefs.h <<EOF
8080 #define MODULE_SYMBOL $VLC_SYMBOL
8084 DATA_PATH="${ac_tool_prefix}/share/videolan"
8086 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8180 cat > confcache <<\EOF
8181 # This file is a shell script that caches the results of configure
8182 # tests run on this system so they can be shared between configure
8183 # scripts and configure runs. It is not useful on other systems.
8184 # If it contains results you don't want to keep, you may remove or edit it.
8186 # By default, configure uses ./config.cache as the cache file,
8187 # creating it if it does not exist already. You can give configure
8188 # the --cache-file=FILE option to use a different cache file; that is
8189 # what configure does when it calls configure scripts in
8190 # subdirectories, so they share the cache.
8191 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8192 # config.status only pays attention to the cache file if you give it the
8193 # --recheck option to rerun configure.
8196 # The following way of writing the cache mishandles newlines in values,
8197 # but we know of no workaround that is simple, portable, and efficient.
8198 # So, don't put newlines in cache variables' values.
8199 # Ultrix sh set writes to stderr and can't be redirected directly,
8200 # and sets the high bit in the cache file unless we assign to the vars.
8202 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8204 # `set' does not quote correctly, so add quotes (double-quote substitution
8205 # turns \\\\ into \\, and sed turns \\ into \).
8207 -e "s/'/'\\\\''/g" \
8208 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8211 # `set' quotes correctly as required by POSIX, so do not add quotes.
8212 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8215 if cmp -s $cache_file confcache; then
8218 if test -w $cache_file; then
8219 echo "updating cache $cache_file"
8220 cat confcache > $cache_file
8222 echo "not updating unwritable cache $cache_file"
8227 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8230 # Let make expand exec_prefix.
8231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8233 # Any assignment to VPATH causes Sun make to only execute
8234 # the first set of double-colon rules, so remove it if not needed.
8235 # If there is a colon in the path, we need to keep it.
8236 if test "x$srcdir" = x.; then
8237 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8240 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8242 DEFS=-DHAVE_CONFIG_H
8244 # Without the "./", some shells look in PATH for config.status.
8245 : ${CONFIG_STATUS=./config.status}
8247 echo creating $CONFIG_STATUS
8248 rm -f $CONFIG_STATUS
8249 cat > $CONFIG_STATUS <<EOF
8251 # Generated automatically by configure.
8252 # Run this file to recreate the current configuration.
8253 # This directory was configured as follows,
8254 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8256 # $0 $ac_configure_args
8258 # Compiler output produced by configure, useful for debugging
8259 # configure, is in ./config.log if it exists.
8261 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8264 case "\$ac_option" in
8265 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8266 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8267 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8268 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8269 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8271 -help | --help | --hel | --he | --h)
8272 echo "\$ac_cs_usage"; exit 0 ;;
8273 *) echo "\$ac_cs_usage"; exit 1 ;;
8277 ac_given_srcdir=$srcdir
8278 ac_given_INSTALL="$INSTALL"
8280 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8282 cat >> $CONFIG_STATUS <<EOF
8284 # Protect against being on the right side of a sed subst in config.status.
8285 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8286 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8290 s%@CFLAGS@%$CFLAGS%g
8291 s%@CPPFLAGS@%$CPPFLAGS%g
8292 s%@CXXFLAGS@%$CXXFLAGS%g
8293 s%@FFLAGS@%$FFLAGS%g
8295 s%@LDFLAGS@%$LDFLAGS%g
8297 s%@exec_prefix@%$exec_prefix%g
8298 s%@prefix@%$prefix%g
8299 s%@program_transform_name@%$program_transform_name%g
8300 s%@bindir@%$bindir%g
8301 s%@sbindir@%$sbindir%g
8302 s%@libexecdir@%$libexecdir%g
8303 s%@datadir@%$datadir%g
8304 s%@sysconfdir@%$sysconfdir%g
8305 s%@sharedstatedir@%$sharedstatedir%g
8306 s%@localstatedir@%$localstatedir%g
8307 s%@libdir@%$libdir%g
8308 s%@includedir@%$includedir%g
8309 s%@oldincludedir@%$oldincludedir%g
8310 s%@infodir@%$infodir%g
8311 s%@mandir@%$mandir%g
8313 s%@host_alias@%$host_alias%g
8314 s%@host_cpu@%$host_cpu%g
8315 s%@host_vendor@%$host_vendor%g
8316 s%@host_os@%$host_os%g
8317 s%@target@%$target%g
8318 s%@target_alias@%$target_alias%g
8319 s%@target_cpu@%$target_cpu%g
8320 s%@target_vendor@%$target_vendor%g
8321 s%@target_os@%$target_os%g
8323 s%@build_alias@%$build_alias%g
8324 s%@build_cpu@%$build_cpu%g
8325 s%@build_vendor@%$build_vendor%g
8326 s%@build_os@%$build_os%g
8327 s%@SET_MAKE@%$SET_MAKE%g
8330 s%@RANLIB@%$RANLIB%g
8333 s%@ALLOCA@%$ALLOCA%g
8334 s%@GLIBC21@%$GLIBC21%g
8335 s%@LIBICONV@%$LIBICONV%g
8336 s%@USE_NLS@%$USE_NLS%g
8337 s%@MSGFMT@%$MSGFMT%g
8338 s%@GMSGFMT@%$GMSGFMT%g
8339 s%@XGETTEXT@%$XGETTEXT%g
8340 s%@INTLBISON@%$INTLBISON%g
8341 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8342 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8343 s%@CATALOGS@%$CATALOGS%g
8344 s%@CATOBJEXT@%$CATOBJEXT%g
8345 s%@GMOFILES@%$GMOFILES%g
8346 s%@INTLLIBS@%$INTLLIBS%g
8347 s%@INTLOBJS@%$INTLOBJS%g
8348 s%@POFILES@%$POFILES%g
8350 s%@DATADIRNAME@%$DATADIRNAME%g
8351 s%@INSTOBJEXT@%$INSTOBJEXT%g
8352 s%@GENCAT@%$GENCAT%g
8353 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8354 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8355 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8356 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8357 s%@INSTALL_DATA@%$INSTALL_DATA%g
8358 s%@WINDRES@%$WINDRES%g
8359 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8360 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8361 s%@SDL_CONFIG@%$SDL_CONFIG%g
8362 s%@ESD_CONFIG@%$ESD_CONFIG%g
8363 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8364 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8365 s%@GTK_CONFIG@%$GTK_CONFIG%g
8366 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8367 s%@DATA_PATH@%$DATA_PATH%g
8368 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8371 s%@PLUGINS@%$PLUGINS%g
8372 s%@BUILTINS@%$BUILTINS%g
8373 s%@ALIASES@%$ALIASES%g
8378 s%@OPTIMS@%$OPTIMS%g
8379 s%@TUNING@%$TUNING%g
8380 s%@RELEASE@%$RELEASE%g
8382 s%@BCBUILDER@%$BCBUILDER%g
8383 s%@PACKAGE@%$PACKAGE%g
8384 s%@VERSION@%$VERSION%g
8385 s%@NEED_GETOPT@%$NEED_GETOPT%g
8386 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8387 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8388 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8389 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8390 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8391 s%@arts_CFLAGS@%$arts_CFLAGS%g
8392 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8393 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8394 s%@directx_CFLAGS@%$directx_CFLAGS%g
8395 s%@esd_CFLAGS@%$esd_CFLAGS%g
8396 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8397 s%@glide_CFLAGS@%$glide_CFLAGS%g
8398 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8399 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8400 s%@kde_CFLAGS@%$kde_CFLAGS%g
8401 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8402 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8403 s%@mad_CFLAGS@%$mad_CFLAGS%g
8404 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8405 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8406 s%@qt_CFLAGS@%$qt_CFLAGS%g
8407 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8408 s%@x11_CFLAGS@%$x11_CFLAGS%g
8409 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8410 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8411 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8412 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8413 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8414 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8415 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8416 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8417 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8418 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8419 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8420 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8421 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8422 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8423 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8424 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8425 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8426 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8427 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8428 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8429 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8430 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8431 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8432 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8433 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8434 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8435 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8436 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8437 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8438 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8439 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8440 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8441 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8442 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8443 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8444 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8445 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8446 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8447 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8448 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8449 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8450 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8455 cat >> $CONFIG_STATUS <<\EOF
8457 # Split the substitutions into bite-sized pieces for seds with
8458 # small command number limits, like on Digital OSF/1 and HP-UX.
8459 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8460 ac_file=1 # Number of current file.
8461 ac_beg=1 # First line for current file.
8462 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8465 while $ac_more_lines; do
8466 if test $ac_beg -gt 1; then
8467 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8469 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8471 if test ! -s conftest.s$ac_file; then
8473 rm -f conftest.s$ac_file
8475 if test -z "$ac_sed_cmds"; then
8476 ac_sed_cmds="sed -f conftest.s$ac_file"
8478 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8480 ac_file=`expr $ac_file + 1`
8482 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8485 if test -z "$ac_sed_cmds"; then
8490 cat >> $CONFIG_STATUS <<EOF
8492 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8494 cat >> $CONFIG_STATUS <<\EOF
8495 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8498 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8499 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8500 *) ac_file_in="${ac_file}.in" ;;
8503 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8505 # Remove last slash and all that follows it. Not all systems have dirname.
8506 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8507 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8508 # The file is in a subdirectory.
8509 test ! -d "$ac_dir" && mkdir "$ac_dir"
8510 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8511 # A "../" for each directory in $ac_dir_suffix.
8512 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8514 ac_dir_suffix= ac_dots=
8517 case "$ac_given_srcdir" in
8519 if test -z "$ac_dots"; then top_srcdir=.
8520 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8521 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8523 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8524 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8527 case "$ac_given_INSTALL" in
8528 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8529 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8532 echo creating "$ac_file"
8534 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8536 *Makefile*) ac_comsub="1i\\
8537 # $configure_input" ;;
8541 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8543 s%@configure_input@%$configure_input%g
8544 s%@srcdir@%$srcdir%g
8545 s%@top_srcdir@%$top_srcdir%g
8546 s%@INSTALL@%$INSTALL%g
8547 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8551 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8552 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8554 # ac_d sets the value in "#define NAME VALUE" lines.
8555 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8556 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8559 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8560 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8561 ac_uB='\([ ]\)%\1#\2define\3'
8564 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8565 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8566 ac_eB='$%\1#\2define\3'
8570 if test "${CONFIG_HEADERS+set}" != set; then
8572 cat >> $CONFIG_STATUS <<EOF
8573 CONFIG_HEADERS="include/defs.h"
8575 cat >> $CONFIG_STATUS <<\EOF
8577 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8580 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8581 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8582 *) ac_file_in="${ac_file}.in" ;;
8585 echo creating $ac_file
8587 rm -f conftest.frag conftest.in conftest.out
8588 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8589 cat $ac_file_inputs > conftest.in
8593 # Transform confdefs.h into a sed script conftest.vals that substitutes
8594 # the proper values into config.h.in to produce config.h. And first:
8595 # Protect against being on the right side of a sed subst in config.status.
8596 # Protect against being in an unquoted here document in config.status.
8598 cat > conftest.hdr <<\EOF
8601 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8605 sed -n -f conftest.hdr confdefs.h > conftest.vals
8608 # This sed command replaces #undef with comments. This is necessary, for
8609 # example, in the case of _POSIX_SOURCE, which is predefined and required
8610 # on some systems where configure will not decide to define it.
8611 cat >> conftest.vals <<\EOF
8612 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8615 # Break up conftest.vals because some shells have a limit on
8616 # the size of here documents, and old seds have small limits too.
8621 ac_lines=`grep -c . conftest.vals`
8622 # grep -c gives empty output for an empty file on some AIX systems.
8623 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8624 # Write a limited-size here document to conftest.frag.
8625 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8626 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8628 sed -f conftest.frag conftest.in > conftest.out
8630 mv conftest.out conftest.in
8632 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8634 mv conftest.tail conftest.vals
8638 cat >> $CONFIG_STATUS <<\EOF
8639 rm -f conftest.frag conftest.h
8640 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8641 cat conftest.in >> conftest.h
8643 if cmp -s $ac_file conftest.h 2>/dev/null; then
8644 echo "$ac_file is unchanged"
8647 # Remove last slash and all that follows it. Not all systems have dirname.
8648 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8649 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8650 # The file is in a subdirectory.
8651 test ! -d "$ac_dir" && mkdir "$ac_dir"
8654 mv conftest.h $ac_file
8659 cat >> $CONFIG_STATUS <<EOF
8663 cat >> $CONFIG_STATUS <<\EOF
8664 for ac_file in $CONFIG_FILES; do
8665 # Support "outfile[:infile[:infile...]]"
8667 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8669 # PO directories have a Makefile.in generated from Makefile.in.in.
8670 case "$ac_file" in */Makefile.in)
8671 # Adjust a relative srcdir.
8672 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8673 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8674 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8675 # In autoconf-2.13 it is called $ac_given_srcdir.
8676 # In autoconf-2.50 it is called $srcdir.
8677 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8678 case "$ac_given_srcdir" in
8679 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8680 /*) top_srcdir="$ac_given_srcdir" ;;
8681 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8683 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8684 rm -f "$ac_dir/POTFILES"
8685 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8686 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8687 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8688 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8696 chmod +x $CONFIG_STATUS
8697 rm -fr confdefs* $ac_clean_files
8698 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8703 --------------------
8704 vlc version : ${VERSION}
8706 architecture : ${ARCH}
8707 optimizations : ${OPTIMS}
8709 debug mode : ${DEBUG}
8710 release : ${RELEASE}
8711 cprof/gprof support : ${CPROF}/${GPROF}
8712 need builtin getopt : ${NEED_GETOPT}
8713 built-in modules :${BUILTINS}
8714 plug-in modules :${PLUGINS}
8715 vlc aliases :${ALIASES}
8717 You may now tune Makefile.opts at your convenience, for instance to choose
8718 which modules get compiled as plugins.
8720 To build vlc and its plugins, type \`$VLC_MAKE'.