3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable altivec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-vcd VCD support for Linux and MacOS X (default enabled)"
50 --enable-satellite satellite card support (default disabled)"
54 --enable-mad libmad module (default disabled)"
56 --with-mad=PATH path to libmad"
58 --enable-a52 AC3 support with liba52 (default enabled)"
60 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
64 --enable-x11 X11 support (default enabled)"
66 --enable-xvideo XVideo support (default enabled)"
68 --enable-sdl SDL support (default enabled)"
70 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
72 --enable-directx Win32 DirectX support (default enabled on Win32)"
74 --with-directx=PATH Win32 DirectX headers and libraries"
76 --enable-fb Linux framebuffer support (default enabled on Linux)"
78 --enable-mga Linux kernel Matrox support (default disabled)"
80 --enable-ggi GGI support (default disabled)"
82 --with-ggi=PATH path to libggi"
84 --enable-glide Glide (3dfx) support (default disabled)"
86 --with-glide=PATH path to libglide"
88 --enable-aa aalib output (default disabled)"
92 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
94 --enable-esd Esound library support (default disabled)"
96 --enable-arts aRts sound server (default disabled)"
98 --enable-alsa ALSA sound support for Linux (default disabled)"
100 --enable-waveout Win32 waveOut module (default enabled on Win32)"
104 --enable-gtk Gtk+ support (default enabled)"
106 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
108 --enable-gnome Gnome interface support (default disabled)"
110 --enable-qt Qt interface support (default disabled)"
112 --enable-kde KDE interface support (default disabled)"
114 --enable-macosx MacOS X support (default enabled on MacOS X)"
116 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
118 --enable-intfwin Win32 interface support (default disabled)"
120 --with-bcbuilder=PATH Borland C++ Builder installation path"
122 --enable-ncurses ncurses interface support (default disabled)"
124 --enable-lirc lirc support (default disabled)"
128 --with-words=endianness set endianness (big or little)"
130 --enable-gprof gprof profiling (default disabled)"
132 --enable-cprof cprof profiling (default disabled)"
134 --enable-pth GNU Pth support (default disabled)"
136 --enable-st State Threads (default disabled)"
138 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
140 # Initialize some variables set by options.
141 # The variables have the same names as the options, with
142 # dashes changed to underlines.
144 cache_file=./config.cache
153 program_transform_name=s,x,x,
161 bindir='${exec_prefix}/bin'
162 sbindir='${exec_prefix}/sbin'
163 libexecdir='${exec_prefix}/libexec'
164 datadir='${prefix}/share'
165 sysconfdir='${prefix}/etc'
166 sharedstatedir='${prefix}/com'
167 localstatedir='${prefix}/var'
168 libdir='${exec_prefix}/lib'
169 includedir='${prefix}/include'
170 oldincludedir='/usr/include'
171 infodir='${prefix}/info'
172 mandir='${prefix}/man'
174 # Initialize some other variables.
177 SHELL=${CONFIG_SHELL-/bin/sh}
178 # Maximum number of lines to put in a shell here document.
185 # If the previous option needs an argument, assign it.
186 if test -n "$ac_prev"; then
187 eval "$ac_prev=\$ac_option"
193 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
197 # Accept the important Cygnus configure options, so we can diagnose typos.
201 -bindir | --bindir | --bindi | --bind | --bin | --bi)
203 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
204 bindir="$ac_optarg" ;;
206 -build | --build | --buil | --bui | --bu)
208 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
209 build="$ac_optarg" ;;
211 -cache-file | --cache-file | --cache-fil | --cache-fi \
212 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
213 ac_prev=cache_file ;;
214 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
215 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
216 cache_file="$ac_optarg" ;;
218 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
220 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
222 datadir="$ac_optarg" ;;
224 -disable-* | --disable-*)
225 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
226 # Reject names that are not valid shell variable names.
227 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
228 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
230 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
231 eval "enable_${ac_feature}=no" ;;
233 -enable-* | --enable-*)
234 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
235 # Reject names that are not valid shell variable names.
236 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
237 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
239 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
244 eval "enable_${ac_feature}='$ac_optarg'" ;;
246 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
247 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
248 | --exec | --exe | --ex)
249 ac_prev=exec_prefix ;;
250 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
251 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
252 | --exec=* | --exe=* | --ex=*)
253 exec_prefix="$ac_optarg" ;;
255 -gas | --gas | --ga | --g)
256 # Obsolete; use --with-gas.
259 -help | --help | --hel | --he)
260 # Omit some internal or obsolete options to make the list less imposing.
261 # This message is too long to be a string in the A/UX 3.1 sh.
263 Usage: configure [options] [host]
264 Options: [defaults in brackets after descriptions]
266 --cache-file=FILE cache test results in FILE
267 --help print this message
268 --no-create do not create output files
269 --quiet, --silent do not print \`checking...' messages
270 --version print the version of autoconf that created configure
271 Directory and file names:
272 --prefix=PREFIX install architecture-independent files in PREFIX
274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
276 --bindir=DIR user executables in DIR [EPREFIX/bin]
277 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
278 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
279 --datadir=DIR read-only architecture-independent data in DIR
281 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
282 --sharedstatedir=DIR modifiable architecture-independent data in DIR
284 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
285 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
286 --includedir=DIR C header files in DIR [PREFIX/include]
287 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
288 --infodir=DIR info documentation in DIR [PREFIX/info]
289 --mandir=DIR man documentation in DIR [PREFIX/man]
290 --srcdir=DIR find the sources in DIR [configure dir or ..]
291 --program-prefix=PREFIX prepend PREFIX to installed program names
292 --program-suffix=SUFFIX append SUFFIX to installed program names
293 --program-transform-name=PROGRAM
294 run sed PROGRAM on installed program names
298 --build=BUILD configure for building on BUILD [BUILD=HOST]
299 --host=HOST configure for HOST [guessed]
300 --target=TARGET configure for TARGET [TARGET=HOST]
301 Features and packages:
302 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
303 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
304 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
305 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
306 --x-includes=DIR X include files are in DIR
307 --x-libraries=DIR X library files are in DIR
309 if test -n "$ac_help"; then
310 echo "--enable and --with options recognized:$ac_help"
314 -host | --host | --hos | --ho)
316 -host=* | --host=* | --hos=* | --ho=*)
319 -includedir | --includedir | --includedi | --included | --include \
320 | --includ | --inclu | --incl | --inc)
321 ac_prev=includedir ;;
322 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
323 | --includ=* | --inclu=* | --incl=* | --inc=*)
324 includedir="$ac_optarg" ;;
326 -infodir | --infodir | --infodi | --infod | --info | --inf)
328 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
329 infodir="$ac_optarg" ;;
331 -libdir | --libdir | --libdi | --libd)
333 -libdir=* | --libdir=* | --libdi=* | --libd=*)
334 libdir="$ac_optarg" ;;
336 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
337 | --libexe | --libex | --libe)
338 ac_prev=libexecdir ;;
339 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
340 | --libexe=* | --libex=* | --libe=*)
341 libexecdir="$ac_optarg" ;;
343 -localstatedir | --localstatedir | --localstatedi | --localstated \
344 | --localstate | --localstat | --localsta | --localst \
345 | --locals | --local | --loca | --loc | --lo)
346 ac_prev=localstatedir ;;
347 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
348 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
349 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
350 localstatedir="$ac_optarg" ;;
352 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
354 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
355 mandir="$ac_optarg" ;;
358 # Obsolete; use --without-fp.
361 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
365 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
366 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
369 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
370 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
371 | --oldin | --oldi | --old | --ol | --o)
372 ac_prev=oldincludedir ;;
373 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
374 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
375 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
376 oldincludedir="$ac_optarg" ;;
378 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
380 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
381 prefix="$ac_optarg" ;;
383 -program-prefix | --program-prefix | --program-prefi | --program-pref \
384 | --program-pre | --program-pr | --program-p)
385 ac_prev=program_prefix ;;
386 -program-prefix=* | --program-prefix=* | --program-prefi=* \
387 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
388 program_prefix="$ac_optarg" ;;
390 -program-suffix | --program-suffix | --program-suffi | --program-suff \
391 | --program-suf | --program-su | --program-s)
392 ac_prev=program_suffix ;;
393 -program-suffix=* | --program-suffix=* | --program-suffi=* \
394 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
395 program_suffix="$ac_optarg" ;;
397 -program-transform-name | --program-transform-name \
398 | --program-transform-nam | --program-transform-na \
399 | --program-transform-n | --program-transform- \
400 | --program-transform | --program-transfor \
401 | --program-transfo | --program-transf \
402 | --program-trans | --program-tran \
403 | --progr-tra | --program-tr | --program-t)
404 ac_prev=program_transform_name ;;
405 -program-transform-name=* | --program-transform-name=* \
406 | --program-transform-nam=* | --program-transform-na=* \
407 | --program-transform-n=* | --program-transform-=* \
408 | --program-transform=* | --program-transfor=* \
409 | --program-transfo=* | --program-transf=* \
410 | --program-trans=* | --program-tran=* \
411 | --progr-tra=* | --program-tr=* | --program-t=*)
412 program_transform_name="$ac_optarg" ;;
414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
415 | -silent | --silent | --silen | --sile | --sil)
418 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
420 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
422 sbindir="$ac_optarg" ;;
424 -sharedstatedir | --sharedstatedir | --sharedstatedi \
425 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
426 | --sharedst | --shareds | --shared | --share | --shar \
428 ac_prev=sharedstatedir ;;
429 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
430 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
431 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
433 sharedstatedir="$ac_optarg" ;;
435 -site | --site | --sit)
437 -site=* | --site=* | --sit=*)
440 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
442 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
443 srcdir="$ac_optarg" ;;
445 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
446 | --syscon | --sysco | --sysc | --sys | --sy)
447 ac_prev=sysconfdir ;;
448 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
449 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
450 sysconfdir="$ac_optarg" ;;
452 -target | --target | --targe | --targ | --tar | --ta | --t)
454 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
455 target="$ac_optarg" ;;
457 -v | -verbose | --verbose | --verbos | --verbo | --verb)
460 -version | --version | --versio | --versi | --vers)
461 echo "configure generated by autoconf version 2.13"
465 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
466 # Reject names that are not valid shell variable names.
467 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
468 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
470 ac_package=`echo $ac_package| sed 's/-/_/g'`
475 eval "with_${ac_package}='$ac_optarg'" ;;
477 -without-* | --without-*)
478 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
479 # Reject names that are not valid shell variable names.
480 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
481 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
483 ac_package=`echo $ac_package| sed 's/-/_/g'`
484 eval "with_${ac_package}=no" ;;
487 # Obsolete; use --with-x.
490 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
491 | --x-incl | --x-inc | --x-in | --x-i)
492 ac_prev=x_includes ;;
493 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
494 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
495 x_includes="$ac_optarg" ;;
497 -x-libraries | --x-libraries | --x-librarie | --x-librari \
498 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
499 ac_prev=x_libraries ;;
500 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
501 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
502 x_libraries="$ac_optarg" ;;
504 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
508 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
509 echo "configure: warning: $ac_option: invalid host type" 1>&2
511 if test "x$nonopt" != xNONE; then
512 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
520 if test -n "$ac_prev"; then
521 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
524 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
526 # File descriptor usage:
529 # 2 errors and warnings
530 # 3 some systems may open it to /dev/tty
531 # 4 used on the Kubota Titan
532 # 6 checking for... messages and results
533 # 5 compiler messages saved in config.log
534 if test "$silent" = yes; then
542 This file contains any messages produced by compilers while
543 running configure, to aid debugging if configure makes a mistake.
546 # Strip out --no-create and --no-recursion so they do not pile up.
547 # Also quote any args containing shell metacharacters.
552 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
553 | --no-cr | --no-c) ;;
554 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
555 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
556 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
557 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
558 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
563 # Only set these to C if already set. These must not be set unconditionally
564 # because not all systems understand e.g. LANG=C (notably SCO).
565 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
566 # Non-C LC_CTYPE values break the ctype check.
567 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
568 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
569 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
570 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
572 # confdefs.h avoids OS command line length limits that DEFS can exceed.
573 rm -rf conftest* confdefs.h
574 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
577 # A filename unique to this package, relative to the directory that
578 # configure is in, which we can look for to find out if srcdir is correct.
579 ac_unique_file=include/main.h
581 # Find the source files, if location was not specified.
582 if test -z "$srcdir"; then
583 ac_srcdir_defaulted=yes
584 # Try the directory containing this script, then its parent.
586 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
587 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
589 if test ! -r $srcdir/$ac_unique_file; then
593 ac_srcdir_defaulted=no
595 if test ! -r $srcdir/$ac_unique_file; then
596 if test "$ac_srcdir_defaulted" = yes; then
597 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
599 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
602 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
604 # Prefer explicitly selected file to automatically selected ones.
605 if test -z "$CONFIG_SITE"; then
606 if test "x$prefix" != xNONE; then
607 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
609 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
612 for ac_site_file in $CONFIG_SITE; do
613 if test -r "$ac_site_file"; then
614 echo "loading site script $ac_site_file"
619 if test -r "$cache_file"; then
620 echo "loading cache $cache_file"
623 echo "creating cache $cache_file"
628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
629 ac_cpp='$CPP $CPPFLAGS'
630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
632 cross_compiling=$ac_cv_prog_cc_cross
636 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
637 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
638 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
645 ac_n= ac_c='\c' ac_t=
651 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
652 if test -f $ac_dir/install-sh; then
654 ac_install_sh="$ac_aux_dir/install-sh -c"
656 elif test -f $ac_dir/install.sh; then
658 ac_install_sh="$ac_aux_dir/install.sh -c"
662 if test -z "$ac_aux_dir"; then
663 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
665 ac_config_guess=$ac_aux_dir/config.guess
666 ac_config_sub=$ac_aux_dir/config.sub
667 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
670 # Do some error checking and defaulting for the host and target type.
672 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
675 # 1. You are not allowed to specify --host, --target, and nonopt at the
677 # 2. Host defaults to nonopt.
678 # 3. If nonopt is not specified, then host defaults to the current host,
679 # as determined by config.guess.
680 # 4. Target and build default to nonopt.
681 # 5. If nonopt is not specified, then target and build default to host.
683 # The aliases save the names the user supplied, while $host etc.
684 # will get canonicalized.
685 case $host---$target---$nonopt in
686 NONE---*---* | *---NONE---* | *---*---NONE) ;;
687 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
691 # Make sure we can run config.sub.
692 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
693 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
696 echo $ac_n "checking host system type""... $ac_c" 1>&6
697 echo "configure:698: checking host system type" >&5
700 case "$host_alias" in
704 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
705 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
707 *) host_alias=$nonopt ;;
711 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
712 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
713 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
714 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
715 echo "$ac_t""$host" 1>&6
717 echo $ac_n "checking target system type""... $ac_c" 1>&6
718 echo "configure:719: checking target system type" >&5
721 case "$target_alias" in
724 NONE) target_alias=$host_alias ;;
725 *) target_alias=$nonopt ;;
729 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
730 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
731 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
732 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
733 echo "$ac_t""$target" 1>&6
735 echo $ac_n "checking build system type""... $ac_c" 1>&6
736 echo "configure:737: checking build system type" >&5
739 case "$build_alias" in
742 NONE) build_alias=$host_alias ;;
743 *) build_alias=$nonopt ;;
747 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
748 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
751 echo "$ac_t""$build" 1>&6
753 test "$host_alias" != "$target_alias" &&
754 test "$program_prefix$program_suffix$program_transform_name" = \
756 program_prefix=${target_alias}-
763 save_CFLAGS="${CFLAGS}"
764 save_CPPFLAGS="${CPPFLAGS}"
765 save_LDFLAGS="${LDFLAGS}"
767 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
768 echo "configure:769: checking whether ${MAKE-make} sets \${MAKE}" >&5
769 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
770 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
773 cat > conftestmake <<\EOF
775 @echo 'ac_maketemp="${MAKE}"'
777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
778 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
779 if test -n "$ac_maketemp"; then
780 eval ac_cv_prog_make_${ac_make}_set=yes
782 eval ac_cv_prog_make_${ac_make}_set=no
786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
787 echo "$ac_t""yes" 1>&6
790 echo "$ac_t""no" 1>&6
791 SET_MAKE="MAKE=${MAKE-make}"
794 # Extract the first word of "gcc", so it can be a program name with args.
795 set dummy gcc; ac_word=$2
796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
797 echo "configure:798: checking for $ac_word" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 if test -n "$CC"; then
802 ac_cv_prog_CC="$CC" # Let the user override the test.
804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
806 for ac_dir in $ac_dummy; do
807 test -z "$ac_dir" && ac_dir=.
808 if test -f $ac_dir/$ac_word; then
817 if test -n "$CC"; then
818 echo "$ac_t""$CC" 1>&6
820 echo "$ac_t""no" 1>&6
823 if test -z "$CC"; then
824 # Extract the first word of "cc", so it can be a program name with args.
825 set dummy cc; ac_word=$2
826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
827 echo "configure:828: checking for $ac_word" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 if test -n "$CC"; then
832 ac_cv_prog_CC="$CC" # Let the user override the test.
834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
837 for ac_dir in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir=.
839 if test -f $ac_dir/$ac_word; then
840 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
849 if test $ac_prog_rejected = yes; then
850 # We found a bogon in the path, so make sure we never use it.
851 set dummy $ac_cv_prog_CC
853 if test $# -gt 0; then
854 # We chose a different compiler from the bogus one.
855 # However, it has the same basename, so the bogon will be chosen
856 # first if we set CC to just the basename; use the full file name.
858 set dummy "$ac_dir/$ac_word" "$@"
866 if test -n "$CC"; then
867 echo "$ac_t""$CC" 1>&6
869 echo "$ac_t""no" 1>&6
872 if test -z "$CC"; then
875 # Extract the first word of "cl", so it can be a program name with args.
876 set dummy cl; ac_word=$2
877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
878 echo "configure:879: checking for $ac_word" >&5
879 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 if test -n "$CC"; then
883 ac_cv_prog_CC="$CC" # Let the user override the test.
885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
887 for ac_dir in $ac_dummy; do
888 test -z "$ac_dir" && ac_dir=.
889 if test -f $ac_dir/$ac_word; then
898 if test -n "$CC"; then
899 echo "$ac_t""$CC" 1>&6
901 echo "$ac_t""no" 1>&6
906 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
909 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
910 echo "configure:911: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
913 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
914 ac_cpp='$CPP $CPPFLAGS'
915 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
916 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
917 cross_compiling=$ac_cv_prog_cc_cross
919 cat > conftest.$ac_ext << EOF
921 #line 922 "configure"
922 #include "confdefs.h"
926 if { (eval echo configure:927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
927 ac_cv_prog_cc_works=yes
928 # If we can't run a trivial program, we are probably using a cross compiler.
929 if (./conftest; exit) 2>/dev/null; then
930 ac_cv_prog_cc_cross=no
932 ac_cv_prog_cc_cross=yes
935 echo "configure: failed program was:" >&5
936 cat conftest.$ac_ext >&5
937 ac_cv_prog_cc_works=no
941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
942 ac_cpp='$CPP $CPPFLAGS'
943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
945 cross_compiling=$ac_cv_prog_cc_cross
947 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
948 if test $ac_cv_prog_cc_works = no; then
949 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
951 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
952 echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
953 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
954 cross_compiling=$ac_cv_prog_cc_cross
956 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
957 echo "configure:958: checking whether we are using GNU C" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 cat > conftest.c <<EOF
966 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
973 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
975 if test $ac_cv_prog_gcc = yes; then
981 ac_test_CFLAGS="${CFLAGS+set}"
982 ac_save_CFLAGS="$CFLAGS"
984 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
985 echo "configure:986: checking whether ${CC-cc} accepts -g" >&5
986 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 echo 'void f(){}' > conftest.c
990 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
999 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1000 if test "$ac_test_CFLAGS" = set; then
1001 CFLAGS="$ac_save_CFLAGS"
1002 elif test $ac_cv_prog_cc_g = yes; then
1003 if test "$GCC" = yes; then
1009 if test "$GCC" = yes; then
1016 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1017 echo "configure:1018: checking how to run the C preprocessor" >&5
1018 # On Suns, sometimes $CPP names a directory.
1019 if test -n "$CPP" && test -d "$CPP"; then
1022 if test -z "$CPP"; then
1023 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 # This must be in double quotes, not single quotes, because CPP may get
1027 # substituted into the Makefile and "${CC-cc}" will confuse make.
1029 # On the NeXT, cc -E runs the code through the compiler's parser,
1030 # not just through cpp.
1031 cat > conftest.$ac_ext <<EOF
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1038 { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1040 if test -z "$ac_err"; then
1044 echo "configure: failed program was:" >&5
1045 cat conftest.$ac_ext >&5
1047 CPP="${CC-cc} -E -traditional-cpp"
1048 cat > conftest.$ac_ext <<EOF
1049 #line 1050 "configure"
1050 #include "confdefs.h"
1054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1055 { (eval echo configure:1056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1057 if test -z "$ac_err"; then
1061 echo "configure: failed program was:" >&5
1062 cat conftest.$ac_ext >&5
1064 CPP="${CC-cc} -nologo -E"
1065 cat > conftest.$ac_ext <<EOF
1066 #line 1067 "configure"
1067 #include "confdefs.h"
1071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1072 { (eval echo configure:1073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1074 if test -z "$ac_err"; then
1078 echo "configure: failed program was:" >&5
1079 cat conftest.$ac_ext >&5
1088 ac_cv_prog_CPP="$CPP"
1090 CPP="$ac_cv_prog_CPP"
1092 ac_cv_prog_CPP="$CPP"
1094 echo "$ac_t""$CPP" 1>&6
1097 if test $host != $build; then
1098 ac_tool_prefix=${host_alias}-
1103 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1104 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 if test -n "$RANLIB"; then
1111 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1115 for ac_dir in $ac_dummy; do
1116 test -z "$ac_dir" && ac_dir=.
1117 if test -f $ac_dir/$ac_word; then
1118 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1125 RANLIB="$ac_cv_prog_RANLIB"
1126 if test -n "$RANLIB"; then
1127 echo "$ac_t""$RANLIB" 1>&6
1129 echo "$ac_t""no" 1>&6
1133 if test -z "$ac_cv_prog_RANLIB"; then
1134 if test -n "$ac_tool_prefix"; then
1135 # Extract the first word of "ranlib", so it can be a program name with args.
1136 set dummy ranlib; ac_word=$2
1137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1138 echo "configure:1139: checking for $ac_word" >&5
1139 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 if test -n "$RANLIB"; then
1143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1147 for ac_dir in $ac_dummy; do
1148 test -z "$ac_dir" && ac_dir=.
1149 if test -f $ac_dir/$ac_word; then
1150 ac_cv_prog_RANLIB="ranlib"
1155 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1158 RANLIB="$ac_cv_prog_RANLIB"
1159 if test -n "$RANLIB"; then
1160 echo "$ac_t""$RANLIB" 1>&6
1162 echo "$ac_t""no" 1>&6
1170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1171 set dummy ${ac_tool_prefix}strip; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 if test -n "$STRIP"; then
1178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1182 for ac_dir in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1192 STRIP="$ac_cv_prog_STRIP"
1193 if test -n "$STRIP"; then
1194 echo "$ac_t""$STRIP" 1>&6
1196 echo "$ac_t""no" 1>&6
1200 if test -z "$ac_cv_prog_STRIP"; then
1201 if test -n "$ac_tool_prefix"; then
1202 # Extract the first word of "strip", so it can be a program name with args.
1203 set dummy strip; ac_word=$2
1204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1205 echo "configure:1206: checking for $ac_word" >&5
1206 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 if test -n "$STRIP"; then
1210 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1214 for ac_dir in $ac_dummy; do
1215 test -z "$ac_dir" && ac_dir=.
1216 if test -f $ac_dir/$ac_word; then
1217 ac_cv_prog_STRIP="strip"
1222 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1225 STRIP="$ac_cv_prog_STRIP"
1226 if test -n "$STRIP"; then
1227 echo "$ac_t""$STRIP" 1>&6
1229 echo "$ac_t""no" 1>&6
1238 # Extract the first word of "gmake", so it can be a program name with args.
1239 set dummy gmake; ac_word=$2
1240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1241 echo "configure:1242: checking for $ac_word" >&5
1242 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1247 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1250 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1255 for ac_dir in $ac_dummy; do
1256 test -z "$ac_dir" && ac_dir=.
1257 if test -f $ac_dir/$ac_word; then
1258 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1263 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1267 GMAKE="$ac_cv_path_GMAKE"
1268 if test -n "$GMAKE"; then
1269 echo "$ac_t""$GMAKE" 1>&6
1271 echo "$ac_t""no" 1>&6
1274 if test "x$GMAKE" = "xno"; then
1275 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1276 echo "configure:1277: checking whether GNU make is installed" >&5
1277 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 if make --version | grep -q -i gnu; then
1283 echo "This software needs you to install GNU make to compile properly."
1284 echo "You can get it from http://www.gnu.org/."
1289 echo "$ac_t""$ac_cv_gmake" 1>&6
1295 ALL_LINGUAS="de fr ja no ru nl"
1297 cat >> confdefs.h <<EOF
1298 #define VLC_PACKAGE "$PACKAGE"
1301 cat >> confdefs.h <<EOF
1302 #define VLC_VERSION "$VERSION"
1305 # Extract the first word of "ranlib", so it can be a program name with args.
1306 set dummy ranlib; ac_word=$2
1307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1308 echo "configure:1309: checking for $ac_word" >&5
1309 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 if test -n "$RANLIB"; then
1313 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1317 for ac_dir in $ac_dummy; do
1318 test -z "$ac_dir" && ac_dir=.
1319 if test -f $ac_dir/$ac_word; then
1320 ac_cv_prog_RANLIB="ranlib"
1325 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1328 RANLIB="$ac_cv_prog_RANLIB"
1329 if test -n "$RANLIB"; then
1330 echo "$ac_t""$RANLIB" 1>&6
1332 echo "$ac_t""no" 1>&6
1336 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1337 echo "configure:1338: checking for strerror in -lcposix" >&5
1338 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 ac_save_LIBS="$LIBS"
1343 LIBS="-lcposix $LIBS"
1344 cat > conftest.$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1347 /* Override any gcc2 internal prototype to avoid an error. */
1348 /* We use char because int might match the return type of a gcc2
1349 builtin and then its argument prototype would still apply. */
1356 if { (eval echo configure:1357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1358 eval "ac_cv_lib_$ac_lib_var=yes"
1360 echo "configure: failed program was:" >&5
1361 cat conftest.$ac_ext >&5
1363 eval "ac_cv_lib_$ac_lib_var=no"
1366 LIBS="$ac_save_LIBS"
1369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1370 echo "$ac_t""yes" 1>&6
1371 LIBS="$LIBS -lcposix"
1373 echo "$ac_t""no" 1>&6
1378 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1379 echo "configure:1380: checking for ANSI C header files" >&5
1380 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1392 { (eval echo configure:1393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1394 if test -z "$ac_err"; then
1396 ac_cv_header_stdc=yes
1399 echo "configure: failed program was:" >&5
1400 cat conftest.$ac_ext >&5
1402 ac_cv_header_stdc=no
1406 if test $ac_cv_header_stdc = yes; then
1407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1408 cat > conftest.$ac_ext <<EOF
1409 #line 1410 "configure"
1410 #include "confdefs.h"
1413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1414 egrep "memchr" >/dev/null 2>&1; then
1418 ac_cv_header_stdc=no
1424 if test $ac_cv_header_stdc = yes; then
1425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1426 cat > conftest.$ac_ext <<EOF
1427 #line 1428 "configure"
1428 #include "confdefs.h"
1431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1432 egrep "free" >/dev/null 2>&1; then
1436 ac_cv_header_stdc=no
1442 if test $ac_cv_header_stdc = yes; then
1443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1444 if test "$cross_compiling" = yes; then
1447 cat > conftest.$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1451 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1452 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1454 int main () { int i; for (i = 0; i < 256; i++)
1455 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1459 if { (eval echo configure:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1463 echo "configure: failed program was:" >&5
1464 cat conftest.$ac_ext >&5
1466 ac_cv_header_stdc=no
1474 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1475 if test $ac_cv_header_stdc = yes; then
1476 cat >> confdefs.h <<\EOF
1477 #define STDC_HEADERS 1
1482 echo $ac_n "checking for working const""... $ac_c" 1>&6
1483 echo "configure:1484: checking for working const" >&5
1484 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 cat > conftest.$ac_ext <<EOF
1488 #line 1489 "configure"
1489 #include "confdefs.h"
1493 /* Ultrix mips cc rejects this. */
1494 typedef int charset[2]; const charset x;
1495 /* SunOS 4.1.1 cc rejects this. */
1496 char const *const *ccp;
1498 /* NEC SVR4.0.2 mips cc rejects this. */
1499 struct point {int x, y;};
1500 static struct point const zero = {0,0};
1501 /* AIX XL C 1.02.0.0 rejects this.
1502 It does not let you subtract one const X* pointer from another in an arm
1503 of an if-expression whose if-part is not a constant expression */
1504 const char *g = "string";
1505 ccp = &g + (g ? g-g : 0);
1506 /* HPUX 7.0 cc rejects these. */
1509 ccp = (char const *const *) p;
1510 { /* SCO 3.2v4 cc rejects this. */
1512 char const *s = 0 ? (char *) 0 : (char const *) 0;
1516 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1518 const int *foo = &x[0];
1521 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1522 typedef const int *iptr;
1526 { /* AIX XL C 1.02.0.0 rejects this saying
1527 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1528 struct s { int j; const int *ap[3]; };
1529 struct s *b; b->j = 5;
1531 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1537 if { (eval echo configure:1538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1549 echo "$ac_t""$ac_cv_c_const" 1>&6
1550 if test $ac_cv_c_const = no; then
1551 cat >> confdefs.h <<\EOF
1557 echo $ac_n "checking for inline""... $ac_c" 1>&6
1558 echo "configure:1559: checking for inline" >&5
1559 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1563 for ac_kw in inline __inline__ __inline; do
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1572 if { (eval echo configure:1573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1574 ac_cv_c_inline=$ac_kw; break
1576 echo "configure: failed program was:" >&5
1577 cat conftest.$ac_ext >&5
1584 echo "$ac_t""$ac_cv_c_inline" 1>&6
1585 case "$ac_cv_c_inline" in
1587 no) cat >> confdefs.h <<\EOF
1591 *) cat >> confdefs.h <<EOF
1592 #define inline $ac_cv_c_inline
1597 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1598 echo "configure:1599: checking for off_t" >&5
1599 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 #include <sys/types.h>
1611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1612 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1614 ac_cv_type_off_t=yes
1622 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1623 if test $ac_cv_type_off_t = no; then
1624 cat >> confdefs.h <<\EOF
1630 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1631 echo "configure:1632: checking for size_t" >&5
1632 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 cat > conftest.$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1638 #include <sys/types.h>
1644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1645 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1647 ac_cv_type_size_t=yes
1650 ac_cv_type_size_t=no
1655 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1656 if test $ac_cv_type_size_t = no; then
1657 cat >> confdefs.h <<\EOF
1658 #define size_t unsigned
1663 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1664 # for constant arguments. Useless!
1665 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1666 echo "configure:1667: checking for working alloca.h" >&5
1667 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1675 char *p = alloca(2 * sizeof(int));
1678 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1680 ac_cv_header_alloca_h=yes
1682 echo "configure: failed program was:" >&5
1683 cat conftest.$ac_ext >&5
1685 ac_cv_header_alloca_h=no
1690 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1691 if test $ac_cv_header_alloca_h = yes; then
1692 cat >> confdefs.h <<\EOF
1693 #define HAVE_ALLOCA_H 1
1698 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1699 echo "configure:1700: checking for alloca" >&5
1700 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1708 # define alloca __builtin_alloca
1711 # include <malloc.h>
1712 # define alloca _alloca
1715 # include <alloca.h>
1720 # ifndef alloca /* predefined by HP cc +Olibcalls */
1729 char *p = (char *) alloca(1);
1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1734 ac_cv_func_alloca_works=yes
1736 echo "configure: failed program was:" >&5
1737 cat conftest.$ac_ext >&5
1739 ac_cv_func_alloca_works=no
1744 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1745 if test $ac_cv_func_alloca_works = yes; then
1746 cat >> confdefs.h <<\EOF
1747 #define HAVE_ALLOCA 1
1752 if test $ac_cv_func_alloca_works = no; then
1753 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1754 # that cause trouble. Some versions do not even contain alloca or
1755 # contain a buggy version. If you still want to use their alloca,
1756 # use ar to extract alloca.o from them instead of compiling alloca.c.
1757 ALLOCA=alloca.${ac_objext}
1758 cat >> confdefs.h <<\EOF
1763 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1764 echo "configure:1765: checking whether alloca needs Cray hooks" >&5
1765 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 #if defined(CRAY) && ! defined(CRAY2)
1778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1779 egrep "webecray" >/dev/null 2>&1; then
1790 echo "$ac_t""$ac_cv_os_cray" 1>&6
1791 if test $ac_cv_os_cray = yes; then
1792 for ac_func in _getb67 GETB67 getb67; do
1793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1794 echo "configure:1795: checking for $ac_func" >&5
1795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 /* System header to define __stub macros and hopefully few prototypes,
1802 which can conflict with char $ac_func(); below. */
1804 /* Override any gcc2 internal prototype to avoid an error. */
1805 /* We use char because int might match the return type of a gcc2
1806 builtin and then its argument prototype would still apply. */
1811 /* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1822 if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1824 eval "ac_cv_func_$ac_func=yes"
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 eval "ac_cv_func_$ac_func=no"
1834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1835 echo "$ac_t""yes" 1>&6
1836 cat >> confdefs.h <<EOF
1837 #define CRAY_STACKSEG_END $ac_func
1842 echo "$ac_t""no" 1>&6
1848 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1849 echo "configure:1850: checking stack direction for C alloca" >&5
1850 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 if test "$cross_compiling" = yes; then
1854 ac_cv_c_stack_direction=0
1856 cat > conftest.$ac_ext <<EOF
1857 #line 1858 "configure"
1858 #include "confdefs.h"
1859 find_stack_direction ()
1861 static char *addr = 0;
1866 return find_stack_direction ();
1869 return (&dummy > addr) ? 1 : -1;
1873 exit (find_stack_direction() < 0);
1876 if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1878 ac_cv_c_stack_direction=1
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1883 ac_cv_c_stack_direction=-1
1890 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1891 cat >> confdefs.h <<EOF
1892 #define STACK_DIRECTION $ac_cv_c_stack_direction
1897 for ac_hdr in unistd.h
1899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1901 echo "configure:1902: checking for $ac_hdr" >&5
1902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1911 { (eval echo configure:1912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1913 if test -z "$ac_err"; then
1915 eval "ac_cv_header_$ac_safe=yes"
1918 echo "configure: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1921 eval "ac_cv_header_$ac_safe=no"
1925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1926 echo "$ac_t""yes" 1>&6
1927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1928 cat >> confdefs.h <<EOF
1929 #define $ac_tr_hdr 1
1933 echo "$ac_t""no" 1>&6
1937 for ac_func in getpagesize
1939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1940 echo "configure:1941: checking for $ac_func" >&5
1941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1944 cat > conftest.$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1947 /* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $ac_func(); below. */
1950 /* Override any gcc2 internal prototype to avoid an error. */
1951 /* We use char because int might match the return type of a gcc2
1952 builtin and then its argument prototype would still apply. */
1957 /* The GNU C library defines this for functions which it implements
1958 to always fail with ENOSYS. Some functions are actually named
1959 something starting with __ and the normal name is an alias. */
1960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1970 eval "ac_cv_func_$ac_func=yes"
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1975 eval "ac_cv_func_$ac_func=no"
1980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1981 echo "$ac_t""yes" 1>&6
1982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1983 cat >> confdefs.h <<EOF
1984 #define $ac_tr_func 1
1988 echo "$ac_t""no" 1>&6
1992 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1993 echo "configure:1994: checking for working mmap" >&5
1994 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 if test "$cross_compiling" = yes; then
1998 ac_cv_func_mmap_fixed_mapped=no
2000 cat > conftest.$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2004 /* Thanks to Mike Haertel and Jim Avera for this test.
2005 Here is a matrix of mmap possibilities:
2006 mmap private not fixed
2007 mmap private fixed at somewhere currently unmapped
2008 mmap private fixed at somewhere already mapped
2009 mmap shared not fixed
2010 mmap shared fixed at somewhere currently unmapped
2011 mmap shared fixed at somewhere already mapped
2012 For private mappings, we should verify that changes cannot be read()
2013 back from the file, nor mmap's back from the file at a different
2014 address. (There have been systems where private was not correctly
2015 implemented like the infamous i386 svr4.0, and systems where the
2016 VM page cache was not coherent with the filesystem buffer cache
2017 like early versions of FreeBSD and possibly contemporary NetBSD.)
2018 For shared mappings, we should conversely verify that changes get
2019 propogated back to all the places they're supposed to be.
2021 Grep wants private fixed already mapped.
2022 The main things grep needs to know about mmap are:
2023 * does it exist and is it safe to write into the mmap'd area
2024 * how to use it (BSD variants) */
2025 #include <sys/types.h>
2027 #include <sys/mman.h>
2029 /* This mess was copied from the GNU getpagesize.h. */
2030 #ifndef HAVE_GETPAGESIZE
2031 # ifdef HAVE_UNISTD_H
2032 # include <unistd.h>
2035 /* Assume that all systems that can run configure have sys/param.h. */
2036 # ifndef HAVE_SYS_PARAM_H
2037 # define HAVE_SYS_PARAM_H 1
2040 # ifdef _SC_PAGESIZE
2041 # define getpagesize() sysconf(_SC_PAGESIZE)
2042 # else /* no _SC_PAGESIZE */
2043 # ifdef HAVE_SYS_PARAM_H
2044 # include <sys/param.h>
2045 # ifdef EXEC_PAGESIZE
2046 # define getpagesize() EXEC_PAGESIZE
2047 # else /* no EXEC_PAGESIZE */
2049 # define getpagesize() NBPG * CLSIZE
2052 # endif /* no CLSIZE */
2053 # else /* no NBPG */
2055 # define getpagesize() NBPC
2056 # else /* no NBPC */
2058 # define getpagesize() PAGESIZE
2059 # endif /* PAGESIZE */
2060 # endif /* no NBPC */
2061 # endif /* no NBPG */
2062 # endif /* no EXEC_PAGESIZE */
2063 # else /* no HAVE_SYS_PARAM_H */
2064 # define getpagesize() 8192 /* punt totally */
2065 # endif /* no HAVE_SYS_PARAM_H */
2066 # endif /* no _SC_PAGESIZE */
2068 #endif /* no HAVE_GETPAGESIZE */
2071 extern "C" { void *malloc(unsigned); }
2079 char *data, *data2, *data3;
2083 pagesize = getpagesize();
2086 * First, make a file with some known garbage in it.
2088 data = malloc(pagesize);
2091 for (i = 0; i < pagesize; ++i)
2092 *(data + i) = rand();
2094 fd = creat("conftestmmap", 0600);
2097 if (write(fd, data, pagesize) != pagesize)
2102 * Next, try to mmap the file at a fixed address which
2103 * already has something else allocated at it. If we can,
2104 * also make sure that we see the same garbage.
2106 fd = open("conftestmmap", O_RDWR);
2109 data2 = malloc(2 * pagesize);
2112 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2113 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2114 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2116 for (i = 0; i < pagesize; ++i)
2117 if (*(data + i) != *(data2 + i))
2121 * Finally, make sure that changes to the mapped area
2122 * do not percolate back to the file as seen by read().
2123 * (This is a bug on some variants of i386 svr4.0.)
2125 for (i = 0; i < pagesize; ++i)
2126 *(data2 + i) = *(data2 + i) + 1;
2127 data3 = malloc(pagesize);
2130 if (read(fd, data3, pagesize) != pagesize)
2132 for (i = 0; i < pagesize; ++i)
2133 if (*(data + i) != *(data3 + i))
2136 unlink("conftestmmap");
2141 if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2143 ac_cv_func_mmap_fixed_mapped=yes
2145 echo "configure: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2148 ac_cv_func_mmap_fixed_mapped=no
2155 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2156 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2157 cat >> confdefs.h <<\EOF
2164 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2165 echo "configure:2166: checking whether we are using the GNU C Library 2.1 or newer" >&5
2166 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 cat > conftest.$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2173 #include <features.h>
2174 #ifdef __GNU_LIBRARY__
2175 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2182 egrep "Lucky GNU user" >/dev/null 2>&1; then
2184 ac_cv_gnu_library_2_1=yes
2187 ac_cv_gnu_library_2_1=no
2195 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2197 GLIBC21="$ac_cv_gnu_library_2_1"
2201 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2202 stdlib.h string.h unistd.h sys/param.h
2204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2206 echo "configure:2207: checking for $ac_hdr" >&5
2207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2216 { (eval echo configure:2217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2218 if test -z "$ac_err"; then
2220 eval "ac_cv_header_$ac_safe=yes"
2223 echo "configure: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2226 eval "ac_cv_header_$ac_safe=no"
2230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2233 cat >> confdefs.h <<EOF
2234 #define $ac_tr_hdr 1
2238 echo "$ac_t""no" 1>&6
2242 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2243 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2244 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2247 echo "configure:2248: checking for $ac_func" >&5
2248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2254 /* System header to define __stub macros and hopefully few prototypes,
2255 which can conflict with char $ac_func(); below. */
2257 /* Override any gcc2 internal prototype to avoid an error. */
2258 /* We use char because int might match the return type of a gcc2
2259 builtin and then its argument prototype would still apply. */
2264 /* The GNU C library defines this for functions which it implements
2265 to always fail with ENOSYS. Some functions are actually named
2266 something starting with __ and the normal name is an alias. */
2267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2275 if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2277 eval "ac_cv_func_$ac_func=yes"
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2282 eval "ac_cv_func_$ac_func=no"
2287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2288 echo "$ac_t""yes" 1>&6
2289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2290 cat >> confdefs.h <<EOF
2291 #define $ac_tr_func 1
2295 echo "$ac_t""no" 1>&6
2302 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2303 if test "${with_libiconv_prefix+set}" = set; then
2304 withval="$with_libiconv_prefix"
2306 for dir in `echo "$withval" | tr : ' '`; do
2307 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2308 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2314 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2315 echo "configure:2316: checking for iconv" >&5
2316 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2320 am_cv_func_iconv="no, consider installing GNU libiconv"
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2328 iconv_t cd = iconv_open("","");
2329 iconv(cd,NULL,NULL,NULL,NULL);
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335 am_cv_func_iconv=yes
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2341 if test "$am_cv_func_iconv" != yes; then
2342 am_save_LIBS="$LIBS"
2343 LIBS="$LIBS -liconv"
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2350 iconv_t cd = iconv_open("","");
2351 iconv(cd,NULL,NULL,NULL,NULL);
2355 if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2358 am_cv_func_iconv=yes
2360 echo "configure: failed program was:" >&5
2361 cat conftest.$ac_ext >&5
2364 LIBS="$am_save_LIBS"
2369 echo "$ac_t""$am_cv_func_iconv" 1>&6
2370 if test "$am_cv_func_iconv" = yes; then
2371 cat >> confdefs.h <<\EOF
2372 #define HAVE_ICONV 1
2375 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2376 echo "configure:2377: checking for iconv declaration" >&5
2377 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2381 cat > conftest.$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2391 #if defined(__STDC__) || defined(__cplusplus)
2392 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2401 if { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2403 am_cv_proto_iconv_arg1=""
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2408 am_cv_proto_iconv_arg1="const"
2411 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);"
2414 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2415 echo "$ac_t""${ac_t:-
2416 }$am_cv_proto_iconv" 1>&6
2417 cat >> confdefs.h <<EOF
2418 #define ICONV_CONST $am_cv_proto_iconv_arg1
2423 if test "$am_cv_lib_iconv" = yes; then
2429 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2430 echo "configure:2431: checking for nl_langinfo and CODESET" >&5
2431 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2437 #include <langinfo.h>
2439 char* cs = nl_langinfo(CODESET);
2442 if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2444 am_cv_langinfo_codeset=yes
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2449 am_cv_langinfo_codeset=no
2455 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2456 if test $am_cv_langinfo_codeset = yes; then
2457 cat >> confdefs.h <<\EOF
2458 #define HAVE_LANGINFO_CODESET 1
2463 if test $ac_cv_header_locale_h = yes; then
2464 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2465 echo "configure:2466: checking for LC_MESSAGES" >&5
2466 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 cat > conftest.$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2477 if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2479 am_cv_val_LC_MESSAGES=yes
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2484 am_cv_val_LC_MESSAGES=no
2489 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2490 if test $am_cv_val_LC_MESSAGES = yes; then
2491 cat >> confdefs.h <<\EOF
2492 #define HAVE_LC_MESSAGES 1
2497 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2498 echo "configure:2499: checking whether NLS is requested" >&5
2499 # Check whether --enable-nls or --disable-nls was given.
2500 if test "${enable_nls+set}" = set; then
2501 enableval="$enable_nls"
2507 echo "$ac_t""$USE_NLS" 1>&6
2510 BUILD_INCLUDED_LIBINTL=no
2511 USE_INCLUDED_LIBINTL=no
2514 if test "$USE_NLS" = "yes"; then
2515 cat >> confdefs.h <<\EOF
2516 #define ENABLE_NLS 1
2519 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2520 echo "configure:2521: checking whether included gettext is requested" >&5
2521 # Check whether --with-included-gettext or --without-included-gettext was given.
2522 if test "${with_included_gettext+set}" = set; then
2523 withval="$with_included_gettext"
2524 nls_cv_force_use_gnu_gettext=$withval
2526 nls_cv_force_use_gnu_gettext=no
2529 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2531 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2532 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2538 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2539 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2540 echo "configure:2541: checking for libintl.h" >&5
2541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2547 #include <libintl.h>
2549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2550 { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2552 if test -z "$ac_err"; then
2554 eval "ac_cv_header_$ac_safe=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2560 eval "ac_cv_header_$ac_safe=no"
2564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2565 echo "$ac_t""yes" 1>&6
2566 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2567 echo "configure:2568: checking for GNU gettext in libc" >&5
2568 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2571 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 #include <libintl.h>
2575 extern int _nl_msg_cat_cntr;
2577 bindtextdomain ("", "");
2578 return (int) gettext ("") + _nl_msg_cat_cntr
2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2583 gt_cv_func_gnugettext1_libc=yes
2585 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2588 gt_cv_func_gnugettext1_libc=no
2593 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2595 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2596 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2597 echo "configure:2598: checking for GNU gettext in libintl" >&5
2598 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 gt_save_LIBS="$LIBS"
2602 LIBS="$LIBS -lintl $LIBICONV"
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2606 #include <libintl.h>
2607 extern int _nl_msg_cat_cntr;
2609 bindtextdomain ("", "");
2610 return (int) gettext ("") + _nl_msg_cat_cntr
2613 if { (eval echo configure:2614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2615 gt_cv_func_gnugettext1_libintl=yes
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2620 gt_cv_func_gnugettext1_libintl=no
2623 LIBS="$gt_save_LIBS"
2626 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2629 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2630 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2631 && test "$PACKAGE" != gettext; }; then
2632 cat >> confdefs.h <<\EOF
2633 #define HAVE_GETTEXT 1
2637 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2638 INTLLIBS="-lintl $LIBICONV"
2641 gt_save_LIBS="$LIBS"
2642 LIBS="$LIBS $INTLLIBS"
2643 for ac_func in dcgettext
2645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2646 echo "configure:2647: checking for $ac_func" >&5
2647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 cat > conftest.$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2653 /* System header to define __stub macros and hopefully few prototypes,
2654 which can conflict with char $ac_func(); below. */
2656 /* Override any gcc2 internal prototype to avoid an error. */
2657 /* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2663 /* The GNU C library defines this for functions which it implements
2664 to always fail with ENOSYS. Some functions are actually named
2665 something starting with __ and the normal name is an alias. */
2666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2674 if { (eval echo configure:2675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2676 eval "ac_cv_func_$ac_func=yes"
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2681 eval "ac_cv_func_$ac_func=no"
2686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2687 echo "$ac_t""yes" 1>&6
2688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2689 cat >> confdefs.h <<EOF
2690 #define $ac_tr_func 1
2694 echo "$ac_t""no" 1>&6
2698 LIBS="$gt_save_LIBS"
2700 # Extract the first word of "msgfmt", so it can be a program name with args.
2701 set dummy msgfmt; ac_word=$2
2702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2703 echo "configure:2704: checking for $ac_word" >&5
2704 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2709 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2713 for ac_dir in $PATH; do
2714 test -z "$ac_dir" && ac_dir=.
2715 if test -f $ac_dir/$ac_word; then
2716 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2717 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2723 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2727 MSGFMT="$ac_cv_path_MSGFMT"
2728 if test "$MSGFMT" != ":"; then
2729 echo "$ac_t""$MSGFMT" 1>&6
2731 echo "$ac_t""no" 1>&6
2734 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2735 set dummy gmsgfmt; ac_word=$2
2736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_word" >&5
2738 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2743 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2746 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2751 for ac_dir in $ac_dummy; do
2752 test -z "$ac_dir" && ac_dir=.
2753 if test -f $ac_dir/$ac_word; then
2754 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2759 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2763 GMSGFMT="$ac_cv_path_GMSGFMT"
2764 if test -n "$GMSGFMT"; then
2765 echo "$ac_t""$GMSGFMT" 1>&6
2767 echo "$ac_t""no" 1>&6
2771 # Extract the first word of "xgettext", so it can be a program name with args.
2772 set dummy xgettext; ac_word=$2
2773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2774 echo "configure:2775: checking for $ac_word" >&5
2775 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2780 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2784 for ac_dir in $PATH; do
2785 test -z "$ac_dir" && ac_dir=.
2786 if test -f $ac_dir/$ac_word; then
2787 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2788 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2794 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2798 XGETTEXT="$ac_cv_path_XGETTEXT"
2799 if test "$XGETTEXT" != ":"; then
2800 echo "$ac_t""$XGETTEXT" 1>&6
2802 echo "$ac_t""no" 1>&6
2810 echo "$ac_t""no" 1>&6
2814 if test "$CATOBJEXT" = "NONE"; then
2815 nls_cv_use_gnu_gettext=yes
2819 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2820 INTLOBJS="\$(GETTOBJS)"
2821 # Extract the first word of "msgfmt", so it can be a program name with args.
2822 set dummy msgfmt; ac_word=$2
2823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2824 echo "configure:2825: checking for $ac_word" >&5
2825 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2830 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2834 for ac_dir in $PATH; do
2835 test -z "$ac_dir" && ac_dir=.
2836 if test -f $ac_dir/$ac_word; then
2837 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2838 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2844 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2848 MSGFMT="$ac_cv_path_MSGFMT"
2849 if test "$MSGFMT" != ":"; then
2850 echo "$ac_t""$MSGFMT" 1>&6
2852 echo "$ac_t""no" 1>&6
2855 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2856 set dummy gmsgfmt; ac_word=$2
2857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2858 echo "configure:2859: checking for $ac_word" >&5
2859 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2864 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2867 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2872 for ac_dir in $ac_dummy; do
2873 test -z "$ac_dir" && ac_dir=.
2874 if test -f $ac_dir/$ac_word; then
2875 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2880 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2884 GMSGFMT="$ac_cv_path_GMSGFMT"
2885 if test -n "$GMSGFMT"; then
2886 echo "$ac_t""$GMSGFMT" 1>&6
2888 echo "$ac_t""no" 1>&6
2891 # Extract the first word of "xgettext", so it can be a program name with args.
2892 set dummy xgettext; ac_word=$2
2893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2894 echo "configure:2895: checking for $ac_word" >&5
2895 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2900 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2904 for ac_dir in $PATH; do
2905 test -z "$ac_dir" && ac_dir=.
2906 if test -f $ac_dir/$ac_word; then
2907 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2908 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2914 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2918 XGETTEXT="$ac_cv_path_XGETTEXT"
2919 if test "$XGETTEXT" != ":"; then
2920 echo "$ac_t""$XGETTEXT" 1>&6
2922 echo "$ac_t""no" 1>&6
2926 BUILD_INCLUDED_LIBINTL=yes
2927 USE_INCLUDED_LIBINTL=yes
2929 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2930 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2933 if test "$GMSGFMT" != ":"; then
2934 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2937 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2942 if test "$XGETTEXT" != ":"; then
2943 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2946 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2956 if test "$PACKAGE" = gettext; then
2957 BUILD_INCLUDED_LIBINTL=yes
2960 for ac_prog in bison
2962 # Extract the first word of "$ac_prog", so it can be a program name with args.
2963 set dummy $ac_prog; ac_word=$2
2964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2965 echo "configure:2966: checking for $ac_word" >&5
2966 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 if test -n "$INTLBISON"; then
2970 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2974 for ac_dir in $ac_dummy; do
2975 test -z "$ac_dir" && ac_dir=.
2976 if test -f $ac_dir/$ac_word; then
2977 ac_cv_prog_INTLBISON="$ac_prog"
2984 INTLBISON="$ac_cv_prog_INTLBISON"
2985 if test -n "$INTLBISON"; then
2986 echo "$ac_t""$INTLBISON" 1>&6
2988 echo "$ac_t""no" 1>&6
2991 test -n "$INTLBISON" && break
2994 if test -z "$INTLBISON"; then
2997 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2998 echo "configure:2999: checking version of bison" >&5
2999 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3000 case $ac_prog_version in
3001 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3002 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3003 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3004 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3006 echo "$ac_t""$ac_prog_version" 1>&6
3008 if test $ac_verc_fail = yes; then
3012 for lang in $ALL_LINGUAS; do
3013 GMOFILES="$GMOFILES $lang.gmo"
3014 POFILES="$POFILES $lang.po"
3028 nls_cv_header_libgt=
3040 if test "x$CATOBJEXT" != "x"; then
3041 if test "x$ALL_LINGUAS" = "x"; then
3044 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3045 echo "configure:3046: checking for catalogs to be installed" >&5
3047 for presentlang in $ALL_LINGUAS; do
3049 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3050 # Use the presentlang catalog if desiredlang is
3051 # a. equal to presentlang, or
3052 # b. a variant of presentlang (because in this case,
3053 # presentlang can be used as a fallback for messages
3054 # which are not translated in the desiredlang catalog).
3055 case "$desiredlang" in
3056 "$presentlang"*) useit=yes;;
3059 if test $useit = yes; then
3060 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3063 LINGUAS=$NEW_LINGUAS
3064 echo "$ac_t""$LINGUAS" 1>&6
3067 if test -n "$LINGUAS"; then
3068 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3073 if test -n "$ac_aux_dir"; then
3074 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3076 if test -z "$MKINSTALLDIRS"; then
3077 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3081 INTL_LIBTOOL_SUFFIX_PREFIX=
3085 # Find a good install program. We prefer a C program (faster),
3086 # so one script is as good as another. But avoid the broken or
3087 # incompatible versions:
3088 # SysV /etc/install, /usr/sbin/install
3089 # SunOS /usr/etc/install
3090 # IRIX /sbin/install
3092 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3093 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3094 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3095 # ./install, which can be erroneously created by make from ./install.sh.
3096 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3097 echo "configure:3098: checking for a BSD compatible install" >&5
3098 if test -z "$INSTALL"; then
3099 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3102 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3103 for ac_dir in $PATH; do
3104 # Account for people who put trailing slashes in PATH elements.
3106 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3108 # OSF1 and SCO ODT 3.0 have their own names for install.
3109 # Don't use installbsd from OSF since it installs stuff as root
3111 for ac_prog in ginstall scoinst install; do
3112 if test -f $ac_dir/$ac_prog; then
3113 if test $ac_prog = install &&
3114 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3115 # AIX install. It has an incompatible calling convention.
3118 ac_cv_path_install="$ac_dir/$ac_prog -c"
3129 if test "${ac_cv_path_install+set}" = set; then
3130 INSTALL="$ac_cv_path_install"
3132 # As a last resort, use the slow shell script. We don't cache a
3133 # path for INSTALL within a source directory, because that will
3134 # break other packages using the cache if that directory is
3135 # removed, or if the path is relative.
3136 INSTALL="$ac_install_sh"
3139 echo "$ac_t""$INSTALL" 1>&6
3141 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3142 # It thinks the first close brace ends the variable substitution.
3143 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3145 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3147 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3150 case x"${target_os}" in
3159 save_CFLAGS="${save_CFLAGS} -pthread"
3160 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3161 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3165 save_CFLAGS="${save_CFLAGS} -pthread"
3169 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3173 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3174 set dummy ${ac_tool_prefix}windres; ac_word=$2
3175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3176 echo "configure:3177: checking for $ac_word" >&5
3177 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 if test -n "$WINDRES"; then
3181 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3185 for ac_dir in $ac_dummy; do
3186 test -z "$ac_dir" && ac_dir=.
3187 if test -f $ac_dir/$ac_word; then
3188 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3195 WINDRES="$ac_cv_prog_WINDRES"
3196 if test -n "$WINDRES"; then
3197 echo "$ac_t""$WINDRES" 1>&6
3199 echo "$ac_t""no" 1>&6
3203 if test -z "$ac_cv_prog_WINDRES"; then
3204 if test -n "$ac_tool_prefix"; then
3205 # Extract the first word of "windres", so it can be a program name with args.
3206 set dummy windres; ac_word=$2
3207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3208 echo "configure:3209: checking for $ac_word" >&5
3209 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3212 if test -n "$WINDRES"; then
3213 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3217 for ac_dir in $ac_dummy; do
3218 test -z "$ac_dir" && ac_dir=.
3219 if test -f $ac_dir/$ac_word; then
3220 ac_cv_prog_WINDRES="windres"
3225 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3228 WINDRES="$ac_cv_prog_WINDRES"
3229 if test -n "$WINDRES"; then
3230 echo "$ac_t""$WINDRES" 1>&6
3232 echo "$ac_t""no" 1>&6
3240 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3241 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3242 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3243 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3244 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3248 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3249 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3253 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3254 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3255 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3256 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3257 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3264 if test x"${SYS}" = xmingw32
3266 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3268 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3271 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3273 for ac_func in gettimeofday select strerror strtod strtol isatty usleep vasprintf swab sigrelse getpwuid memalign posix_memalign
3275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3276 echo "configure:3277: checking for $ac_func" >&5
3277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 /* System header to define __stub macros and hopefully few prototypes,
3284 which can conflict with char $ac_func(); below. */
3286 /* Override any gcc2 internal prototype to avoid an error. */
3287 /* We use char because int might match the return type of a gcc2
3288 builtin and then its argument prototype would still apply. */
3293 /* The GNU C library defines this for functions which it implements
3294 to always fail with ENOSYS. Some functions are actually named
3295 something starting with __ and the normal name is an alias. */
3296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3304 if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3306 eval "ac_cv_func_$ac_func=yes"
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3311 eval "ac_cv_func_$ac_func=no"
3316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3317 echo "$ac_t""yes" 1>&6
3318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3319 cat >> confdefs.h <<EOF
3320 #define $ac_tr_func 1
3324 echo "$ac_t""no" 1>&6
3329 echo $ac_n "checking for connect""... $ac_c" 1>&6
3330 echo "configure:3331: checking for connect" >&5
3331 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3334 cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 /* System header to define __stub macros and hopefully few prototypes,
3338 which can conflict with char connect(); below. */
3340 /* Override any gcc2 internal prototype to avoid an error. */
3341 /* We use char because int might match the return type of a gcc2
3342 builtin and then its argument prototype would still apply. */
3347 /* The GNU C library defines this for functions which it implements
3348 to always fail with ENOSYS. Some functions are actually named
3349 something starting with __ and the normal name is an alias. */
3350 #if defined (__stub_connect) || defined (__stub___connect)
3358 if { (eval echo configure:3359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3360 eval "ac_cv_func_connect=yes"
3362 echo "configure: failed program was:" >&5
3363 cat conftest.$ac_ext >&5
3365 eval "ac_cv_func_connect=no"
3370 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3374 echo "$ac_t""no" 1>&6
3376 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3377 echo "configure:3378: checking for connect in -lsocket" >&5
3378 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 ac_save_LIBS="$LIBS"
3383 LIBS="-lsocket $LIBS"
3384 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 /* Override any gcc2 internal prototype to avoid an error. */
3388 /* We use char because int might match the return type of a gcc2
3389 builtin and then its argument prototype would still apply. */
3396 if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3398 eval "ac_cv_lib_$ac_lib_var=yes"
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3403 eval "ac_cv_lib_$ac_lib_var=no"
3406 LIBS="$ac_save_LIBS"
3409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3410 echo "$ac_t""yes" 1>&6
3411 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3412 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3415 echo "$ac_t""no" 1>&6
3420 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3421 echo "configure:3422: checking for gethostbyname" >&5
3422 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 cat > conftest.$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3428 /* System header to define __stub macros and hopefully few prototypes,
3429 which can conflict with char gethostbyname(); below. */
3431 /* Override any gcc2 internal prototype to avoid an error. */
3432 /* We use char because int might match the return type of a gcc2
3433 builtin and then its argument prototype would still apply. */
3434 char gethostbyname();
3438 /* The GNU C library defines this for functions which it implements
3439 to always fail with ENOSYS. Some functions are actually named
3440 something starting with __ and the normal name is an alias. */
3441 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3449 if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3451 eval "ac_cv_func_gethostbyname=yes"
3453 echo "configure: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3456 eval "ac_cv_func_gethostbyname=no"
3461 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3462 echo "$ac_t""yes" 1>&6
3465 echo "$ac_t""no" 1>&6
3467 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3468 echo "configure:3469: checking for gethostbyname in -lnsl" >&5
3469 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 ac_save_LIBS="$LIBS"
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 /* Override any gcc2 internal prototype to avoid an error. */
3479 /* We use char because int might match the return type of a gcc2
3480 builtin and then its argument prototype would still apply. */
3481 char gethostbyname();
3487 if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3489 eval "ac_cv_lib_$ac_lib_var=yes"
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3494 eval "ac_cv_lib_$ac_lib_var=no"
3497 LIBS="$ac_save_LIBS"
3500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3501 echo "$ac_t""yes" 1>&6
3502 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3504 echo "$ac_t""no" 1>&6
3510 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3511 echo "configure:3512: checking for gethostbyname" >&5
3512 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 cat > conftest.$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 /* System header to define __stub macros and hopefully few prototypes,
3519 which can conflict with char gethostbyname(); below. */
3521 /* Override any gcc2 internal prototype to avoid an error. */
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3524 char gethostbyname();
3528 /* The GNU C library defines this for functions which it implements
3529 to always fail with ENOSYS. Some functions are actually named
3530 something starting with __ and the normal name is an alias. */
3531 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3539 if { (eval echo configure:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3541 eval "ac_cv_func_gethostbyname=yes"
3543 echo "configure: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3546 eval "ac_cv_func_gethostbyname=no"
3551 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3552 echo "$ac_t""yes" 1>&6
3555 echo "$ac_t""no" 1>&6
3557 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3558 echo "configure:3559: checking for gethostbyname in -lbind" >&5
3559 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3563 ac_save_LIBS="$LIBS"
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 /* Override any gcc2 internal prototype to avoid an error. */
3569 /* We use char because int might match the return type of a gcc2
3570 builtin and then its argument prototype would still apply. */
3571 char gethostbyname();
3577 if { (eval echo configure:3578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3579 eval "ac_cv_lib_$ac_lib_var=yes"
3581 echo "configure: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3584 eval "ac_cv_lib_$ac_lib_var=no"
3587 LIBS="$ac_save_LIBS"
3590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3592 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3594 echo "$ac_t""no" 1>&6
3600 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3601 echo "configure:3602: checking for nanosleep" >&5
3602 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3605 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 /* System header to define __stub macros and hopefully few prototypes,
3609 which can conflict with char nanosleep(); below. */
3611 /* Override any gcc2 internal prototype to avoid an error. */
3612 /* We use char because int might match the return type of a gcc2
3613 builtin and then its argument prototype would still apply. */
3618 /* The GNU C library defines this for functions which it implements
3619 to always fail with ENOSYS. Some functions are actually named
3620 something starting with __ and the normal name is an alias. */
3621 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3629 if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3631 eval "ac_cv_func_nanosleep=yes"
3633 echo "configure: failed program was:" >&5
3634 cat conftest.$ac_ext >&5
3636 eval "ac_cv_func_nanosleep=no"
3641 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3642 echo "$ac_t""yes" 1>&6
3645 echo "$ac_t""no" 1>&6
3647 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3648 echo "configure:3649: checking for nanosleep in -lrt" >&5
3649 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 ac_save_LIBS="$LIBS"
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3667 if { (eval echo configure:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3669 eval "ac_cv_lib_$ac_lib_var=yes"
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3674 eval "ac_cv_lib_$ac_lib_var=no"
3677 LIBS="$ac_save_LIBS"
3680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3681 echo "$ac_t""yes" 1>&6
3682 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3684 echo "$ac_t""no" 1>&6
3686 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3687 echo "configure:3688: checking for nanosleep in -lposix4" >&5
3688 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 ac_save_LIBS="$LIBS"
3693 LIBS="-lposix4 $LIBS"
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3697 /* Override any gcc2 internal prototype to avoid an error. */
3698 /* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
3706 if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3708 eval "ac_cv_lib_$ac_lib_var=yes"
3710 echo "configure: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3713 eval "ac_cv_lib_$ac_lib_var=no"
3716 LIBS="$ac_save_LIBS"
3719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3720 echo "$ac_t""yes" 1>&6
3721 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3723 echo "$ac_t""no" 1>&6
3732 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3733 echo "configure:3734: checking for inet_aton" >&5
3734 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3737 cat > conftest.$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3740 /* System header to define __stub macros and hopefully few prototypes,
3741 which can conflict with char inet_aton(); below. */
3743 /* Override any gcc2 internal prototype to avoid an error. */
3744 /* We use char because int might match the return type of a gcc2
3745 builtin and then its argument prototype would still apply. */
3750 /* The GNU C library defines this for functions which it implements
3751 to always fail with ENOSYS. Some functions are actually named
3752 something starting with __ and the normal name is an alias. */
3753 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3761 if { (eval echo configure:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3763 eval "ac_cv_func_inet_aton=yes"
3765 echo "configure: failed program was:" >&5
3766 cat conftest.$ac_ext >&5
3768 eval "ac_cv_func_inet_aton=no"
3773 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3774 echo "$ac_t""yes" 1>&6
3777 echo "$ac_t""no" 1>&6
3779 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3780 echo "configure:3781: checking for inet_aton in -lresolv" >&5
3781 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 ac_save_LIBS="$LIBS"
3786 LIBS="-lresolv $LIBS"
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 /* Override any gcc2 internal prototype to avoid an error. */
3791 /* We use char because int might match the return type of a gcc2
3792 builtin and then its argument prototype would still apply. */
3799 if { (eval echo configure:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3801 eval "ac_cv_lib_$ac_lib_var=yes"
3803 echo "configure: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3806 eval "ac_cv_lib_$ac_lib_var=no"
3809 LIBS="$ac_save_LIBS"
3812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3813 echo "$ac_t""yes" 1>&6
3814 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3816 echo "$ac_t""no" 1>&6
3822 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3823 echo "configure:3824: checking for textdomain" >&5
3824 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3825 echo $ac_n "(cached) $ac_c" 1>&6
3827 cat > conftest.$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3830 /* System header to define __stub macros and hopefully few prototypes,
3831 which can conflict with char textdomain(); below. */
3833 /* Override any gcc2 internal prototype to avoid an error. */
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3840 /* The GNU C library defines this for functions which it implements
3841 to always fail with ENOSYS. Some functions are actually named
3842 something starting with __ and the normal name is an alias. */
3843 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3851 if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3853 eval "ac_cv_func_textdomain=yes"
3855 echo "configure: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3858 eval "ac_cv_func_textdomain=no"
3863 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3864 echo "$ac_t""yes" 1>&6
3867 echo "$ac_t""no" 1>&6
3869 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3870 echo "configure:3871: checking for textdomain in -lintl" >&5
3871 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3875 ac_save_LIBS="$LIBS"
3877 cat > conftest.$ac_ext <<EOF
3878 #line 3879 "configure"
3879 #include "confdefs.h"
3880 /* Override any gcc2 internal prototype to avoid an error. */
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3889 if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3891 eval "ac_cv_lib_$ac_lib_var=yes"
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3896 eval "ac_cv_lib_$ac_lib_var=no"
3899 LIBS="$ac_save_LIBS"
3902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3903 echo "$ac_t""yes" 1>&6
3904 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
3906 echo "$ac_t""no" 1>&6
3914 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3915 echo "configure:3916: checking for getopt_long" >&5
3916 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 cat > conftest.$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3922 /* System header to define __stub macros and hopefully few prototypes,
3923 which can conflict with char getopt_long(); below. */
3925 /* Override any gcc2 internal prototype to avoid an error. */
3926 /* We use char because int might match the return type of a gcc2
3927 builtin and then its argument prototype would still apply. */
3932 /* The GNU C library defines this for functions which it implements
3933 to always fail with ENOSYS. Some functions are actually named
3934 something starting with __ and the normal name is an alias. */
3935 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3943 if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3945 eval "ac_cv_func_getopt_long=yes"
3947 echo "configure: failed program was:" >&5
3948 cat conftest.$ac_ext >&5
3950 eval "ac_cv_func_getopt_long=no"
3955 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3956 echo "$ac_t""yes" 1>&6
3957 cat >> confdefs.h <<\EOF
3958 #define HAVE_GETOPT_LONG 1
3962 echo "$ac_t""no" 1>&6
3963 # FreeBSD has a gnugetopt library for this:
3964 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3965 echo "configure:3966: checking for getopt_long in -lgnugetopt" >&5
3966 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 ac_save_LIBS="$LIBS"
3971 LIBS="-lgnugetopt $LIBS"
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 /* Override any gcc2 internal prototype to avoid an error. */
3976 /* We use char because int might match the return type of a gcc2
3977 builtin and then its argument prototype would still apply. */
3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3986 eval "ac_cv_lib_$ac_lib_var=yes"
3988 echo "configure: failed program was:" >&5
3989 cat conftest.$ac_ext >&5
3991 eval "ac_cv_lib_$ac_lib_var=no"
3994 LIBS="$ac_save_LIBS"
3997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3998 echo "$ac_t""yes" 1>&6
3999 cat >> confdefs.h <<\EOF
4000 #define HAVE_GETOPT_LONG 1
4002 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4004 echo "$ac_t""no" 1>&6
4011 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4012 echo "configure:4013: checking return type of signal handlers" >&5
4013 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4016 cat > conftest.$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4019 #include <sys/types.h>
4025 extern "C" void (*signal (int, void (*)(int)))(int);
4027 void (*signal ()) ();
4034 if { (eval echo configure:4035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4036 ac_cv_type_signal=void
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4041 ac_cv_type_signal=int
4046 echo "$ac_t""$ac_cv_type_signal" 1>&6
4047 cat >> confdefs.h <<EOF
4048 #define RETSIGTYPE $ac_cv_type_signal
4052 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4053 echo "configure:4054: checking for dlopen in -ldl" >&5
4054 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4058 ac_save_LIBS="$LIBS"
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 /* Override any gcc2 internal prototype to avoid an error. */
4064 /* We use char because int might match the return type of a gcc2
4065 builtin and then its argument prototype would still apply. */
4072 if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4074 eval "ac_cv_lib_$ac_lib_var=yes"
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4079 eval "ac_cv_lib_$ac_lib_var=no"
4082 LIBS="$ac_save_LIBS"
4085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4086 echo "$ac_t""yes" 1>&6
4087 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4089 echo "$ac_t""no" 1>&6
4092 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4093 echo "configure:4094: checking for cos in -lm" >&5
4094 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 ac_save_LIBS="$LIBS"
4100 cat > conftest.$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4112 if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4114 eval "ac_cv_lib_$ac_lib_var=yes"
4116 echo "configure: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4119 eval "ac_cv_lib_$ac_lib_var=no"
4122 LIBS="$ac_save_LIBS"
4125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4126 echo "$ac_t""yes" 1>&6
4127 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4128 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4130 echo "$ac_t""no" 1>&6
4133 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4134 echo "configure:4135: checking for pow in -lm" >&5
4135 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 ac_save_LIBS="$LIBS"
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 /* Override any gcc2 internal prototype to avoid an error. */
4145 /* We use char because int might match the return type of a gcc2
4146 builtin and then its argument prototype would still apply. */
4153 if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4155 eval "ac_cv_lib_$ac_lib_var=yes"
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4160 eval "ac_cv_lib_$ac_lib_var=no"
4163 LIBS="$ac_save_LIBS"
4166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
4168 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4169 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4170 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4171 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4174 echo "$ac_t""no" 1>&6
4179 if test "x${THREAD_LIB}" = xerror; then
4180 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4181 echo "configure:4182: checking for pthread_attr_init in -lpthread" >&5
4182 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 ac_save_LIBS="$LIBS"
4187 LIBS="-lpthread $LIBS"
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 /* Override any gcc2 internal prototype to avoid an error. */
4192 /* We use char because int might match the return type of a gcc2
4193 builtin and then its argument prototype would still apply. */
4194 char pthread_attr_init();
4200 if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4202 eval "ac_cv_lib_$ac_lib_var=yes"
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4207 eval "ac_cv_lib_$ac_lib_var=no"
4210 LIBS="$ac_save_LIBS"
4213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4214 echo "$ac_t""yes" 1>&6
4215 THREAD_LIB="-lpthread"
4217 echo "$ac_t""no" 1>&6
4221 if test "x${THREAD_LIB}" = xerror; then
4222 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4223 echo "configure:4224: checking for pthread_attr_init in -lpthreads" >&5
4224 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 ac_save_LIBS="$LIBS"
4229 LIBS="-lpthreads $LIBS"
4230 cat > conftest.$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4233 /* Override any gcc2 internal prototype to avoid an error. */
4234 /* We use char because int might match the return type of a gcc2
4235 builtin and then its argument prototype would still apply. */
4236 char pthread_attr_init();
4242 if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4244 eval "ac_cv_lib_$ac_lib_var=yes"
4246 echo "configure: failed program was:" >&5
4247 cat conftest.$ac_ext >&5
4249 eval "ac_cv_lib_$ac_lib_var=no"
4252 LIBS="$ac_save_LIBS"
4255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4256 echo "$ac_t""yes" 1>&6
4257 THREAD_LIB="-lpthreads"
4259 echo "$ac_t""no" 1>&6
4263 if test "x${THREAD_LIB}" = xerror; then
4264 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4265 echo "configure:4266: checking for pthread_attr_init in -lc_r" >&5
4266 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 ac_save_LIBS="$LIBS"
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 /* Override any gcc2 internal prototype to avoid an error. */
4276 /* We use char because int might match the return type of a gcc2
4277 builtin and then its argument prototype would still apply. */
4278 char pthread_attr_init();
4284 if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4286 eval "ac_cv_lib_$ac_lib_var=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4291 eval "ac_cv_lib_$ac_lib_var=no"
4294 LIBS="$ac_save_LIBS"
4297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4298 echo "$ac_t""yes" 1>&6
4301 echo "$ac_t""no" 1>&6
4305 if test "x${THREAD_LIB}" = xerror; then
4306 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4307 echo "configure:4308: checking for pthread_attr_init" >&5
4308 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 cat > conftest.$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4314 /* System header to define __stub macros and hopefully few prototypes,
4315 which can conflict with char pthread_attr_init(); below. */
4317 /* Override any gcc2 internal prototype to avoid an error. */
4318 /* We use char because int might match the return type of a gcc2
4319 builtin and then its argument prototype would still apply. */
4320 char pthread_attr_init();
4324 /* The GNU C library defines this for functions which it implements
4325 to always fail with ENOSYS. Some functions are actually named
4326 something starting with __ and the normal name is an alias. */
4327 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4330 pthread_attr_init();
4335 if { (eval echo configure:4336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4337 eval "ac_cv_func_pthread_attr_init=yes"
4339 echo "configure: failed program was:" >&5
4340 cat conftest.$ac_ext >&5
4342 eval "ac_cv_func_pthread_attr_init=no"
4347 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4351 echo "$ac_t""no" 1>&6
4357 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4358 echo "configure:4359: checking for cthread_fork in -lthreads" >&5
4359 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 ac_save_LIBS="$LIBS"
4364 LIBS="-lthreads $LIBS"
4365 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 /* Override any gcc2 internal prototype to avoid an error. */
4369 /* We use char because int might match the return type of a gcc2
4370 builtin and then its argument prototype would still apply. */
4371 char cthread_fork();
4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4379 eval "ac_cv_lib_$ac_lib_var=yes"
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4384 eval "ac_cv_lib_$ac_lib_var=no"
4387 LIBS="$ac_save_LIBS"
4390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 THREAD_LIB="-lthreads"
4394 echo "$ac_t""no" 1>&6
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4401 #include <pthread.h>
4403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4404 egrep "pthread_cond_t" >/dev/null 2>&1; then
4407 cat >> confdefs.h <<\EOF
4408 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4414 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 #include <strings.h>
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 egrep "strncasecmp" >/dev/null 2>&1; then
4423 cat >> confdefs.h <<\EOF
4424 #define STRNCASECMP_IN_STRINGS_H 1
4431 for ac_hdr in getopt.h strings.h
4433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4435 echo "configure:4436: checking for $ac_hdr" >&5
4436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4437 echo $ac_n "(cached) $ac_c" 1>&6
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4445 { (eval echo configure:4446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4447 if test -z "$ac_err"; then
4449 eval "ac_cv_header_$ac_safe=yes"
4452 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4455 eval "ac_cv_header_$ac_safe=no"
4459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4462 cat >> confdefs.h <<EOF
4463 #define $ac_tr_hdr 1
4467 echo "$ac_t""no" 1>&6
4471 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4475 echo "configure:4476: checking for $ac_hdr" >&5
4476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4479 cat > conftest.$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4485 { (eval echo configure:4486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4487 if test -z "$ac_err"; then
4489 eval "ac_cv_header_$ac_safe=yes"
4492 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4495 eval "ac_cv_header_$ac_safe=no"
4499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4502 cat >> confdefs.h <<EOF
4503 #define $ac_tr_hdr 1
4507 echo "$ac_t""no" 1>&6
4511 for ac_hdr in dlfcn.h image.h
4513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4515 echo "configure:4516: checking for $ac_hdr" >&5
4516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4525 { (eval echo configure:4526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4527 if test -z "$ac_err"; then
4529 eval "ac_cv_header_$ac_safe=yes"
4532 echo "configure: failed program was:" >&5
4533 cat conftest.$ac_ext >&5
4535 eval "ac_cv_header_$ac_safe=no"
4539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4542 cat >> confdefs.h <<EOF
4543 #define $ac_tr_hdr 1
4547 echo "$ac_t""no" 1>&6
4551 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4555 echo "configure:4556: checking for $ac_hdr" >&5
4556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4565 { (eval echo configure:4566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4567 if test -z "$ac_err"; then
4569 eval "ac_cv_header_$ac_safe=yes"
4572 echo "configure: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4575 eval "ac_cv_header_$ac_safe=no"
4579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4580 echo "$ac_t""yes" 1>&6
4581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4582 cat >> confdefs.h <<EOF
4583 #define $ac_tr_hdr 1
4587 echo "$ac_t""no" 1>&6
4591 for ac_hdr in machine/param.h sys/shm.h
4593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4595 echo "configure:4596: checking for $ac_hdr" >&5
4596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4605 { (eval echo configure:4606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4607 if test -z "$ac_err"; then
4609 eval "ac_cv_header_$ac_safe=yes"
4612 echo "configure: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4615 eval "ac_cv_header_$ac_safe=no"
4619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4620 echo "$ac_t""yes" 1>&6
4621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4622 cat >> confdefs.h <<EOF
4623 #define $ac_tr_hdr 1
4627 echo "$ac_t""no" 1>&6
4631 for ac_hdr in linux/version.h
4633 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4634 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4635 echo "configure:4636: checking for $ac_hdr" >&5
4636 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4639 cat > conftest.$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4645 { (eval echo configure:4646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4647 if test -z "$ac_err"; then
4649 eval "ac_cv_header_$ac_safe=yes"
4652 echo "configure: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4655 eval "ac_cv_header_$ac_safe=no"
4659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4660 echo "$ac_t""yes" 1>&6
4661 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4662 cat >> confdefs.h <<EOF
4663 #define $ac_tr_hdr 1
4667 echo "$ac_t""no" 1>&6
4672 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4673 echo "configure:4674: checking whether time.h and sys/time.h may both be included" >&5
4674 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <sys/types.h>
4681 #include <sys/time.h>
4687 if { (eval echo configure:4688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4689 ac_cv_header_time=yes
4691 echo "configure: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4694 ac_cv_header_time=no
4699 echo "$ac_t""$ac_cv_header_time" 1>&6
4700 if test $ac_cv_header_time = yes; then
4701 cat >> confdefs.h <<\EOF
4702 #define TIME_WITH_SYS_TIME 1
4708 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4712 echo "configure:4713: checking for $ac_hdr" >&5
4713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 cat > conftest.$ac_ext <<EOF
4717 #line 4718 "configure"
4718 #include "confdefs.h"
4721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4722 { (eval echo configure:4723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4724 if test -z "$ac_err"; then
4726 eval "ac_cv_header_$ac_safe=yes"
4729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4732 eval "ac_cv_header_$ac_safe=no"
4736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4737 echo "$ac_t""yes" 1>&6
4738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4739 cat >> confdefs.h <<EOF
4740 #define $ac_tr_hdr 1
4744 echo "$ac_t""no" 1>&6
4749 if test x$SYS != xmingw32
4751 if test x$x_includes = xNONE; then
4752 x_includes=/usr/X11R6/include
4754 if test x$x_libraries = xNONE; then
4755 x_libraries=/usr/X11R6/lib
4757 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4758 for ac_hdr in X11/extensions/dpms.h
4760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4762 echo "configure:4763: checking for $ac_hdr" >&5
4763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4764 echo $ac_n "(cached) $ac_c" 1>&6
4766 cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4772 { (eval echo configure:4773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4774 if test -z "$ac_err"; then
4776 eval "ac_cv_header_$ac_safe=yes"
4779 echo "configure: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4782 eval "ac_cv_header_$ac_safe=no"
4786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4787 echo "$ac_t""yes" 1>&6
4788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4789 cat >> confdefs.h <<EOF
4790 #define $ac_tr_hdr 1
4793 cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4796 #include <X11/extensions/dpms.h>
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799 egrep "DPMSInfo" >/dev/null 2>&1; then
4802 cat >> confdefs.h <<\EOF
4803 #define DPMSINFO_IN_DPMS_H 1
4812 echo "$ac_t""no" 1>&6
4816 CPPFLAGS="$save_CPPFLAGS"
4819 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4820 echo "configure:4821: checking for ntohl in sys/param.h" >&5
4821 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4824 CFLAGS="${save_CFLAGS} -Wall -Werror"
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4828 #include <sys/param.h>
4830 void foo() { int meuh; ntohl(meuh); }
4833 if { (eval echo configure:4834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4835 ac_cv_c_ntohl_sys_param_h=yes
4837 echo "configure: failed program was:" >&5
4838 cat conftest.$ac_ext >&5
4840 ac_cv_c_ntohl_sys_param_h=no
4845 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4846 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4847 cat >> confdefs.h <<\EOF
4848 #define NTOHL_IN_SYS_PARAM_H 1
4853 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4854 echo "configure:4855: checking if \$CC accepts -finline-limit" >&5
4855 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4859 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4867 if { (eval echo configure:4868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4869 ac_cv_c_inline_limit=yes
4871 echo "configure: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4874 ac_cv_c_inline_limit=no
4879 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4880 if test x"$ac_cv_c_inline_limit" != x"no"; then
4881 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4884 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4885 echo "configure:4886: checking if \$CC accepts -Wall -Winline" >&5
4886 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 CFLAGS="${save_CFLAGS} -Wall -Winline"
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4898 if { (eval echo configure:4899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4900 ac_cv_c_Wall_Winline=yes
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4905 ac_cv_c_Wall_Winline=no
4910 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4911 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4912 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4914 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4915 echo "configure:4916: checking if \$CC accepts -wall -winline" >&5
4916 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4919 CFLAGS="${save_CFLAGS} -wall -winline"
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4928 if { (eval echo configure:4929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4930 ac_cv_c_wall_winline=yes
4932 echo "configure: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4935 ac_cv_c_wall_winline=no
4940 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4941 if test x"$ac_cv_c_wall_winline" != x"no"; then
4942 save_CFLAGS="${save_CFLAGS} -wall -winline"
4946 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4947 echo "configure:4948: checking if \$CC accepts -pipe" >&5
4948 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4951 CFLAGS="${save_CFLAGS} -pipe"
4952 cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4960 if { (eval echo configure:4961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4972 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4973 if test x"$ac_cv_c_pipe" != x"no"; then
4974 save_CFLAGS="${save_CFLAGS} -pipe"
4977 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4978 echo "configure:4979: checking if \$CC accepts -O3" >&5
4979 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4982 CFLAGS="${save_CFLAGS} -O3"
4983 cat > conftest.$ac_ext <<EOF
4984 #line 4985 "configure"
4985 #include "confdefs.h"
4991 if { (eval echo configure:4992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4995 echo "configure: failed program was:" >&5
4996 cat conftest.$ac_ext >&5
5003 echo "$ac_t""$ac_cv_c_o3" 1>&6
5004 if test x"$ac_cv_c_o3" != x"no"; then
5005 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5007 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5008 echo "configure:5009: checking if \$CC accepts -O2" >&5
5009 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 CFLAGS="${save_CFLAGS} -O2"
5013 cat > conftest.$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5021 if { (eval echo configure:5022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5025 echo "configure: failed program was:" >&5
5026 cat conftest.$ac_ext >&5
5033 echo "$ac_t""$ac_cv_c_o2" 1>&6
5034 if test x"$ac_cv_c_o2" != x"no"; then
5035 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5037 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5038 echo "configure:5039: checking if \$CC accepts -O" >&5
5039 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5042 CFLAGS="${save_CFLAGS} -O"
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5051 if { (eval echo configure:5052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5055 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5063 echo "$ac_t""$ac_cv_c_o" 1>&6
5064 if test x"$ac_cv_c_o" != x"no"; then
5065 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5070 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5071 echo "configure:5072: checking if \$CC accepts -ffast-math" >&5
5072 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5073 echo $ac_n "(cached) $ac_c" 1>&6
5075 CFLAGS="${save_CFLAGS} -ffast-math"
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5084 if { (eval echo configure:5085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5086 ac_cv_c_fast_math=yes
5088 echo "configure: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5091 ac_cv_c_fast_math=no
5096 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5097 if test x"$ac_cv_c_fast_math" != x"no"; then
5098 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5101 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5102 echo "configure:5103: checking if \$CC accepts -funroll-loops" >&5
5103 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6
5106 CFLAGS="${save_CFLAGS} -funroll-loops"
5107 cat > conftest.$ac_ext <<EOF
5108 #line 5109 "configure"
5109 #include "confdefs.h"
5115 if { (eval echo configure:5116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5117 ac_cv_c_unroll_loops=yes
5119 echo "configure: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5122 ac_cv_c_unroll_loops=no
5127 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5128 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5129 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5132 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5133 echo "configure:5134: checking if \$CC accepts -fomit-frame-pointer" >&5
5134 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5146 if { (eval echo configure:5147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5148 ac_cv_c_omit_frame_pointer=yes
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5153 ac_cv_c_omit_frame_pointer=no
5158 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5159 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5160 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5163 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5164 echo "configure:5165: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5165 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5168 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5177 if { (eval echo configure:5178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5181 echo "configure: failed program was:" >&5
5182 cat conftest.$ac_ext >&5
5189 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5190 if test x"$ac_cv_ld_darwin" != x"no"; then
5191 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5194 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5195 echo "configure:5196: checking if \$CC accepts -shared" >&5
5196 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 CFLAGS="${save_CFLAGS} -shared"
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5208 if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5210 ac_cv_ld_plugins=yes
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5220 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5221 if test x"$ac_cv_ld_plugins" != x"no"; then
5222 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5225 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5226 echo "configure:5227: checking __attribute__ ((aligned ())) support" >&5
5227 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5230 ac_cv_c_attribute_aligned=0
5231 CFLAGS="${save_CFLAGS} -Werror"
5232 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5238 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5241 if { (eval echo configure:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5243 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5252 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5253 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5254 cat >> confdefs.h <<EOF
5255 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5260 CFLAGS="${save_CFLAGS}"
5261 CPPFLAGS="${save_CPPFLAGS}"
5262 LDFLAGS="${save_LDFLAGS}"
5264 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5265 echo "configure:5266: checking for boolean_t in sys/types.h" >&5
5266 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5272 #include <sys/types.h>
5277 if { (eval echo configure:5278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5279 ac_cv_c_boolean_t_sys_types_h=yes
5281 echo "configure: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5284 ac_cv_c_boolean_t_sys_types_h=no
5289 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5290 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5291 cat >> confdefs.h <<\EOF
5292 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5297 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5298 echo "configure:5299: checking for boolean_t in pthread.h" >&5
5299 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 #include <pthread.h>
5310 if { (eval echo configure:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5312 ac_cv_c_boolean_t_pthread_h=yes
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5317 ac_cv_c_boolean_t_pthread_h=no
5322 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5323 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5324 cat >> confdefs.h <<\EOF
5325 #define BOOLEAN_T_IN_PTHREAD_H 1
5330 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5331 echo "configure:5332: checking for boolean_t in cthreads.h" >&5
5332 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 #include <cthreads.h>
5343 if { (eval echo configure:5344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5345 ac_cv_c_boolean_t_cthreads_h=yes
5347 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5350 ac_cv_c_boolean_t_cthreads_h=no
5355 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5356 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5357 cat >> confdefs.h <<\EOF
5358 #define BOOLEAN_T_IN_CTHREADS_H 1
5363 case x"${target_cpu}" in
5368 ARCH="${target_cpu}"
5372 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"
5373 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"
5375 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5376 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5377 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5378 SSE_MODULES="imdctsse downmixsse"
5379 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5381 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5382 echo "configure:5383: checking if \$CC groks MMX inline assembly" >&5
5383 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5384 echo $ac_n "(cached) $ac_c" 1>&6
5386 cat > conftest.$ac_ext <<EOF
5387 #line 5388 "configure"
5388 #include "confdefs.h"
5391 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5394 if { (eval echo configure:5395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5396 ac_cv_mmx_inline=yes
5398 echo "configure: failed program was:" >&5
5399 cat conftest.$ac_ext >&5
5406 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5407 if test x"$ac_cv_mmx_inline" != x"no"; then
5408 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5411 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5412 echo "configure:5413: checking if \$CC groks MMX EXT inline assembly" >&5
5413 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5414 echo $ac_n "(cached) $ac_c" 1>&6
5416 cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5421 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5424 if { (eval echo configure:5425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5426 ac_cv_mmxext_inline=yes
5428 echo "configure: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5431 ac_cv_mmxext_inline=no
5436 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5437 if test x"$ac_cv_mmxext_inline" != x"no"; then
5438 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5441 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5442 echo "configure:5443: checking if \$CC groks 3D Now! inline assembly" >&5
5443 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5446 cat > conftest.$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5451 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5454 if { (eval echo configure:5455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5456 ac_cv_3dnow_inline=yes
5458 echo "configure: failed program was:" >&5
5459 cat conftest.$ac_ext >&5
5461 ac_cv_3dnow_inline=no
5466 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5467 if test x"$ac_cv_3dnow_inline" != x"no"; then
5468 cat >> confdefs.h <<\EOF
5469 #define CAN_COMPILE_3DNOW 1
5472 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5475 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5476 echo "configure:5477: checking if \$CC groks SSE inline assembly" >&5
5477 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6
5480 cat > conftest.$ac_ext <<EOF
5481 #line 5482 "configure"
5482 #include "confdefs.h"
5485 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5488 if { (eval echo configure:5489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5490 ac_cv_sse_inline=yes
5492 echo "configure: failed program was:" >&5
5493 cat conftest.$ac_ext >&5
5500 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5501 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5502 cat >> confdefs.h <<\EOF
5503 #define CAN_COMPILE_SSE 1
5506 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5509 # don't try to grok altivec with native mingw32 it doesn't work right now
5510 # we should be able to remove this test with future versions of mingw32
5511 if test x$SYS != xmingw32; then
5512 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5513 echo "configure:5514: checking if \$CC groks Altivec inline assembly" >&5
5514 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5517 cat > conftest.$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5522 asm volatile("vperm 0,1,2,3");
5525 if { (eval echo configure:5526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5527 ac_cv_altivec_inline=yes
5529 echo "configure: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5533 CFLAGS="$CFLAGS -Wa,-m7400"
5534 cat > conftest.$ac_ext <<EOF
5535 #line 5536 "configure"
5536 #include "confdefs.h"
5539 asm volatile("vperm 0,1,2,3");
5542 if { (eval echo configure:5543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5544 ac_cv_altivec_inline="-Wa,-m7400"
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 ac_cv_altivec_inline=no
5558 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5559 if test x"$ac_cv_altivec_inline" != x"no"; then
5560 cat >> confdefs.h <<\EOF
5561 #define CAN_COMPILE_ALTIVEC 1
5564 if test x"$ac_cv_altivec_inline" != x"yes"; then
5565 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5566 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5567 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5568 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5570 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5573 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5574 echo "configure:5575: checking if \$CC groks Altivec C extensions" >&5
5575 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5576 echo $ac_n "(cached) $ac_c" 1>&6
5579 CFLAGS="$CFLAGS -faltivec"
5581 cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5586 vec_mtvscr((vector unsigned int)(0));
5589 if { (eval echo configure:5590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5591 ac_cv_c_altivec=-faltivec
5593 echo "configure: failed program was:" >&5
5594 cat conftest.$ac_ext >&5
5598 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5604 vec_mtvscr((vector unsigned int)(0));
5607 if { (eval echo configure:5608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5609 ac_cv_c_altivec="-fvec"
5611 echo "configure: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5624 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5625 if test x"$ac_cv_c_altivec" != x"no"; then
5626 cat >> confdefs.h <<\EOF
5627 #define CAN_COMPILE_C_ALTIVEC 1
5630 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5631 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5632 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5633 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5634 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5637 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5638 echo "configure:5639: checking if linker needs -framework vecLib" >&5
5639 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5642 save_LDFLAGS=$LDFLAGS
5643 LDFLAGS="$LDFLAGS -framework vecLib"
5644 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5652 if { (eval echo configure:5653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5654 ac_cv_ld_altivec=yes
5656 echo "configure: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5662 LDFLAGS=$save_LDFLAGS
5666 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5667 if test x"$ac_cv_ld_altivec" != x"no"; then
5668 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5669 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5670 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5671 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5676 # Check whether --with- or --without- was given.
5677 if test "${with_+set}" = set; then
5682 # Check whether --with- or --without- was given.
5683 if test "${with_+set}" = set; then
5689 # Check whether --with-tuning or --without-tuning was given.
5690 if test "${with_tuning+set}" = set; then
5691 withval="$with_tuning"
5695 if test "x$withval" != "x"; then
5698 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5700 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5704 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5707 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5710 # Check whether --enable-optimizations or --disable-optimizations was given.
5711 if test "${enable_optimizations+set}" = set; then
5712 enableval="$enable_optimizations"
5713 if test x$enableval = xno; then OPTIMS=0; fi
5719 # Check whether --enable-altivec or --disable-altivec was given.
5720 if test "${enable_altivec+set}" = set; then
5721 enableval="$enable_altivec"
5722 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
5723 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5725 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5726 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5731 # Check whether --enable-debug or --disable-debug was given.
5732 if test "${enable_debug+set}" = set; then
5733 enableval="$enable_debug"
5734 if test x$enableval = xyes; then DEBUG=1; fi
5739 # Check whether --enable-release or --disable-release was given.
5740 if test "${enable_release+set}" = set; then
5741 enableval="$enable_release"
5742 if test x$enableval = xyes; then RELEASE=1; fi
5744 VERSION="${VERSION}_`date +%Y-%m-%d`"
5749 # Check whether --with- or --without- was given.
5750 if test "${with_+set}" = set; then
5756 # Check whether --enable-dvd or --disable-dvd was given.
5757 if test "${enable_dvd+set}" = set; then
5758 enableval="$enable_dvd"
5762 if test "x$enableval" != "xno"
5764 # Check whether --with-dvdcss or --without-dvdcss was given.
5765 if test "${with_dvdcss+set}" = set; then
5766 withval="$with_dvdcss"
5770 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5771 if test "${with_dvdcss_tree+set}" = set; then
5772 withval="$with_dvdcss_tree"
5776 case "x$with_dvdcss" in
5778 if test "x$with_dvdcss_tree" = x
5780 for ac_hdr in dvdcss/dvdcss.h
5782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5784 echo "configure:5785: checking for $ac_hdr" >&5
5785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5786 echo $ac_n "(cached) $ac_c" 1>&6
5788 cat > conftest.$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5794 { (eval echo configure:5795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5796 if test -z "$ac_err"; then
5798 eval "ac_cv_header_$ac_safe=yes"
5801 echo "configure: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5804 eval "ac_cv_header_$ac_safe=no"
5808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5809 echo "$ac_t""yes" 1>&6
5810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5811 cat >> confdefs.h <<EOF
5812 #define $ac_tr_hdr 1
5814 PLUGINS="${PLUGINS} dvd"
5815 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5817 echo "$ac_t""no" 1>&6
5818 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
5819 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5824 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5825 echo "configure:5826: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5826 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5827 if test "x$real_dvdcss_tree" = x
5829 echo "$ac_t""no" 1>&6
5830 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5832 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5834 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5835 BUILTINS="${BUILTINS} dvd"
5836 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5837 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5839 echo "$ac_t""no" 1>&6
5840 { 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; }
5845 PLUGINS="${PLUGINS} dvd"
5846 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5847 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5850 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5851 echo "configure:5852: checking for dvdcss headers in ${with_dvdcss}" >&5
5852 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5854 echo "$ac_t""yes" 1>&6
5855 PLUGINS="${PLUGINS} dvd"
5856 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5857 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5859 echo "$ac_t""no" 1>&6
5860 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5866 # Check whether --enable-dvdread or --disable-dvdread was given.
5867 if test "${enable_dvdread+set}" = set; then
5868 enableval="$enable_dvdread"
5872 if test "x$enable_dvdread" != "xno"
5874 # Check whether --with-dvdread or --without-dvdread was given.
5875 if test "${with_dvdread+set}" = set; then
5876 withval="$with_dvdread"
5880 if test "x$withval" = x
5885 test_LDFLAGS="-L${withval}/lib"
5886 test_CFLAGS="-I${withval}/include"
5888 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5889 for ac_hdr in dvdread/dvd_reader.h
5891 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5893 echo "configure:5894: checking for $ac_hdr" >&5
5894 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5895 echo $ac_n "(cached) $ac_c" 1>&6
5897 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure"
5899 #include "confdefs.h"
5902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5903 { (eval echo configure:5904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5905 if test -z "$ac_err"; then
5907 eval "ac_cv_header_$ac_safe=yes"
5910 echo "configure: failed program was:" >&5
5911 cat conftest.$ac_ext >&5
5913 eval "ac_cv_header_$ac_safe=no"
5917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5918 echo "$ac_t""yes" 1>&6
5919 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5920 cat >> confdefs.h <<EOF
5921 #define $ac_tr_hdr 1
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 #include <dvdread/dvd_reader.h>
5929 void foo() { int i=DVD_VIDEO_LB_LEN; }
5932 if { (eval echo configure:5933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5935 PLUGINS="${PLUGINS} dvdread"
5936 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
5937 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
5940 echo "configure: failed program was:" >&5
5941 cat conftest.$ac_ext >&5
5944 if test "x$enable_dvdread" != x
5946 { 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; }
5953 echo "$ac_t""no" 1>&6
5954 if test "x$enable_dvdread" != x
5956 if test "x$withval" != x
5958 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${withval}/include" 1>&2; exit 1; }
5960 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
5967 CPPFLAGS="$save_CPPFLAGS"
5970 # Check whether --enable-vcd or --disable-vcd was given.
5971 if test "${enable_vcd+set}" = set; then
5972 enableval="$enable_vcd"
5977 if test x$enable_vcd != xno
5979 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure"
5981 #include "confdefs.h"
5982 #include <linux/cdrom.h>
5984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5985 egrep "cdrom_msf0" >/dev/null 2>&1; then
5988 PLUGINS="${PLUGINS} vcd"
5994 if test "x${SYS}" = "xbsdi"
5996 PLUGINS="${PLUGINS} vcd"
5999 if test "x${SYS}" = "xdarwin"
6001 PLUGINS="${PLUGINS} vcd"
6002 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6006 # Check whether --enable-satellite or --disable-satellite was given.
6007 if test "${enable_satellite+set}" = set; then
6008 enableval="$enable_satellite"
6009 if test x$enable_satellite = xyes
6011 BUILTINS="${BUILTINS} satellite"
6012 cat >> confdefs.h <<\EOF
6013 #define HAVE_SATELLITE 1
6020 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6021 echo "configure:6022: checking for inet_pton" >&5
6022 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6023 echo $ac_n "(cached) $ac_c" 1>&6
6025 cat > conftest.$ac_ext <<EOF
6026 #line 6027 "configure"
6027 #include "confdefs.h"
6028 /* System header to define __stub macros and hopefully few prototypes,
6029 which can conflict with char inet_pton(); below. */
6031 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6038 /* The GNU C library defines this for functions which it implements
6039 to always fail with ENOSYS. Some functions are actually named
6040 something starting with __ and the normal name is an alias. */
6041 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6051 eval "ac_cv_func_inet_pton=yes"
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6056 eval "ac_cv_func_inet_pton=no"
6061 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6062 echo "$ac_t""yes" 1>&6
6063 PLUGINS="${PLUGINS} ipv6"
6065 echo "$ac_t""no" 1>&6
6070 # Check whether --with- or --without- was given.
6071 if test "${with_+set}" = set; then
6077 # Check whether --enable-mad or --disable-mad was given.
6078 if test "${enable_mad+set}" = set; then
6079 enableval="$enable_mad"
6083 if test x$enable_mad = xyes
6085 PLUGINS="${PLUGINS} mad"
6086 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6087 # Check whether --with-mad or --without-mad was given.
6088 if test "${with_mad+set}" = set; then
6090 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6092 mad_CFLAGS="${mad_CFLAGS} -I$with_val/include"
6093 mad_LDFLAGS="${mad_LDFLAGS} -L$with_val/lib"
6098 save_LDFLAGS=$LDFLAGS
6099 CFLAGS="$CFLAGS $mad_CFLAGS"
6100 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6105 echo "configure:6106: checking for $ac_hdr" >&5
6106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6115 { (eval echo configure:6116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6117 if test -z "$ac_err"; then
6119 eval "ac_cv_header_$ac_safe=yes"
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6125 eval "ac_cv_header_$ac_safe=no"
6129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6130 echo "$ac_t""yes" 1>&6
6131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6132 cat >> confdefs.h <<EOF
6133 #define $ac_tr_hdr 1
6137 echo "$ac_t""no" 1>&6
6138 echo "Cannot find development headers for libmad..."
6144 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6145 echo "configure:6146: checking for mad_bit_init in -lmad" >&5
6146 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6148 echo $ac_n "(cached) $ac_c" 1>&6
6150 ac_save_LIBS="$LIBS"
6152 cat > conftest.$ac_ext <<EOF
6153 #line 6154 "configure"
6154 #include "confdefs.h"
6155 /* Override any gcc2 internal prototype to avoid an error. */
6156 /* We use char because int might match the return type of a gcc2
6157 builtin and then its argument prototype would still apply. */
6158 char mad_bit_init();
6164 if { (eval echo configure:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6166 eval "ac_cv_lib_$ac_lib_var=yes"
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6171 eval "ac_cv_lib_$ac_lib_var=no"
6174 LIBS="$ac_save_LIBS"
6177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6178 echo "$ac_t""yes" 1>&6
6179 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6181 cat >> confdefs.h <<EOF
6182 #define $ac_tr_lib 1
6188 echo "$ac_t""no" 1>&6
6189 echo "Cannot find libmad library..."
6195 LDFLAGS=$save_LDFLAGS
6198 if test x$SYS = xbeos
6200 PLUGINS="${PLUGINS} beos"
6203 # Check whether --enable-a52 or --disable-a52 was given.
6204 if test "${enable_a52+set}" = set; then
6205 enableval="$enable_a52"
6209 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6211 for ac_hdr in a52dec/a52.h
6213 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6215 echo "configure:6216: checking for $ac_hdr" >&5
6216 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6217 echo $ac_n "(cached) $ac_c" 1>&6
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6225 { (eval echo configure:6226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6227 if test -z "$ac_err"; then
6229 eval "ac_cv_header_$ac_safe=yes"
6232 echo "configure: failed program was:" >&5
6233 cat conftest.$ac_ext >&5
6235 eval "ac_cv_header_$ac_safe=no"
6239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6240 echo "$ac_t""yes" 1>&6
6241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6242 cat >> confdefs.h <<EOF
6243 #define $ac_tr_hdr 1
6246 BUILTINS="${BUILTINS} a52"
6247 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6250 echo "$ac_t""no" 1>&6
6256 # Check whether --enable-vorbis or --disable-vorbis was given.
6257 if test "${enable_vorbis+set}" = set; then
6258 enableval="$enable_vorbis"
6262 if test "x$enableval" != "xno"
6264 for ac_hdr in ogg/ogg.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 PLUGINS="${PLUGINS} vorbis"
6300 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6303 echo "$ac_t""no" 1>&6
6310 # Check whether --with- or --without- was given.
6311 if test "${with_+set}" = set; then
6317 # Check whether --enable-x11 or --disable-x11 was given.
6318 if test "${enable_x11+set}" = set; then
6319 enableval="$enable_x11"
6323 if test x$enable_x11 != xno &&
6324 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6325 if test x$x_includes = xNONE; then
6326 x_includes=/usr/X11R6/include
6328 if test x$x_libraries = xNONE; then
6329 x_libraries=/usr/X11R6/lib
6331 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6332 for ac_hdr in X11/Xlib.h
6334 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6335 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6336 echo "configure:6337: checking for $ac_hdr" >&5
6337 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6340 cat > conftest.$ac_ext <<EOF
6341 #line 6342 "configure"
6342 #include "confdefs.h"
6345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6346 { (eval echo configure:6347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6348 if test -z "$ac_err"; then
6350 eval "ac_cv_header_$ac_safe=yes"
6353 echo "configure: failed program was:" >&5
6354 cat conftest.$ac_ext >&5
6356 eval "ac_cv_header_$ac_safe=no"
6360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6361 echo "$ac_t""yes" 1>&6
6362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6363 cat >> confdefs.h <<EOF
6364 #define $ac_tr_hdr 1
6367 PLUGINS="${PLUGINS} x11"
6368 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6369 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6372 echo "$ac_t""no" 1>&6
6376 CPPFLAGS="$save_CPPFLAGS"
6379 # Check whether --enable-xvideo or --disable-xvideo was given.
6380 if test "${enable_xvideo+set}" = set; then
6381 enableval="$enable_xvideo"
6385 if test x$enable_xvideo != xno &&
6386 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6387 if test x$x_includes = xNONE; then
6388 x_includes=/usr/X11R6/include
6390 if test x$x_libraries = xNONE; then
6391 x_libraries=/usr/X11R6/lib
6393 save_CPPFLAGS=$CPPFLAGS
6394 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6395 for ac_hdr in X11/extensions/Xv.h
6397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6399 echo "configure:6400: checking for $ac_hdr" >&5
6400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6401 echo $ac_n "(cached) $ac_c" 1>&6
6403 cat > conftest.$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6409 { (eval echo configure:6410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6411 if test -z "$ac_err"; then
6413 eval "ac_cv_header_$ac_safe=yes"
6416 echo "configure: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6419 eval "ac_cv_header_$ac_safe=no"
6423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6424 echo "$ac_t""yes" 1>&6
6425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6426 cat >> confdefs.h <<EOF
6427 #define $ac_tr_hdr 1
6431 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6432 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6433 echo "configure:6434: checking for XvSetPortAttribute in -lXv_pic" >&5
6434 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6438 ac_save_LIBS="$LIBS"
6439 LIBS="-lXv_pic $LIBS"
6440 cat > conftest.$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6443 /* Override any gcc2 internal prototype to avoid an error. */
6444 /* We use char because int might match the return type of a gcc2
6445 builtin and then its argument prototype would still apply. */
6446 char XvSetPortAttribute();
6449 XvSetPortAttribute()
6452 if { (eval echo configure:6453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6454 eval "ac_cv_lib_$ac_lib_var=yes"
6456 echo "configure: failed program was:" >&5
6457 cat conftest.$ac_ext >&5
6459 eval "ac_cv_lib_$ac_lib_var=no"
6462 LIBS="$ac_save_LIBS"
6465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6466 echo "$ac_t""yes" 1>&6
6467 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6468 PLUGINS="${PLUGINS} xvideo"
6469 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6470 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6472 echo "$ac_t""no" 1>&6
6473 # We don't have Xv_pic, let's make xvideo.a as builtin
6474 BUILTINS="${BUILTINS} xvideo"
6475 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6476 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6479 CFLAGS="$save_CFLAGS"
6481 CPPFLAGS="$save_CPPFLAGS"
6483 echo "$ac_t""no" 1>&6
6489 # Check whether --enable-sdl or --disable-sdl was given.
6490 if test "${enable_sdl+set}" = set; then
6491 enableval="$enable_sdl"
6495 if test "x$enable_sdl" != "xno"
6498 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6499 if test "${with_sdl_config_path+set}" = set; then
6500 withval="$with_sdl_config_path"
6501 if test "x$withval" != "xno"
6503 SDL_PATH=$withval:$PATH
6507 # Extract the first word of "sdl12-config", so it can be a program name with args.
6508 set dummy sdl12-config; ac_word=$2
6509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6510 echo "configure:6511: checking for $ac_word" >&5
6511 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6512 echo $ac_n "(cached) $ac_c" 1>&6
6514 case "$SDL12_CONFIG" in
6516 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6519 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6523 ac_dummy="$SDL_PATH"
6524 for ac_dir in $ac_dummy; do
6525 test -z "$ac_dir" && ac_dir=.
6526 if test -f $ac_dir/$ac_word; then
6527 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6532 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6536 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6537 if test -n "$SDL12_CONFIG"; then
6538 echo "$ac_t""$SDL12_CONFIG" 1>&6
6540 echo "$ac_t""no" 1>&6
6543 SDL_CONFIG=${SDL12_CONFIG}
6544 SDL_HEADER="SDL12/SDL.h"
6545 if test x${SDL_CONFIG} = xno
6547 # Extract the first word of "sdl11-config", so it can be a program name with args.
6548 set dummy sdl11-config; ac_word=$2
6549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6550 echo "configure:6551: checking for $ac_word" >&5
6551 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6552 echo $ac_n "(cached) $ac_c" 1>&6
6554 case "$SDL11_CONFIG" in
6556 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6559 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6563 ac_dummy="$SDL_PATH"
6564 for ac_dir in $ac_dummy; do
6565 test -z "$ac_dir" && ac_dir=.
6566 if test -f $ac_dir/$ac_word; then
6567 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6572 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6576 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6577 if test -n "$SDL11_CONFIG"; then
6578 echo "$ac_t""$SDL11_CONFIG" 1>&6
6580 echo "$ac_t""no" 1>&6
6583 SDL_CONFIG=${SDL11_CONFIG}
6584 SDL_HEADER="SDL11/SDL.h"
6586 if test x${SDL_CONFIG} = xno
6588 # Extract the first word of "sdl-config", so it can be a program name with args.
6589 set dummy sdl-config; ac_word=$2
6590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6591 echo "configure:6592: checking for $ac_word" >&5
6592 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6593 echo $ac_n "(cached) $ac_c" 1>&6
6595 case "$SDL_CONFIG" in
6597 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6600 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6604 ac_dummy="$SDL_PATH"
6605 for ac_dir in $ac_dummy; do
6606 test -z "$ac_dir" && ac_dir=.
6607 if test -f $ac_dir/$ac_word; then
6608 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6613 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6617 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6618 if test -n "$SDL_CONFIG"; then
6619 echo "$ac_t""$SDL_CONFIG" 1>&6
6621 echo "$ac_t""no" 1>&6
6624 SDL_HEADER="SDL/SDL.h"
6626 if test x${SDL_CONFIG} != xno
6628 PLUGINS="${PLUGINS} sdl"
6629 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
6630 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6631 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
6632 for ac_hdr in ${SDL_HEADER}
6634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6636 echo "configure:6637: checking for $ac_hdr" >&5
6637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6638 echo $ac_n "(cached) $ac_c" 1>&6
6640 cat > conftest.$ac_ext <<EOF
6641 #line 6642 "configure"
6642 #include "confdefs.h"
6645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6646 { (eval echo configure:6647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6648 if test -z "$ac_err"; then
6650 eval "ac_cv_header_$ac_safe=yes"
6653 echo "configure: failed program was:" >&5
6654 cat conftest.$ac_ext >&5
6656 eval "ac_cv_header_$ac_safe=no"
6660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6661 echo "$ac_t""yes" 1>&6
6662 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6663 cat >> confdefs.h <<EOF
6664 #define $ac_tr_hdr 1
6666 cat >> confdefs.h <<EOF
6667 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6671 echo "$ac_t""no" 1>&6
6672 { echo "configure: error: The development package for SDL is not installed.
6673 Please install it and try again. Alternatively you can also configure with
6674 --disable-sdl." 1>&2; exit 1; }
6679 CPPFLAGS="$save_CPPFLAGS"
6680 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6682 { echo "configure: error: The development package for SDL is not installed.
6683 Please install it and try again. Alternatively you can also configure with
6684 --disable-sdl." 1>&2; exit 1; }
6686 elif test "x$enable_sdl" = "xyes"
6688 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6689 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6694 # Check whether --enable-directx or --disable-directx was given.
6695 if test "${enable_directx+set}" = set; then
6696 enableval="$enable_directx"
6700 if test "x$enableval" != "xno"
6702 if test x$SYS = xmingw32
6704 # Check whether --with-directx or --without-directx was given.
6705 if test "${with_directx+set}" = set; then
6706 withval="$with_directx"
6710 if test "x$with_directx" = "x"
6712 for ac_hdr in ddraw.h
6714 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6716 echo "configure:6717: checking for $ac_hdr" >&5
6717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6718 echo $ac_n "(cached) $ac_c" 1>&6
6720 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure"
6722 #include "confdefs.h"
6725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6726 { (eval echo configure:6727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6728 if test -z "$ac_err"; then
6730 eval "ac_cv_header_$ac_safe=yes"
6733 echo "configure: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6736 eval "ac_cv_header_$ac_safe=no"
6740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6741 echo "$ac_t""yes" 1>&6
6742 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6743 cat >> confdefs.h <<EOF
6744 #define $ac_tr_hdr 1
6746 PLUGINS="${PLUGINS} directx"
6747 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
6749 echo "$ac_t""no" 1>&6
6754 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
6755 echo "configure:6756: checking for directX headers in ${withval}" >&5
6756 if test -f ${withval}/ddraw.h
6758 PLUGINS="${PLUGINS} directx"
6759 directx_LDFLAGS="${directx_LDFLAGS} -L${withval}/lib -lgdi32"
6760 directx_CFLAGS="${directx_CFLAGS} -I${withval}"
6761 echo "$ac_t""yes" 1>&6
6763 echo "$ac_t""no" 1>&6
6764 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
6770 # Check whether --enable-fb or --disable-fb was given.
6771 if test "${enable_fb+set}" = set; then
6772 enableval="$enable_fb"
6776 if test x$enable_fb != xno
6778 for ac_hdr in linux/fb.h
6780 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6781 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6782 echo "configure:6783: checking for $ac_hdr" >&5
6783 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6786 cat > conftest.$ac_ext <<EOF
6787 #line 6788 "configure"
6788 #include "confdefs.h"
6791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6792 { (eval echo configure:6793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6794 if test -z "$ac_err"; then
6796 eval "ac_cv_header_$ac_safe=yes"
6799 echo "configure: failed program was:" >&5
6800 cat conftest.$ac_ext >&5
6802 eval "ac_cv_header_$ac_safe=no"
6806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6807 echo "$ac_t""yes" 1>&6
6808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6809 cat >> confdefs.h <<EOF
6810 #define $ac_tr_hdr 1
6813 PLUGINS="${PLUGINS} fb"
6816 echo "$ac_t""no" 1>&6
6822 # Check whether --enable-mga or --disable-mga was given.
6823 if test "${enable_mga+set}" = set; then
6824 enableval="$enable_mga"
6825 if test x$enable_mga = xyes
6827 PLUGINS="${PLUGINS} mga xmga"
6832 # Check whether --enable-ggi or --disable-ggi was given.
6833 if test "${enable_ggi+set}" = set; then
6834 enableval="$enable_ggi"
6838 if test x$enable_ggi = xyes
6840 PLUGINS="${PLUGINS} ggi"
6841 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
6842 # Check whether --with-ggi or --without-ggi was given.
6843 if test "${with_ggi+set}" = set; then
6845 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6847 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
6848 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_val/lib"
6854 # Check whether --enable-glide or --disable-glide was given.
6855 if test "${enable_glide+set}" = set; then
6856 enableval="$enable_glide"
6860 if test x$enable_glide = xyes
6862 PLUGINS="${PLUGINS} glide"
6863 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
6864 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
6865 # Check whether --with-glide or --without-glide was given.
6866 if test "${with_glide+set}" = set; then
6867 withval="$with_glide"
6868 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6870 glide_CFLAGS="${glide_CFLAGS} -I$with_val/include"
6871 glide_LDFLAGS="${glide_LDFLAGS} -L$with_val/lib"
6877 # Check whether --enable-aa or --disable-aa was given.
6878 if test "${enable_aa+set}" = set; then
6879 enableval="$enable_aa"
6883 if test x$enable_aa = xyes
6885 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
6886 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
6887 echo "configure:6888: checking for aalib.h" >&5
6888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6891 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6897 { (eval echo configure:6898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6899 if test -z "$ac_err"; then
6901 eval "ac_cv_header_$ac_safe=yes"
6904 echo "configure: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 eval "ac_cv_header_$ac_safe=no"
6911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6912 echo "$ac_t""yes" 1>&6
6915 echo "$ac_t""no" 1>&6
6919 if test x$have_aa = xtrue
6921 PLUGINS="${PLUGINS} aa"
6922 aa_LDFLAGS="${aa_LDFLAGS} -laa"
6927 # Check whether --with- or --without- was given.
6928 if test "${with_+set}" = set; then
6934 # Check whether --enable-dsp or --disable-dsp was given.
6935 if test "${enable_dsp+set}" = set; then
6936 enableval="$enable_dsp"
6941 if test x$enable_dsp != xno &&
6942 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
6944 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
6946 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6947 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6948 echo "configure:6949: checking for $ac_hdr" >&5
6949 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6950 echo $ac_n "(cached) $ac_c" 1>&6
6952 cat > conftest.$ac_ext <<EOF
6953 #line 6954 "configure"
6954 #include "confdefs.h"
6957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6958 { (eval echo configure:6959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6960 if test -z "$ac_err"; then
6962 eval "ac_cv_header_$ac_safe=yes"
6965 echo "configure: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6968 eval "ac_cv_header_$ac_safe=no"
6972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6973 echo "$ac_t""yes" 1>&6
6974 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6975 cat >> confdefs.h <<EOF
6976 #define $ac_tr_hdr 1
6979 PLUGINS="${PLUGINS} dsp"
6980 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
6981 echo "configure:6982: checking for main in -lossaudio" >&5
6982 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
6983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6984 echo $ac_n "(cached) $ac_c" 1>&6
6986 ac_save_LIBS="$LIBS"
6987 LIBS="-lossaudio $LIBS"
6988 cat > conftest.$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6996 if { (eval echo configure:6997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6998 eval "ac_cv_lib_$ac_lib_var=yes"
7000 echo "configure: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7003 eval "ac_cv_lib_$ac_lib_var=no"
7006 LIBS="$ac_save_LIBS"
7009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7010 echo "$ac_t""yes" 1>&6
7011 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7013 echo "$ac_t""no" 1>&6
7018 echo "$ac_t""no" 1>&6
7024 # Check whether --enable-esd or --disable-esd was given.
7025 if test "${enable_esd+set}" = set; then
7026 enableval="$enable_esd"
7027 if test x$enable_esd = xyes
7029 # Extract the first word of "esd-config", so it can be a program name with args.
7030 set dummy esd-config; ac_word=$2
7031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7032 echo "configure:7033: checking for $ac_word" >&5
7033 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7034 echo $ac_n "(cached) $ac_c" 1>&6
7036 case "$ESD_CONFIG" in
7038 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7041 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7046 for ac_dir in $ac_dummy; do
7047 test -z "$ac_dir" && ac_dir=.
7048 if test -f $ac_dir/$ac_word; then
7049 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7054 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7058 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7059 if test -n "$ESD_CONFIG"; then
7060 echo "$ac_t""$ESD_CONFIG" 1>&6
7062 echo "$ac_t""no" 1>&6
7065 if test x${ESD_CONFIG} != xno
7067 PLUGINS="${PLUGINS} esd"
7068 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7069 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7075 # Check whether --enable-arts or --disable-arts was given.
7076 if test "${enable_arts+set}" = set; then
7077 enableval="$enable_arts"
7078 if test x$enable_arts = xyes
7080 # Extract the first word of "artsc-config", so it can be a program name with args.
7081 set dummy artsc-config; ac_word=$2
7082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7083 echo "configure:7084: checking for $ac_word" >&5
7084 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7087 case "$ARTS_CONFIG" in
7089 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7092 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7097 for ac_dir in $ac_dummy; do
7098 test -z "$ac_dir" && ac_dir=.
7099 if test -f $ac_dir/$ac_word; then
7100 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7105 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7109 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7110 if test -n "$ARTS_CONFIG"; then
7111 echo "$ac_t""$ARTS_CONFIG" 1>&6
7113 echo "$ac_t""no" 1>&6
7116 if test x${ARTS_CONFIG} != xno
7118 PLUGINS="${PLUGINS} arts"
7119 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7120 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7126 # Check whether --enable-alsa or --disable-alsa was given.
7127 if test "${enable_alsa+set}" = set; then
7128 enableval="$enable_alsa"
7129 if test x$enable_alsa = xyes
7131 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7132 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7133 echo "configure:7134: checking for alsa/asoundlib.h" >&5
7134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7135 echo $ac_n "(cached) $ac_c" 1>&6
7137 cat > conftest.$ac_ext <<EOF
7138 #line 7139 "configure"
7139 #include "confdefs.h"
7140 #include <alsa/asoundlib.h>
7142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7143 { (eval echo configure:7144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7145 if test -z "$ac_err"; then
7147 eval "ac_cv_header_$ac_safe=yes"
7150 echo "configure: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7153 eval "ac_cv_header_$ac_safe=no"
7157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7158 echo "$ac_t""yes" 1>&6
7159 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7160 echo "configure:7161: checking for main in -lasound" >&5
7161 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7165 ac_save_LIBS="$LIBS"
7166 LIBS="-lasound $LIBS"
7167 cat > conftest.$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7175 if { (eval echo configure:7176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7177 eval "ac_cv_lib_$ac_lib_var=yes"
7179 echo "configure: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7182 eval "ac_cv_lib_$ac_lib_var=no"
7185 LIBS="$ac_save_LIBS"
7188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7189 echo "$ac_t""yes" 1>&6
7192 echo "$ac_t""no" 1>&6
7197 echo "$ac_t""no" 1>&6
7201 if test x$have_alsa = xtrue
7203 PLUGINS="${PLUGINS} alsa"
7204 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7210 # Check whether --enable-waveout or --disable-waveout was given.
7211 if test "${enable_waveout+set}" = set; then
7212 enableval="$enable_waveout"
7216 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7218 PLUGINS="${PLUGINS} waveout"
7219 waveout_LDFLAGS="-lwinmm"
7223 # Check whether --with- or --without- was given.
7224 if test "${with_+set}" = set; then
7230 # Check whether --enable-gtk or --disable-gtk was given.
7231 if test "${enable_gtk+set}" = set; then
7232 enableval="$enable_gtk"
7236 if test x$enable_gtk != xno
7239 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7240 if test "${with_gtk_config_path+set}" = set; then
7241 withval="$with_gtk_config_path"
7242 if test "x$withval" != "xno"
7244 GTK_PATH=$withval:$PATH
7248 # look for gtk-config
7249 # Extract the first word of "gtk12-config", so it can be a program name with args.
7250 set dummy gtk12-config; ac_word=$2
7251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7252 echo "configure:7253: checking for $ac_word" >&5
7253 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7254 echo $ac_n "(cached) $ac_c" 1>&6
7256 case "$GTK12_CONFIG" in
7258 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7261 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7265 ac_dummy="$GTK_PATH"
7266 for ac_dir in $ac_dummy; do
7267 test -z "$ac_dir" && ac_dir=.
7268 if test -f $ac_dir/$ac_word; then
7269 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7274 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7278 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7279 if test -n "$GTK12_CONFIG"; then
7280 echo "$ac_t""$GTK12_CONFIG" 1>&6
7282 echo "$ac_t""no" 1>&6
7285 GTK_CONFIG=${GTK12_CONFIG}
7286 if test x${GTK_CONFIG} = xno
7288 # Extract the first word of "gtk-config", so it can be a program name with args.
7289 set dummy gtk-config; ac_word=$2
7290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7291 echo "configure:7292: checking for $ac_word" >&5
7292 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7293 echo $ac_n "(cached) $ac_c" 1>&6
7295 case "$GTK_CONFIG" in
7297 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7300 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7304 ac_dummy="$GTK_PATH"
7305 for ac_dir in $ac_dummy; do
7306 test -z "$ac_dir" && ac_dir=.
7307 if test -f $ac_dir/$ac_word; then
7308 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7313 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7317 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7318 if test -n "$GTK_CONFIG"; then
7319 echo "$ac_t""$GTK_CONFIG" 1>&6
7321 echo "$ac_t""no" 1>&6
7325 if test x${GTK_CONFIG} != xno
7327 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7329 { 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; }
7331 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7332 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7333 # now look for the gtk.h header
7334 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7335 ac_cv_gtk_headers=yes
7336 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7340 echo "configure:7341: checking for $ac_hdr" >&5
7341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7342 echo $ac_n "(cached) $ac_c" 1>&6
7344 cat > conftest.$ac_ext <<EOF
7345 #line 7346 "configure"
7346 #include "confdefs.h"
7349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7350 { (eval echo configure:7351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7352 if test -z "$ac_err"; then
7354 eval "ac_cv_header_$ac_safe=yes"
7357 echo "configure: failed program was:" >&5
7358 cat conftest.$ac_ext >&5
7360 eval "ac_cv_header_$ac_safe=no"
7364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7365 echo "$ac_t""yes" 1>&6
7366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7367 cat >> confdefs.h <<EOF
7368 #define $ac_tr_hdr 1
7372 echo "$ac_t""no" 1>&6
7373 ac_cv_gtk_headers=no
7374 echo "Cannot find gtk development headers."
7379 if test "x$ac_cv_gtk_headers" = xyes
7381 PLUGINS="${PLUGINS} gtk"
7382 ALIASES="${ALIASES} gvlc"
7384 CPPFLAGS="$save_CPPFLAGS"
7388 # Check whether --enable-gnome or --disable-gnome was given.
7389 if test "${enable_gnome+set}" = set; then
7390 enableval="$enable_gnome"
7391 if test x$enable_gnome = xyes; then
7392 # look for gnome-config
7393 # Extract the first word of "gnome-config", so it can be a program name with args.
7394 set dummy gnome-config; ac_word=$2
7395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7396 echo "configure:7397: checking for $ac_word" >&5
7397 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7398 echo $ac_n "(cached) $ac_c" 1>&6
7400 case "$GNOME_CONFIG" in
7402 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7405 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7410 for ac_dir in $ac_dummy; do
7411 test -z "$ac_dir" && ac_dir=.
7412 if test -f $ac_dir/$ac_word; then
7413 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7418 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7422 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7423 if test -n "$GNOME_CONFIG"; then
7424 echo "$ac_t""$GNOME_CONFIG" 1>&6
7426 echo "$ac_t""no" 1>&6
7429 if test -x ${GNOME_CONFIG}
7431 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7432 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7434 # now look for the gnome.h header
7435 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
7436 for ac_hdr in gnome.h
7438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7440 echo "configure:7441: checking for $ac_hdr" >&5
7441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7442 echo $ac_n "(cached) $ac_c" 1>&6
7444 cat > conftest.$ac_ext <<EOF
7445 #line 7446 "configure"
7446 #include "confdefs.h"
7449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7450 { (eval echo configure:7451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7452 if test -z "$ac_err"; then
7454 eval "ac_cv_header_$ac_safe=yes"
7457 echo "configure: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7460 eval "ac_cv_header_$ac_safe=no"
7464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7465 echo "$ac_t""yes" 1>&6
7466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7467 cat >> confdefs.h <<EOF
7468 #define $ac_tr_hdr 1
7471 PLUGINS="${PLUGINS} gnome"
7472 ALIASES="${ALIASES} gnome-vlc"
7475 echo "$ac_t""no" 1>&6
7476 { echo "configure: error: Can't find gnome headers. Please install the gnome
7477 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7482 CPPFLAGS="$save_CPPFLAGS"
7487 # Check whether --enable-qt or --disable-qt was given.
7488 if test "${enable_qt+set}" = set; then
7489 enableval="$enable_qt"
7490 if test x$enable_qt = xyes; then
7491 PLUGINS="${PLUGINS} qt"
7492 ALIASES="${ALIASES} qvlc"
7493 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7494 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7495 if test -x ${QTDIR}/bin/moc
7497 MOC=${QTDIR}/bin/moc
7505 # Check whether --enable-kde or --disable-kde was given.
7506 if test "${enable_kde+set}" = set; then
7507 enableval="$enable_kde"
7508 if test x$enable_kde = xyes; then
7509 PLUGINS="${PLUGINS} kde"
7510 ALIASES="${ALIASES} kvlc"
7511 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
7512 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
7513 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
7514 if test -x ${QTDIR}/bin/moc
7516 MOC=${QTDIR}/bin/moc
7524 # Check whether --enable-macosx or --disable-macosx was given.
7525 if test "${enable_macosx+set}" = set; then
7526 enableval="$enable_macosx"
7527 if test x$enable_macosx = xyes
7529 BUILTINS="${BUILTINS} macosx"
7530 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7531 macosx_CFLAGS="${macosx_CFLAGS} -ObjC"
7532 LDFLAGS="${LDFLAGS} -ObjC"
7535 for ac_hdr in Cocoa/Cocoa.h
7537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7539 echo "configure:7540: checking for $ac_hdr" >&5
7540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7541 echo $ac_n "(cached) $ac_c" 1>&6
7543 cat > conftest.$ac_ext <<EOF
7544 #line 7545 "configure"
7545 #include "confdefs.h"
7548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7549 { (eval echo configure:7550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7551 if test -z "$ac_err"; then
7553 eval "ac_cv_header_$ac_safe=yes"
7556 echo "configure: failed program was:" >&5
7557 cat conftest.$ac_ext >&5
7559 eval "ac_cv_header_$ac_safe=no"
7563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7564 echo "$ac_t""yes" 1>&6
7565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7566 cat >> confdefs.h <<EOF
7567 #define $ac_tr_hdr 1
7569 BUILTINS="${BUILTINS} macosx"
7570 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7571 macosx_CFLAGS="${macosx_CFLAGS} -ObjC"
7572 LDFLAGS="${LDFLAGS} -ObjC"
7575 echo "$ac_t""no" 1>&6
7582 # Check whether --enable-qnx or --disable-qnx was given.
7583 if test "${enable_qnx+set}" = set; then
7584 enableval="$enable_qnx"
7588 if test x$enable_qnx != xno
7592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7594 echo "configure:7595: checking for $ac_hdr" >&5
7595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7596 echo $ac_n "(cached) $ac_c" 1>&6
7598 cat > conftest.$ac_ext <<EOF
7599 #line 7600 "configure"
7600 #include "confdefs.h"
7603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7604 { (eval echo configure:7605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7606 if test -z "$ac_err"; then
7608 eval "ac_cv_header_$ac_safe=yes"
7611 echo "configure: failed program was:" >&5
7612 cat conftest.$ac_ext >&5
7614 eval "ac_cv_header_$ac_safe=no"
7618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7619 echo "$ac_t""yes" 1>&6
7620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7621 cat >> confdefs.h <<EOF
7622 #define $ac_tr_hdr 1
7625 PLUGINS="${PLUGINS} qnx"
7626 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
7629 echo "$ac_t""no" 1>&6
7635 # Check whether --enable-intfwin or --disable-intfwin was given.
7636 if test "${enable_intfwin+set}" = set; then
7637 enableval="$enable_intfwin"
7638 if test "x$enableval" != "xno"
7640 # Check whether --with-bcbuilder or --without-bcbuilder was given.
7641 if test "${with_bcbuilder+set}" = set; then
7642 withval="$with_bcbuilder"
7646 if test "x$with_bcbuilder" != "x"
7648 BCBUILDER="$with_bcbuilder"
7650 PLUGINS="${PLUGINS} intfwin"
7655 # Check whether --enable-ncurses or --disable-ncurses was given.
7656 if test "${enable_ncurses+set}" = set; then
7657 enableval="$enable_ncurses"
7658 if test x$enable_ncurses = xyes; then
7659 PLUGINS="${PLUGINS} ncurses"
7660 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
7665 # Check whether --enable-lirc or --disable-lirc was given.
7666 if test "${enable_lirc+set}" = set; then
7667 enableval="$enable_lirc"
7671 if test x$enable_lirc = xyes
7673 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7674 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7675 echo "configure:7676: checking for lirc/lirc_client.h" >&5
7676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7679 cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7682 #include <lirc/lirc_client.h>
7684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7685 { (eval echo configure:7686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7687 if test -z "$ac_err"; then
7689 eval "ac_cv_header_$ac_safe=yes"
7692 echo "configure: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7695 eval "ac_cv_header_$ac_safe=no"
7699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7700 echo "$ac_t""yes" 1>&6
7701 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
7702 echo "configure:7703: checking for lirc_init in -llirc_client" >&5
7703 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
7704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
7707 ac_save_LIBS="$LIBS"
7708 LIBS="-llirc_client $LIBS"
7709 cat > conftest.$ac_ext <<EOF
7710 #line 7711 "configure"
7711 #include "confdefs.h"
7712 /* Override any gcc2 internal prototype to avoid an error. */
7713 /* We use char because int might match the return type of a gcc2
7714 builtin and then its argument prototype would still apply. */
7721 if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7723 eval "ac_cv_lib_$ac_lib_var=yes"
7725 echo "configure: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7728 eval "ac_cv_lib_$ac_lib_var=no"
7731 LIBS="$ac_save_LIBS"
7734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7735 echo "$ac_t""yes" 1>&6
7738 echo "$ac_t""no" 1>&6
7743 echo "$ac_t""no" 1>&6
7747 if test x$have_lirc = xtrue
7749 PLUGINS="${PLUGINS} lirc"
7750 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
7754 # Check whether --with- or --without- was given.
7755 if test "${with_+set}" = set; then
7761 # Check whether --with-words or --without-words was given.
7762 if test "${with_words+set}" = set; then
7763 withval="$with_words"
7769 ac_cv_c_bigendian=yes
7772 ac_cv_c_bigendian=no
7775 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
7776 echo "configure:7777: checking whether the byte order is big-endian" >&5
7777 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7780 ac_cv_c_bigendian=unknown
7781 cat >conftest.c <<EOF
7782 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
7783 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
7784 void _a(void) { char*s = (char*)am; s = (char *)ai; }
7785 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
7786 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
7787 void _e(void) { char*s = (char*)em; s = (char*)ei; }
7788 int main(void) { _a(); _e(); return 0; }
7791 if test -f conftest.c
7793 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
7794 && test -f conftest.o
7796 if test "`strings conftest.o | grep BIGenDianSyS`"
7798 ac_cv_c_bigendian=yes
7800 if test "`strings conftest.o | grep LiTTleEnDian`"
7802 ac_cv_c_bigendian=no
7809 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7810 if test x$ac_cv_c_bigendian = xunknown
7812 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
7816 if test $ac_cv_c_bigendian = yes
7818 cat >> confdefs.h <<\EOF
7819 #define WORDS_BIGENDIAN 1
7825 # Check whether --enable-gprof or --disable-gprof was given.
7826 if test "${enable_gprof+set}" = set; then
7827 enableval="$enable_gprof"
7828 if test x$enableval = xyes; then GPROF=1; fi
7833 # Check whether --enable-cprof or --disable-cprof was given.
7834 if test "${enable_cprof+set}" = set; then
7835 enableval="$enable_cprof"
7836 if test x$enableval = xyes;
7838 LDFLAGS="${LDFLAGS} -lcprof"
7845 # Check whether --enable-pth or --disable-pth was given.
7846 if test "${enable_pth+set}" = set; then
7847 enableval="$enable_pth"
7848 if test x$enableval = xyes; then
7849 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
7850 echo "configure:7851: checking for pth_init in -lpth" >&5
7851 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
7852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7853 echo $ac_n "(cached) $ac_c" 1>&6
7855 ac_save_LIBS="$LIBS"
7857 cat > conftest.$ac_ext <<EOF
7858 #line 7859 "configure"
7859 #include "confdefs.h"
7860 /* Override any gcc2 internal prototype to avoid an error. */
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7869 if { (eval echo configure:7870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7871 eval "ac_cv_lib_$ac_lib_var=yes"
7873 echo "configure: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7876 eval "ac_cv_lib_$ac_lib_var=no"
7879 LIBS="$ac_save_LIBS"
7882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7883 echo "$ac_t""yes" 1>&6
7884 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7885 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7886 cat >> confdefs.h <<EOF
7887 #define $ac_tr_lib 1
7893 echo "$ac_t""no" 1>&6
7896 cat > conftest.$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7902 egrep "pth_init" >/dev/null 2>&1; then
7905 cat >> confdefs.h <<\EOF
7906 #define PTH_INIT_IN_PTH_H 1
7918 # Check whether --enable-st or --disable-st was given.
7919 if test "${enable_st+set}" = set; then
7920 enableval="$enable_st"
7921 if test x$enableval = xyes; then
7922 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
7923 echo "configure:7924: checking for st_init in -lst" >&5
7924 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
7925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7928 ac_save_LIBS="$LIBS"
7930 cat > conftest.$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7933 /* Override any gcc2 internal prototype to avoid an error. */
7934 /* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7942 if { (eval echo configure:7943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7944 eval "ac_cv_lib_$ac_lib_var=yes"
7946 echo "configure: failed program was:" >&5
7947 cat conftest.$ac_ext >&5
7949 eval "ac_cv_lib_$ac_lib_var=no"
7952 LIBS="$ac_save_LIBS"
7955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7956 echo "$ac_t""yes" 1>&6
7957 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7958 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7959 cat >> confdefs.h <<EOF
7960 #define $ac_tr_lib 1
7966 echo "$ac_t""no" 1>&6
7969 cat > conftest.$ac_ext <<EOF
7970 #line 7971 "configure"
7971 #include "confdefs.h"
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975 egrep "st_init" >/dev/null 2>&1; then
7978 cat >> confdefs.h <<\EOF
7979 #define ST_INIT_IN_ST_H 1
7991 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
7993 # Check whether --enable-plugins or --disable-plugins was given.
7994 if test "${enable_plugins+set}" = set; then
7995 enableval="$enable_plugins"
7996 if test x$enable_plugins = xno
7998 BUILTINS="${BUILTINS} ${PLUGINS}"
8004 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8006 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8008 BUILTINS="${BUILTINS} ${PLUGINS}"
8012 cat >> confdefs.h <<EOF
8013 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8016 cat >> confdefs.h <<EOF
8017 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8021 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8022 cat >> confdefs.h <<EOF
8023 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8026 cat >> confdefs.h <<EOF
8027 #define MODULE_SYMBOL $VLC_SYMBOL
8031 DATA_PATH="${ac_tool_prefix}/share/videolan"
8033 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8125 cat > confcache <<\EOF
8126 # This file is a shell script that caches the results of configure
8127 # tests run on this system so they can be shared between configure
8128 # scripts and configure runs. It is not useful on other systems.
8129 # If it contains results you don't want to keep, you may remove or edit it.
8131 # By default, configure uses ./config.cache as the cache file,
8132 # creating it if it does not exist already. You can give configure
8133 # the --cache-file=FILE option to use a different cache file; that is
8134 # what configure does when it calls configure scripts in
8135 # subdirectories, so they share the cache.
8136 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8137 # config.status only pays attention to the cache file if you give it the
8138 # --recheck option to rerun configure.
8141 # The following way of writing the cache mishandles newlines in values,
8142 # but we know of no workaround that is simple, portable, and efficient.
8143 # So, don't put newlines in cache variables' values.
8144 # Ultrix sh set writes to stderr and can't be redirected directly,
8145 # and sets the high bit in the cache file unless we assign to the vars.
8147 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8149 # `set' does not quote correctly, so add quotes (double-quote substitution
8150 # turns \\\\ into \\, and sed turns \\ into \).
8152 -e "s/'/'\\\\''/g" \
8153 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8156 # `set' quotes correctly as required by POSIX, so do not add quotes.
8157 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8160 if cmp -s $cache_file confcache; then
8163 if test -w $cache_file; then
8164 echo "updating cache $cache_file"
8165 cat confcache > $cache_file
8167 echo "not updating unwritable cache $cache_file"
8172 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8174 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8175 # Let make expand exec_prefix.
8176 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8178 # Any assignment to VPATH causes Sun make to only execute
8179 # the first set of double-colon rules, so remove it if not needed.
8180 # If there is a colon in the path, we need to keep it.
8181 if test "x$srcdir" = x.; then
8182 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8185 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8187 DEFS=-DHAVE_CONFIG_H
8189 # Without the "./", some shells look in PATH for config.status.
8190 : ${CONFIG_STATUS=./config.status}
8192 echo creating $CONFIG_STATUS
8193 rm -f $CONFIG_STATUS
8194 cat > $CONFIG_STATUS <<EOF
8196 # Generated automatically by configure.
8197 # Run this file to recreate the current configuration.
8198 # This directory was configured as follows,
8199 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8201 # $0 $ac_configure_args
8203 # Compiler output produced by configure, useful for debugging
8204 # configure, is in ./config.log if it exists.
8206 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8209 case "\$ac_option" in
8210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8211 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8212 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8213 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8214 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8216 -help | --help | --hel | --he | --h)
8217 echo "\$ac_cs_usage"; exit 0 ;;
8218 *) echo "\$ac_cs_usage"; exit 1 ;;
8222 ac_given_srcdir=$srcdir
8223 ac_given_INSTALL="$INSTALL"
8225 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8227 cat >> $CONFIG_STATUS <<EOF
8229 # Protect against being on the right side of a sed subst in config.status.
8230 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8231 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8235 s%@CFLAGS@%$CFLAGS%g
8236 s%@CPPFLAGS@%$CPPFLAGS%g
8237 s%@CXXFLAGS@%$CXXFLAGS%g
8238 s%@FFLAGS@%$FFLAGS%g
8240 s%@LDFLAGS@%$LDFLAGS%g
8242 s%@exec_prefix@%$exec_prefix%g
8243 s%@prefix@%$prefix%g
8244 s%@program_transform_name@%$program_transform_name%g
8245 s%@bindir@%$bindir%g
8246 s%@sbindir@%$sbindir%g
8247 s%@libexecdir@%$libexecdir%g
8248 s%@datadir@%$datadir%g
8249 s%@sysconfdir@%$sysconfdir%g
8250 s%@sharedstatedir@%$sharedstatedir%g
8251 s%@localstatedir@%$localstatedir%g
8252 s%@libdir@%$libdir%g
8253 s%@includedir@%$includedir%g
8254 s%@oldincludedir@%$oldincludedir%g
8255 s%@infodir@%$infodir%g
8256 s%@mandir@%$mandir%g
8258 s%@host_alias@%$host_alias%g
8259 s%@host_cpu@%$host_cpu%g
8260 s%@host_vendor@%$host_vendor%g
8261 s%@host_os@%$host_os%g
8262 s%@target@%$target%g
8263 s%@target_alias@%$target_alias%g
8264 s%@target_cpu@%$target_cpu%g
8265 s%@target_vendor@%$target_vendor%g
8266 s%@target_os@%$target_os%g
8268 s%@build_alias@%$build_alias%g
8269 s%@build_cpu@%$build_cpu%g
8270 s%@build_vendor@%$build_vendor%g
8271 s%@build_os@%$build_os%g
8272 s%@SET_MAKE@%$SET_MAKE%g
8275 s%@RANLIB@%$RANLIB%g
8278 s%@ALLOCA@%$ALLOCA%g
8279 s%@GLIBC21@%$GLIBC21%g
8280 s%@LIBICONV@%$LIBICONV%g
8281 s%@USE_NLS@%$USE_NLS%g
8282 s%@MSGFMT@%$MSGFMT%g
8283 s%@GMSGFMT@%$GMSGFMT%g
8284 s%@XGETTEXT@%$XGETTEXT%g
8285 s%@INTLBISON@%$INTLBISON%g
8286 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8287 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8288 s%@CATALOGS@%$CATALOGS%g
8289 s%@CATOBJEXT@%$CATOBJEXT%g
8290 s%@GMOFILES@%$GMOFILES%g
8291 s%@INTLLIBS@%$INTLLIBS%g
8292 s%@INTLOBJS@%$INTLOBJS%g
8293 s%@POFILES@%$POFILES%g
8295 s%@DATADIRNAME@%$DATADIRNAME%g
8296 s%@INSTOBJEXT@%$INSTOBJEXT%g
8297 s%@GENCAT@%$GENCAT%g
8298 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8299 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8300 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8301 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8302 s%@INSTALL_DATA@%$INSTALL_DATA%g
8303 s%@WINDRES@%$WINDRES%g
8304 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8305 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8306 s%@SDL_CONFIG@%$SDL_CONFIG%g
8307 s%@ESD_CONFIG@%$ESD_CONFIG%g
8308 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8309 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8310 s%@GTK_CONFIG@%$GTK_CONFIG%g
8311 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8312 s%@DATA_PATH@%$DATA_PATH%g
8313 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8316 s%@PLUGINS@%$PLUGINS%g
8317 s%@BUILTINS@%$BUILTINS%g
8318 s%@ALIASES@%$ALIASES%g
8323 s%@OPTIMS@%$OPTIMS%g
8324 s%@TUNING@%$TUNING%g
8325 s%@RELEASE@%$RELEASE%g
8327 s%@BCBUILDER@%$BCBUILDER%g
8328 s%@PACKAGE@%$PACKAGE%g
8329 s%@VERSION@%$VERSION%g
8330 s%@NEED_GETOPT@%$NEED_GETOPT%g
8331 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8332 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8333 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8334 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8335 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8336 s%@arts_CFLAGS@%$arts_CFLAGS%g
8337 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8338 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8339 s%@directx_CFLAGS@%$directx_CFLAGS%g
8340 s%@esd_CFLAGS@%$esd_CFLAGS%g
8341 s%@glide_CFLAGS@%$glide_CFLAGS%g
8342 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8343 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8344 s%@kde_CFLAGS@%$kde_CFLAGS%g
8345 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8346 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8347 s%@mad_CFLAGS@%$mad_CFLAGS%g
8348 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8349 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8350 s%@qt_CFLAGS@%$qt_CFLAGS%g
8351 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8352 s%@x11_CFLAGS@%$x11_CFLAGS%g
8353 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8354 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8355 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8356 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8357 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8358 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8359 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8360 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8361 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8362 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8363 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8364 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8365 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8366 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8367 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8368 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8369 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8370 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8371 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8372 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8373 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8374 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8375 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8376 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8377 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8378 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8379 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8380 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8381 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8382 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8383 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8384 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8385 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8386 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8387 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8388 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8389 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8390 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8391 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8392 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8393 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8398 cat >> $CONFIG_STATUS <<\EOF
8400 # Split the substitutions into bite-sized pieces for seds with
8401 # small command number limits, like on Digital OSF/1 and HP-UX.
8402 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8403 ac_file=1 # Number of current file.
8404 ac_beg=1 # First line for current file.
8405 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8408 while $ac_more_lines; do
8409 if test $ac_beg -gt 1; then
8410 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8412 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8414 if test ! -s conftest.s$ac_file; then
8416 rm -f conftest.s$ac_file
8418 if test -z "$ac_sed_cmds"; then
8419 ac_sed_cmds="sed -f conftest.s$ac_file"
8421 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8423 ac_file=`expr $ac_file + 1`
8425 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8428 if test -z "$ac_sed_cmds"; then
8433 cat >> $CONFIG_STATUS <<EOF
8435 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8437 cat >> $CONFIG_STATUS <<\EOF
8438 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8439 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8441 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8442 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8443 *) ac_file_in="${ac_file}.in" ;;
8446 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8448 # Remove last slash and all that follows it. Not all systems have dirname.
8449 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8450 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8451 # The file is in a subdirectory.
8452 test ! -d "$ac_dir" && mkdir "$ac_dir"
8453 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8454 # A "../" for each directory in $ac_dir_suffix.
8455 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8457 ac_dir_suffix= ac_dots=
8460 case "$ac_given_srcdir" in
8462 if test -z "$ac_dots"; then top_srcdir=.
8463 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8464 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8466 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8467 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8470 case "$ac_given_INSTALL" in
8471 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8472 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8475 echo creating "$ac_file"
8477 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8479 *Makefile*) ac_comsub="1i\\
8480 # $configure_input" ;;
8484 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8486 s%@configure_input@%$configure_input%g
8487 s%@srcdir@%$srcdir%g
8488 s%@top_srcdir@%$top_srcdir%g
8489 s%@INSTALL@%$INSTALL%g
8490 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8494 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8495 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8497 # ac_d sets the value in "#define NAME VALUE" lines.
8498 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8499 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8502 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8503 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8504 ac_uB='\([ ]\)%\1#\2define\3'
8507 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8508 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8509 ac_eB='$%\1#\2define\3'
8513 if test "${CONFIG_HEADERS+set}" != set; then
8515 cat >> $CONFIG_STATUS <<EOF
8516 CONFIG_HEADERS="include/defs.h"
8518 cat >> $CONFIG_STATUS <<\EOF
8520 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8521 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8523 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8524 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8525 *) ac_file_in="${ac_file}.in" ;;
8528 echo creating $ac_file
8530 rm -f conftest.frag conftest.in conftest.out
8531 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8532 cat $ac_file_inputs > conftest.in
8536 # Transform confdefs.h into a sed script conftest.vals that substitutes
8537 # the proper values into config.h.in to produce config.h. And first:
8538 # Protect against being on the right side of a sed subst in config.status.
8539 # Protect against being in an unquoted here document in config.status.
8541 cat > conftest.hdr <<\EOF
8544 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8548 sed -n -f conftest.hdr confdefs.h > conftest.vals
8551 # This sed command replaces #undef with comments. This is necessary, for
8552 # example, in the case of _POSIX_SOURCE, which is predefined and required
8553 # on some systems where configure will not decide to define it.
8554 cat >> conftest.vals <<\EOF
8555 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8558 # Break up conftest.vals because some shells have a limit on
8559 # the size of here documents, and old seds have small limits too.
8564 ac_lines=`grep -c . conftest.vals`
8565 # grep -c gives empty output for an empty file on some AIX systems.
8566 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8567 # Write a limited-size here document to conftest.frag.
8568 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8569 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8571 sed -f conftest.frag conftest.in > conftest.out
8573 mv conftest.out conftest.in
8575 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8577 mv conftest.tail conftest.vals
8581 cat >> $CONFIG_STATUS <<\EOF
8582 rm -f conftest.frag conftest.h
8583 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8584 cat conftest.in >> conftest.h
8586 if cmp -s $ac_file conftest.h 2>/dev/null; then
8587 echo "$ac_file is unchanged"
8590 # Remove last slash and all that follows it. Not all systems have dirname.
8591 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8592 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8593 # The file is in a subdirectory.
8594 test ! -d "$ac_dir" && mkdir "$ac_dir"
8597 mv conftest.h $ac_file
8602 cat >> $CONFIG_STATUS <<EOF
8606 cat >> $CONFIG_STATUS <<\EOF
8607 for ac_file in $CONFIG_FILES; do
8608 # Support "outfile[:infile[:infile...]]"
8610 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8612 # PO directories have a Makefile.in generated from Makefile.in.in.
8613 case "$ac_file" in */Makefile.in)
8614 # Adjust a relative srcdir.
8615 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8616 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8617 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8618 # In autoconf-2.13 it is called $ac_given_srcdir.
8619 # In autoconf-2.50 it is called $srcdir.
8620 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8621 case "$ac_given_srcdir" in
8622 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8623 /*) top_srcdir="$ac_given_srcdir" ;;
8624 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8626 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8627 rm -f "$ac_dir/POTFILES"
8628 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8629 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8630 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8631 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8639 chmod +x $CONFIG_STATUS
8640 rm -fr confdefs* $ac_clean_files
8641 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8646 --------------------
8647 vlc version : ${VERSION}
8649 architecture : ${ARCH}
8650 optimizations : ${OPTIMS}
8652 debug mode : ${DEBUG}
8653 release : ${RELEASE}
8654 cprof/gprof support : ${CPROF}/${GPROF}
8655 need builtin getopt : ${NEED_GETOPT}
8656 built-in modules :${BUILTINS}
8657 plug-in modules :${PLUGINS}
8658 vlc aliases :${ALIASES}
8660 You may now tune Makefile.opts at your convenience, for instance to choose
8661 which modules get compiled as plugins.
8663 To build vlc and its plugins, type \`$VLC_MAKE'.