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 --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)"
132 --enable-gprof gprof profiling (default disabled)"
134 --enable-cprof cprof profiling (default disabled)"
136 --enable-pth GNU Pth support (default disabled)"
138 --enable-st State Threads (default disabled)"
140 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
142 # Initialize some variables set by options.
143 # The variables have the same names as the options, with
144 # dashes changed to underlines.
146 cache_file=./config.cache
155 program_transform_name=s,x,x,
163 bindir='${exec_prefix}/bin'
164 sbindir='${exec_prefix}/sbin'
165 libexecdir='${exec_prefix}/libexec'
166 datadir='${prefix}/share'
167 sysconfdir='${prefix}/etc'
168 sharedstatedir='${prefix}/com'
169 localstatedir='${prefix}/var'
170 libdir='${exec_prefix}/lib'
171 includedir='${prefix}/include'
172 oldincludedir='/usr/include'
173 infodir='${prefix}/info'
174 mandir='${prefix}/man'
176 # Initialize some other variables.
179 SHELL=${CONFIG_SHELL-/bin/sh}
180 # Maximum number of lines to put in a shell here document.
187 # If the previous option needs an argument, assign it.
188 if test -n "$ac_prev"; then
189 eval "$ac_prev=\$ac_option"
195 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
199 # Accept the important Cygnus configure options, so we can diagnose typos.
203 -bindir | --bindir | --bindi | --bind | --bin | --bi)
205 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
206 bindir="$ac_optarg" ;;
208 -build | --build | --buil | --bui | --bu)
210 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
211 build="$ac_optarg" ;;
213 -cache-file | --cache-file | --cache-fil | --cache-fi \
214 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
215 ac_prev=cache_file ;;
216 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
217 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
218 cache_file="$ac_optarg" ;;
220 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
222 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
224 datadir="$ac_optarg" ;;
226 -disable-* | --disable-*)
227 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
230 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
232 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
233 eval "enable_${ac_feature}=no" ;;
235 -enable-* | --enable-*)
236 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
239 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
241 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
246 eval "enable_${ac_feature}='$ac_optarg'" ;;
248 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
249 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
250 | --exec | --exe | --ex)
251 ac_prev=exec_prefix ;;
252 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
253 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
254 | --exec=* | --exe=* | --ex=*)
255 exec_prefix="$ac_optarg" ;;
257 -gas | --gas | --ga | --g)
258 # Obsolete; use --with-gas.
261 -help | --help | --hel | --he)
262 # Omit some internal or obsolete options to make the list less imposing.
263 # This message is too long to be a string in the A/UX 3.1 sh.
265 Usage: configure [options] [host]
266 Options: [defaults in brackets after descriptions]
268 --cache-file=FILE cache test results in FILE
269 --help print this message
270 --no-create do not create output files
271 --quiet, --silent do not print \`checking...' messages
272 --version print the version of autoconf that created configure
273 Directory and file names:
274 --prefix=PREFIX install architecture-independent files in PREFIX
276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
278 --bindir=DIR user executables in DIR [EPREFIX/bin]
279 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
280 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
281 --datadir=DIR read-only architecture-independent data in DIR
283 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
284 --sharedstatedir=DIR modifiable architecture-independent data in DIR
286 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
287 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
288 --includedir=DIR C header files in DIR [PREFIX/include]
289 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
290 --infodir=DIR info documentation in DIR [PREFIX/info]
291 --mandir=DIR man documentation in DIR [PREFIX/man]
292 --srcdir=DIR find the sources in DIR [configure dir or ..]
293 --program-prefix=PREFIX prepend PREFIX to installed program names
294 --program-suffix=SUFFIX append SUFFIX to installed program names
295 --program-transform-name=PROGRAM
296 run sed PROGRAM on installed program names
300 --build=BUILD configure for building on BUILD [BUILD=HOST]
301 --host=HOST configure for HOST [guessed]
302 --target=TARGET configure for TARGET [TARGET=HOST]
303 Features and packages:
304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
308 --x-includes=DIR X include files are in DIR
309 --x-libraries=DIR X library files are in DIR
311 if test -n "$ac_help"; then
312 echo "--enable and --with options recognized:$ac_help"
316 -host | --host | --hos | --ho)
318 -host=* | --host=* | --hos=* | --ho=*)
321 -includedir | --includedir | --includedi | --included | --include \
322 | --includ | --inclu | --incl | --inc)
323 ac_prev=includedir ;;
324 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
325 | --includ=* | --inclu=* | --incl=* | --inc=*)
326 includedir="$ac_optarg" ;;
328 -infodir | --infodir | --infodi | --infod | --info | --inf)
330 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
331 infodir="$ac_optarg" ;;
333 -libdir | --libdir | --libdi | --libd)
335 -libdir=* | --libdir=* | --libdi=* | --libd=*)
336 libdir="$ac_optarg" ;;
338 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
339 | --libexe | --libex | --libe)
340 ac_prev=libexecdir ;;
341 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
342 | --libexe=* | --libex=* | --libe=*)
343 libexecdir="$ac_optarg" ;;
345 -localstatedir | --localstatedir | --localstatedi | --localstated \
346 | --localstate | --localstat | --localsta | --localst \
347 | --locals | --local | --loca | --loc | --lo)
348 ac_prev=localstatedir ;;
349 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
350 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
351 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
352 localstatedir="$ac_optarg" ;;
354 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
356 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
357 mandir="$ac_optarg" ;;
360 # Obsolete; use --without-fp.
363 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
367 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
368 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
371 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
372 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
373 | --oldin | --oldi | --old | --ol | --o)
374 ac_prev=oldincludedir ;;
375 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
376 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
377 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
378 oldincludedir="$ac_optarg" ;;
380 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
382 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
383 prefix="$ac_optarg" ;;
385 -program-prefix | --program-prefix | --program-prefi | --program-pref \
386 | --program-pre | --program-pr | --program-p)
387 ac_prev=program_prefix ;;
388 -program-prefix=* | --program-prefix=* | --program-prefi=* \
389 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
390 program_prefix="$ac_optarg" ;;
392 -program-suffix | --program-suffix | --program-suffi | --program-suff \
393 | --program-suf | --program-su | --program-s)
394 ac_prev=program_suffix ;;
395 -program-suffix=* | --program-suffix=* | --program-suffi=* \
396 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
397 program_suffix="$ac_optarg" ;;
399 -program-transform-name | --program-transform-name \
400 | --program-transform-nam | --program-transform-na \
401 | --program-transform-n | --program-transform- \
402 | --program-transform | --program-transfor \
403 | --program-transfo | --program-transf \
404 | --program-trans | --program-tran \
405 | --progr-tra | --program-tr | --program-t)
406 ac_prev=program_transform_name ;;
407 -program-transform-name=* | --program-transform-name=* \
408 | --program-transform-nam=* | --program-transform-na=* \
409 | --program-transform-n=* | --program-transform-=* \
410 | --program-transform=* | --program-transfor=* \
411 | --program-transfo=* | --program-transf=* \
412 | --program-trans=* | --program-tran=* \
413 | --progr-tra=* | --program-tr=* | --program-t=*)
414 program_transform_name="$ac_optarg" ;;
416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
417 | -silent | --silent | --silen | --sile | --sil)
420 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
422 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
424 sbindir="$ac_optarg" ;;
426 -sharedstatedir | --sharedstatedir | --sharedstatedi \
427 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
428 | --sharedst | --shareds | --shared | --share | --shar \
430 ac_prev=sharedstatedir ;;
431 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
432 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
433 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
435 sharedstatedir="$ac_optarg" ;;
437 -site | --site | --sit)
439 -site=* | --site=* | --sit=*)
442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
445 srcdir="$ac_optarg" ;;
447 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
448 | --syscon | --sysco | --sysc | --sys | --sy)
449 ac_prev=sysconfdir ;;
450 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
451 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
452 sysconfdir="$ac_optarg" ;;
454 -target | --target | --targe | --targ | --tar | --ta | --t)
456 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
457 target="$ac_optarg" ;;
459 -v | -verbose | --verbose | --verbos | --verbo | --verb)
462 -version | --version | --versio | --versi | --vers)
463 echo "configure generated by autoconf version 2.13"
467 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
468 # Reject names that are not valid shell variable names.
469 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
470 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
472 ac_package=`echo $ac_package| sed 's/-/_/g'`
477 eval "with_${ac_package}='$ac_optarg'" ;;
479 -without-* | --without-*)
480 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
481 # Reject names that are not valid shell variable names.
482 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
483 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
485 ac_package=`echo $ac_package| sed 's/-/_/g'`
486 eval "with_${ac_package}=no" ;;
489 # Obsolete; use --with-x.
492 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
493 | --x-incl | --x-inc | --x-in | --x-i)
494 ac_prev=x_includes ;;
495 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
496 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
497 x_includes="$ac_optarg" ;;
499 -x-libraries | --x-libraries | --x-librarie | --x-librari \
500 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
501 ac_prev=x_libraries ;;
502 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
503 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
504 x_libraries="$ac_optarg" ;;
506 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
510 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
511 echo "configure: warning: $ac_option: invalid host type" 1>&2
513 if test "x$nonopt" != xNONE; then
514 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
522 if test -n "$ac_prev"; then
523 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
526 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
528 # File descriptor usage:
531 # 2 errors and warnings
532 # 3 some systems may open it to /dev/tty
533 # 4 used on the Kubota Titan
534 # 6 checking for... messages and results
535 # 5 compiler messages saved in config.log
536 if test "$silent" = yes; then
544 This file contains any messages produced by compilers while
545 running configure, to aid debugging if configure makes a mistake.
548 # Strip out --no-create and --no-recursion so they do not pile up.
549 # Also quote any args containing shell metacharacters.
554 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
555 | --no-cr | --no-c) ;;
556 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
557 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
558 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
559 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
560 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
565 # Only set these to C if already set. These must not be set unconditionally
566 # because not all systems understand e.g. LANG=C (notably SCO).
567 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
568 # Non-C LC_CTYPE values break the ctype check.
569 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
570 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
571 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
572 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
574 # confdefs.h avoids OS command line length limits that DEFS can exceed.
575 rm -rf conftest* confdefs.h
576 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
579 # A filename unique to this package, relative to the directory that
580 # configure is in, which we can look for to find out if srcdir is correct.
581 ac_unique_file=include/main.h
583 # Find the source files, if location was not specified.
584 if test -z "$srcdir"; then
585 ac_srcdir_defaulted=yes
586 # Try the directory containing this script, then its parent.
588 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
589 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
591 if test ! -r $srcdir/$ac_unique_file; then
595 ac_srcdir_defaulted=no
597 if test ! -r $srcdir/$ac_unique_file; then
598 if test "$ac_srcdir_defaulted" = yes; then
599 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
601 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
604 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
606 # Prefer explicitly selected file to automatically selected ones.
607 if test -z "$CONFIG_SITE"; then
608 if test "x$prefix" != xNONE; then
609 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
611 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
614 for ac_site_file in $CONFIG_SITE; do
615 if test -r "$ac_site_file"; then
616 echo "loading site script $ac_site_file"
621 if test -r "$cache_file"; then
622 echo "loading cache $cache_file"
625 echo "creating cache $cache_file"
630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
631 ac_cpp='$CPP $CPPFLAGS'
632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
634 cross_compiling=$ac_cv_prog_cc_cross
638 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
639 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
640 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
647 ac_n= ac_c='\c' ac_t=
654 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
655 if test -f $ac_dir/install-sh; then
657 ac_install_sh="$ac_aux_dir/install-sh -c"
659 elif test -f $ac_dir/install.sh; then
661 ac_install_sh="$ac_aux_dir/install.sh -c"
665 if test -z "$ac_aux_dir"; then
666 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
668 ac_config_guess=$ac_aux_dir/config.guess
669 ac_config_sub=$ac_aux_dir/config.sub
670 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
673 # Do some error checking and defaulting for the host and target type.
675 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
678 # 1. You are not allowed to specify --host, --target, and nonopt at the
680 # 2. Host defaults to nonopt.
681 # 3. If nonopt is not specified, then host defaults to the current host,
682 # as determined by config.guess.
683 # 4. Target and build default to nonopt.
684 # 5. If nonopt is not specified, then target and build default to host.
686 # The aliases save the names the user supplied, while $host etc.
687 # will get canonicalized.
688 case $host---$target---$nonopt in
689 NONE---*---* | *---NONE---* | *---*---NONE) ;;
690 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
694 # Make sure we can run config.sub.
695 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
696 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
699 echo $ac_n "checking host system type""... $ac_c" 1>&6
700 echo "configure:701: checking host system type" >&5
703 case "$host_alias" in
707 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
708 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
710 *) host_alias=$nonopt ;;
714 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
715 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
716 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
717 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
718 echo "$ac_t""$host" 1>&6
720 echo $ac_n "checking target system type""... $ac_c" 1>&6
721 echo "configure:722: checking target system type" >&5
724 case "$target_alias" in
727 NONE) target_alias=$host_alias ;;
728 *) target_alias=$nonopt ;;
732 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
733 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
734 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
735 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
736 echo "$ac_t""$target" 1>&6
738 echo $ac_n "checking build system type""... $ac_c" 1>&6
739 echo "configure:740: checking build system type" >&5
742 case "$build_alias" in
745 NONE) build_alias=$host_alias ;;
746 *) build_alias=$nonopt ;;
750 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
751 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
752 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
753 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
754 echo "$ac_t""$build" 1>&6
756 test "$host_alias" != "$target_alias" &&
757 test "$program_prefix$program_suffix$program_transform_name" = \
759 program_prefix=${target_alias}-
765 save_CFLAGS="${CFLAGS}"
766 save_LDFLAGS="${LDFLAGS}"
768 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
769 echo "configure:770: checking whether ${MAKE-make} sets \${MAKE}" >&5
770 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
771 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
774 cat > conftestmake <<\EOF
776 @echo 'ac_maketemp="${MAKE}"'
778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
779 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
780 if test -n "$ac_maketemp"; then
781 eval ac_cv_prog_make_${ac_make}_set=yes
783 eval ac_cv_prog_make_${ac_make}_set=no
787 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
788 echo "$ac_t""yes" 1>&6
791 echo "$ac_t""no" 1>&6
792 SET_MAKE="MAKE=${MAKE-make}"
795 # Extract the first word of "gcc", so it can be a program name with args.
796 set dummy gcc; ac_word=$2
797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
798 echo "configure:799: checking for $ac_word" >&5
799 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
802 if test -n "$CC"; then
803 ac_cv_prog_CC="$CC" # Let the user override the test.
805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
807 for ac_dir in $ac_dummy; do
808 test -z "$ac_dir" && ac_dir=.
809 if test -f $ac_dir/$ac_word; then
818 if test -n "$CC"; then
819 echo "$ac_t""$CC" 1>&6
821 echo "$ac_t""no" 1>&6
824 if test -z "$CC"; then
825 # Extract the first word of "cc", so it can be a program name with args.
826 set dummy cc; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC="$CC" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
838 for ac_dir in $ac_dummy; do
839 test -z "$ac_dir" && ac_dir=.
840 if test -f $ac_dir/$ac_word; then
841 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
850 if test $ac_prog_rejected = yes; then
851 # We found a bogon in the path, so make sure we never use it.
852 set dummy $ac_cv_prog_CC
854 if test $# -gt 0; then
855 # We chose a different compiler from the bogus one.
856 # However, it has the same basename, so the bogon will be chosen
857 # first if we set CC to just the basename; use the full file name.
859 set dummy "$ac_dir/$ac_word" "$@"
867 if test -n "$CC"; then
868 echo "$ac_t""$CC" 1>&6
870 echo "$ac_t""no" 1>&6
873 if test -z "$CC"; then
876 # Extract the first word of "cl", so it can be a program name with args.
877 set dummy cl; ac_word=$2
878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
879 echo "configure:880: checking for $ac_word" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 if test -n "$CC"; then
884 ac_cv_prog_CC="$CC" # Let the user override the test.
886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
888 for ac_dir in $ac_dummy; do
889 test -z "$ac_dir" && ac_dir=.
890 if test -f $ac_dir/$ac_word; then
899 if test -n "$CC"; then
900 echo "$ac_t""$CC" 1>&6
902 echo "$ac_t""no" 1>&6
907 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
910 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
911 echo "configure:912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
915 ac_cpp='$CPP $CPPFLAGS'
916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
918 cross_compiling=$ac_cv_prog_cc_cross
920 cat > conftest.$ac_ext << EOF
922 #line 923 "configure"
923 #include "confdefs.h"
927 if { (eval echo configure:928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
928 ac_cv_prog_cc_works=yes
929 # If we can't run a trivial program, we are probably using a cross compiler.
930 if (./conftest; exit) 2>/dev/null; then
931 ac_cv_prog_cc_cross=no
933 ac_cv_prog_cc_cross=yes
936 echo "configure: failed program was:" >&5
937 cat conftest.$ac_ext >&5
938 ac_cv_prog_cc_works=no
942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
943 ac_cpp='$CPP $CPPFLAGS'
944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
946 cross_compiling=$ac_cv_prog_cc_cross
948 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
949 if test $ac_cv_prog_cc_works = no; then
950 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
952 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
953 echo "configure:954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
954 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
955 cross_compiling=$ac_cv_prog_cc_cross
957 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
958 echo "configure:959: checking whether we are using GNU C" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 cat > conftest.c <<EOF
967 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
974 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
976 if test $ac_cv_prog_gcc = yes; then
982 ac_test_CFLAGS="${CFLAGS+set}"
983 ac_save_CFLAGS="$CFLAGS"
985 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
986 echo "configure:987: checking whether ${CC-cc} accepts -g" >&5
987 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 echo 'void f(){}' > conftest.c
991 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1000 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1001 if test "$ac_test_CFLAGS" = set; then
1002 CFLAGS="$ac_save_CFLAGS"
1003 elif test $ac_cv_prog_cc_g = yes; then
1004 if test "$GCC" = yes; then
1010 if test "$GCC" = yes; then
1017 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1018 echo "configure:1019: checking how to run the C preprocessor" >&5
1019 # On Suns, sometimes $CPP names a directory.
1020 if test -n "$CPP" && test -d "$CPP"; then
1023 if test -z "$CPP"; then
1024 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 # This must be in double quotes, not single quotes, because CPP may get
1028 # substituted into the Makefile and "${CC-cc}" will confuse make.
1030 # On the NeXT, cc -E runs the code through the compiler's parser,
1031 # not just through cpp.
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1039 { (eval echo configure:1040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1041 if test -z "$ac_err"; then
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1048 CPP="${CC-cc} -E -traditional-cpp"
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1056 { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1058 if test -z "$ac_err"; then
1062 echo "configure: failed program was:" >&5
1063 cat conftest.$ac_ext >&5
1065 CPP="${CC-cc} -nologo -E"
1066 cat > conftest.$ac_ext <<EOF
1067 #line 1068 "configure"
1068 #include "confdefs.h"
1072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1073 { (eval echo configure:1074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1075 if test -z "$ac_err"; then
1079 echo "configure: failed program was:" >&5
1080 cat conftest.$ac_ext >&5
1089 ac_cv_prog_CPP="$CPP"
1091 CPP="$ac_cv_prog_CPP"
1093 ac_cv_prog_CPP="$CPP"
1095 echo "$ac_t""$CPP" 1>&6
1098 if test $host != $build; then
1099 ac_tool_prefix=${host_alias}-
1104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 if test -n "$RANLIB"; then
1112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1116 for ac_dir in $ac_dummy; do
1117 test -z "$ac_dir" && ac_dir=.
1118 if test -f $ac_dir/$ac_word; then
1119 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1126 RANLIB="$ac_cv_prog_RANLIB"
1127 if test -n "$RANLIB"; then
1128 echo "$ac_t""$RANLIB" 1>&6
1130 echo "$ac_t""no" 1>&6
1134 if test -z "$ac_cv_prog_RANLIB"; then
1135 if test -n "$ac_tool_prefix"; then
1136 # Extract the first word of "ranlib", so it can be a program name with args.
1137 set dummy ranlib; ac_word=$2
1138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1139 echo "configure:1140: checking for $ac_word" >&5
1140 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1143 if test -n "$RANLIB"; then
1144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1148 for ac_dir in $ac_dummy; do
1149 test -z "$ac_dir" && ac_dir=.
1150 if test -f $ac_dir/$ac_word; then
1151 ac_cv_prog_RANLIB="ranlib"
1156 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1159 RANLIB="$ac_cv_prog_RANLIB"
1160 if test -n "$RANLIB"; then
1161 echo "$ac_t""$RANLIB" 1>&6
1163 echo "$ac_t""no" 1>&6
1172 # Extract the first word of "gmake", so it can be a program name with args.
1173 set dummy gmake; ac_word=$2
1174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1175 echo "configure:1176: checking for $ac_word" >&5
1176 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1181 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1184 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1189 for ac_dir in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir=.
1191 if test -f $ac_dir/$ac_word; then
1192 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1197 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1201 GMAKE="$ac_cv_path_GMAKE"
1202 if test -n "$GMAKE"; then
1203 echo "$ac_t""$GMAKE" 1>&6
1205 echo "$ac_t""no" 1>&6
1208 if test "x$GMAKE" = "xno"; then
1209 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1210 echo "configure:1211: checking whether GNU make is installed" >&5
1211 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 if make --version | grep -q -i gnu; then
1217 echo "This software needs you to install GNU make to compile properly."
1218 echo "You can get it from http://www.gnu.org/."
1223 echo "$ac_t""$ac_cv_gmake" 1>&6
1229 ALL_LINGUAS="de fr ja no ru nl"
1231 cat >> confdefs.h <<EOF
1232 #define VLC_PACKAGE "vlc"
1235 cat >> confdefs.h <<EOF
1236 #define VLC_VERSION "$VERSION"
1239 # Extract the first word of "ranlib", so it can be a program name with args.
1240 set dummy ranlib; ac_word=$2
1241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1242 echo "configure:1243: checking for $ac_word" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1246 if test -n "$RANLIB"; then
1247 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1251 for ac_dir in $ac_dummy; do
1252 test -z "$ac_dir" && ac_dir=.
1253 if test -f $ac_dir/$ac_word; then
1254 ac_cv_prog_RANLIB="ranlib"
1259 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1262 RANLIB="$ac_cv_prog_RANLIB"
1263 if test -n "$RANLIB"; then
1264 echo "$ac_t""$RANLIB" 1>&6
1266 echo "$ac_t""no" 1>&6
1270 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1271 echo "configure:1272: checking for strerror in -lcposix" >&5
1272 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 ac_save_LIBS="$LIBS"
1277 LIBS="-lcposix $LIBS"
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1281 /* Override any gcc2 internal prototype to avoid an error. */
1282 /* We use char because int might match the return type of a gcc2
1283 builtin and then its argument prototype would still apply. */
1290 if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1292 eval "ac_cv_lib_$ac_lib_var=yes"
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1297 eval "ac_cv_lib_$ac_lib_var=no"
1300 LIBS="$ac_save_LIBS"
1303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1304 echo "$ac_t""yes" 1>&6
1305 LIBS="$LIBS -lcposix"
1307 echo "$ac_t""no" 1>&6
1312 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1313 echo "configure:1314: checking for ANSI C header files" >&5
1314 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 cat > conftest.$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1326 { (eval echo configure:1327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1328 if test -z "$ac_err"; then
1330 ac_cv_header_stdc=yes
1333 echo "configure: failed program was:" >&5
1334 cat conftest.$ac_ext >&5
1336 ac_cv_header_stdc=no
1340 if test $ac_cv_header_stdc = yes; then
1341 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1342 cat > conftest.$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1348 egrep "memchr" >/dev/null 2>&1; then
1352 ac_cv_header_stdc=no
1358 if test $ac_cv_header_stdc = yes; then
1359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1360 cat > conftest.$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1366 egrep "free" >/dev/null 2>&1; then
1370 ac_cv_header_stdc=no
1376 if test $ac_cv_header_stdc = yes; then
1377 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1378 if test "$cross_compiling" = yes; then
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1385 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1386 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1388 int main () { int i; for (i = 0; i < 256; i++)
1389 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1393 if { (eval echo configure:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1397 echo "configure: failed program was:" >&5
1398 cat conftest.$ac_ext >&5
1400 ac_cv_header_stdc=no
1408 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1409 if test $ac_cv_header_stdc = yes; then
1410 cat >> confdefs.h <<\EOF
1411 #define STDC_HEADERS 1
1416 echo $ac_n "checking for working const""... $ac_c" 1>&6
1417 echo "configure:1418: checking for working const" >&5
1418 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 cat > conftest.$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1427 /* Ultrix mips cc rejects this. */
1428 typedef int charset[2]; const charset x;
1429 /* SunOS 4.1.1 cc rejects this. */
1430 char const *const *ccp;
1432 /* NEC SVR4.0.2 mips cc rejects this. */
1433 struct point {int x, y;};
1434 static struct point const zero = {0,0};
1435 /* AIX XL C 1.02.0.0 rejects this.
1436 It does not let you subtract one const X* pointer from another in an arm
1437 of an if-expression whose if-part is not a constant expression */
1438 const char *g = "string";
1439 ccp = &g + (g ? g-g : 0);
1440 /* HPUX 7.0 cc rejects these. */
1443 ccp = (char const *const *) p;
1444 { /* SCO 3.2v4 cc rejects this. */
1446 char const *s = 0 ? (char *) 0 : (char const *) 0;
1450 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1452 const int *foo = &x[0];
1455 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1456 typedef const int *iptr;
1460 { /* AIX XL C 1.02.0.0 rejects this saying
1461 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1462 struct s { int j; const int *ap[3]; };
1463 struct s *b; b->j = 5;
1465 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1471 if { (eval echo configure:1472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1483 echo "$ac_t""$ac_cv_c_const" 1>&6
1484 if test $ac_cv_c_const = no; then
1485 cat >> confdefs.h <<\EOF
1491 echo $ac_n "checking for inline""... $ac_c" 1>&6
1492 echo "configure:1493: checking for inline" >&5
1493 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1497 for ac_kw in inline __inline__ __inline; do
1498 cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1506 if { (eval echo configure:1507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1508 ac_cv_c_inline=$ac_kw; break
1510 echo "configure: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1518 echo "$ac_t""$ac_cv_c_inline" 1>&6
1519 case "$ac_cv_c_inline" in
1521 no) cat >> confdefs.h <<\EOF
1525 *) cat >> confdefs.h <<EOF
1526 #define inline $ac_cv_c_inline
1531 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1532 echo "configure:1533: checking for off_t" >&5
1533 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1536 cat > conftest.$ac_ext <<EOF
1537 #line 1538 "configure"
1538 #include "confdefs.h"
1539 #include <sys/types.h>
1545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1546 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1548 ac_cv_type_off_t=yes
1556 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1557 if test $ac_cv_type_off_t = no; then
1558 cat >> confdefs.h <<\EOF
1564 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1565 echo "configure:1566: checking for size_t" >&5
1566 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1569 cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1572 #include <sys/types.h>
1578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1579 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1581 ac_cv_type_size_t=yes
1584 ac_cv_type_size_t=no
1589 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1590 if test $ac_cv_type_size_t = no; then
1591 cat >> confdefs.h <<\EOF
1592 #define size_t unsigned
1597 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1598 # for constant arguments. Useless!
1599 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1600 echo "configure:1601: checking for working alloca.h" >&5
1601 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1604 cat > conftest.$ac_ext <<EOF
1605 #line 1606 "configure"
1606 #include "confdefs.h"
1609 char *p = alloca(2 * sizeof(int));
1612 if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1614 ac_cv_header_alloca_h=yes
1616 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1619 ac_cv_header_alloca_h=no
1624 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1625 if test $ac_cv_header_alloca_h = yes; then
1626 cat >> confdefs.h <<\EOF
1627 #define HAVE_ALLOCA_H 1
1632 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1633 echo "configure:1634: checking for alloca" >&5
1634 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 cat > conftest.$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1642 # define alloca __builtin_alloca
1645 # include <malloc.h>
1646 # define alloca _alloca
1649 # include <alloca.h>
1654 # ifndef alloca /* predefined by HP cc +Olibcalls */
1663 char *p = (char *) alloca(1);
1666 if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1668 ac_cv_func_alloca_works=yes
1670 echo "configure: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1673 ac_cv_func_alloca_works=no
1678 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1679 if test $ac_cv_func_alloca_works = yes; then
1680 cat >> confdefs.h <<\EOF
1681 #define HAVE_ALLOCA 1
1686 if test $ac_cv_func_alloca_works = no; then
1687 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1688 # that cause trouble. Some versions do not even contain alloca or
1689 # contain a buggy version. If you still want to use their alloca,
1690 # use ar to extract alloca.o from them instead of compiling alloca.c.
1691 ALLOCA=alloca.${ac_objext}
1692 cat >> confdefs.h <<\EOF
1697 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1698 echo "configure:1699: checking whether alloca needs Cray hooks" >&5
1699 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1705 #if defined(CRAY) && ! defined(CRAY2)
1712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1713 egrep "webecray" >/dev/null 2>&1; then
1724 echo "$ac_t""$ac_cv_os_cray" 1>&6
1725 if test $ac_cv_os_cray = yes; then
1726 for ac_func in _getb67 GETB67 getb67; do
1727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1728 echo "configure:1729: checking for $ac_func" >&5
1729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1732 cat > conftest.$ac_ext <<EOF
1733 #line 1734 "configure"
1734 #include "confdefs.h"
1735 /* System header to define __stub macros and hopefully few prototypes,
1736 which can conflict with char $ac_func(); below. */
1738 /* Override any gcc2 internal prototype to avoid an error. */
1739 /* We use char because int might match the return type of a gcc2
1740 builtin and then its argument prototype would still apply. */
1745 /* The GNU C library defines this for functions which it implements
1746 to always fail with ENOSYS. Some functions are actually named
1747 something starting with __ and the normal name is an alias. */
1748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1758 eval "ac_cv_func_$ac_func=yes"
1760 echo "configure: failed program was:" >&5
1761 cat conftest.$ac_ext >&5
1763 eval "ac_cv_func_$ac_func=no"
1768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1769 echo "$ac_t""yes" 1>&6
1770 cat >> confdefs.h <<EOF
1771 #define CRAY_STACKSEG_END $ac_func
1776 echo "$ac_t""no" 1>&6
1782 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1783 echo "configure:1784: checking stack direction for C alloca" >&5
1784 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 if test "$cross_compiling" = yes; then
1788 ac_cv_c_stack_direction=0
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1793 find_stack_direction ()
1795 static char *addr = 0;
1800 return find_stack_direction ();
1803 return (&dummy > addr) ? 1 : -1;
1807 exit (find_stack_direction() < 0);
1810 if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1812 ac_cv_c_stack_direction=1
1814 echo "configure: failed program was:" >&5
1815 cat conftest.$ac_ext >&5
1817 ac_cv_c_stack_direction=-1
1824 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1825 cat >> confdefs.h <<EOF
1826 #define STACK_DIRECTION $ac_cv_c_stack_direction
1831 for ac_hdr in unistd.h
1833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1835 echo "configure:1836: checking for $ac_hdr" >&5
1836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1839 cat > conftest.$ac_ext <<EOF
1840 #line 1841 "configure"
1841 #include "confdefs.h"
1844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1845 { (eval echo configure:1846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1847 if test -z "$ac_err"; then
1849 eval "ac_cv_header_$ac_safe=yes"
1852 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1855 eval "ac_cv_header_$ac_safe=no"
1859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1860 echo "$ac_t""yes" 1>&6
1861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1862 cat >> confdefs.h <<EOF
1863 #define $ac_tr_hdr 1
1867 echo "$ac_t""no" 1>&6
1871 for ac_func in getpagesize
1873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1874 echo "configure:1875: checking for $ac_func" >&5
1875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 /* System header to define __stub macros and hopefully few prototypes,
1882 which can conflict with char $ac_func(); below. */
1884 /* Override any gcc2 internal prototype to avoid an error. */
1885 /* We use char because int might match the return type of a gcc2
1886 builtin and then its argument prototype would still apply. */
1891 /* The GNU C library defines this for functions which it implements
1892 to always fail with ENOSYS. Some functions are actually named
1893 something starting with __ and the normal name is an alias. */
1894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1902 if { (eval echo configure:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1904 eval "ac_cv_func_$ac_func=yes"
1906 echo "configure: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1909 eval "ac_cv_func_$ac_func=no"
1914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1915 echo "$ac_t""yes" 1>&6
1916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1917 cat >> confdefs.h <<EOF
1918 #define $ac_tr_func 1
1922 echo "$ac_t""no" 1>&6
1926 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1927 echo "configure:1928: checking for working mmap" >&5
1928 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 if test "$cross_compiling" = yes; then
1932 ac_cv_func_mmap_fixed_mapped=no
1934 cat > conftest.$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1938 /* Thanks to Mike Haertel and Jim Avera for this test.
1939 Here is a matrix of mmap possibilities:
1940 mmap private not fixed
1941 mmap private fixed at somewhere currently unmapped
1942 mmap private fixed at somewhere already mapped
1943 mmap shared not fixed
1944 mmap shared fixed at somewhere currently unmapped
1945 mmap shared fixed at somewhere already mapped
1946 For private mappings, we should verify that changes cannot be read()
1947 back from the file, nor mmap's back from the file at a different
1948 address. (There have been systems where private was not correctly
1949 implemented like the infamous i386 svr4.0, and systems where the
1950 VM page cache was not coherent with the filesystem buffer cache
1951 like early versions of FreeBSD and possibly contemporary NetBSD.)
1952 For shared mappings, we should conversely verify that changes get
1953 propogated back to all the places they're supposed to be.
1955 Grep wants private fixed already mapped.
1956 The main things grep needs to know about mmap are:
1957 * does it exist and is it safe to write into the mmap'd area
1958 * how to use it (BSD variants) */
1959 #include <sys/types.h>
1961 #include <sys/mman.h>
1963 /* This mess was copied from the GNU getpagesize.h. */
1964 #ifndef HAVE_GETPAGESIZE
1965 # ifdef HAVE_UNISTD_H
1966 # include <unistd.h>
1969 /* Assume that all systems that can run configure have sys/param.h. */
1970 # ifndef HAVE_SYS_PARAM_H
1971 # define HAVE_SYS_PARAM_H 1
1974 # ifdef _SC_PAGESIZE
1975 # define getpagesize() sysconf(_SC_PAGESIZE)
1976 # else /* no _SC_PAGESIZE */
1977 # ifdef HAVE_SYS_PARAM_H
1978 # include <sys/param.h>
1979 # ifdef EXEC_PAGESIZE
1980 # define getpagesize() EXEC_PAGESIZE
1981 # else /* no EXEC_PAGESIZE */
1983 # define getpagesize() NBPG * CLSIZE
1986 # endif /* no CLSIZE */
1987 # else /* no NBPG */
1989 # define getpagesize() NBPC
1990 # else /* no NBPC */
1992 # define getpagesize() PAGESIZE
1993 # endif /* PAGESIZE */
1994 # endif /* no NBPC */
1995 # endif /* no NBPG */
1996 # endif /* no EXEC_PAGESIZE */
1997 # else /* no HAVE_SYS_PARAM_H */
1998 # define getpagesize() 8192 /* punt totally */
1999 # endif /* no HAVE_SYS_PARAM_H */
2000 # endif /* no _SC_PAGESIZE */
2002 #endif /* no HAVE_GETPAGESIZE */
2005 extern "C" { void *malloc(unsigned); }
2013 char *data, *data2, *data3;
2017 pagesize = getpagesize();
2020 * First, make a file with some known garbage in it.
2022 data = malloc(pagesize);
2025 for (i = 0; i < pagesize; ++i)
2026 *(data + i) = rand();
2028 fd = creat("conftestmmap", 0600);
2031 if (write(fd, data, pagesize) != pagesize)
2036 * Next, try to mmap the file at a fixed address which
2037 * already has something else allocated at it. If we can,
2038 * also make sure that we see the same garbage.
2040 fd = open("conftestmmap", O_RDWR);
2043 data2 = malloc(2 * pagesize);
2046 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2047 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2048 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2050 for (i = 0; i < pagesize; ++i)
2051 if (*(data + i) != *(data2 + i))
2055 * Finally, make sure that changes to the mapped area
2056 * do not percolate back to the file as seen by read().
2057 * (This is a bug on some variants of i386 svr4.0.)
2059 for (i = 0; i < pagesize; ++i)
2060 *(data2 + i) = *(data2 + i) + 1;
2061 data3 = malloc(pagesize);
2064 if (read(fd, data3, pagesize) != pagesize)
2066 for (i = 0; i < pagesize; ++i)
2067 if (*(data + i) != *(data3 + i))
2070 unlink("conftestmmap");
2075 if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2077 ac_cv_func_mmap_fixed_mapped=yes
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 ac_cv_func_mmap_fixed_mapped=no
2089 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2090 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2091 cat >> confdefs.h <<\EOF
2098 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2099 echo "configure:2100: checking whether we are using the GNU C Library 2.1 or newer" >&5
2100 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 cat > conftest.$ac_ext <<EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2107 #include <features.h>
2108 #ifdef __GNU_LIBRARY__
2109 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2116 egrep "Lucky GNU user" >/dev/null 2>&1; then
2118 ac_cv_gnu_library_2_1=yes
2121 ac_cv_gnu_library_2_1=no
2129 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2131 GLIBC21="$ac_cv_gnu_library_2_1"
2135 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2136 stdlib.h string.h unistd.h sys/param.h
2138 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2140 echo "configure:2141: checking for $ac_hdr" >&5
2141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2150 { (eval echo configure:2151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2152 if test -z "$ac_err"; then
2154 eval "ac_cv_header_$ac_safe=yes"
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2160 eval "ac_cv_header_$ac_safe=no"
2164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2165 echo "$ac_t""yes" 1>&6
2166 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2167 cat >> confdefs.h <<EOF
2168 #define $ac_tr_hdr 1
2172 echo "$ac_t""no" 1>&6
2176 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2177 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2178 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2181 echo "configure:2182: checking for $ac_func" >&5
2182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 /* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char $ac_func(); below. */
2191 /* Override any gcc2 internal prototype to avoid an error. */
2192 /* We use char because int might match the return type of a gcc2
2193 builtin and then its argument prototype would still apply. */
2198 /* The GNU C library defines this for functions which it implements
2199 to always fail with ENOSYS. Some functions are actually named
2200 something starting with __ and the normal name is an alias. */
2201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2209 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2211 eval "ac_cv_func_$ac_func=yes"
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 eval "ac_cv_func_$ac_func=no"
2221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2222 echo "$ac_t""yes" 1>&6
2223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2224 cat >> confdefs.h <<EOF
2225 #define $ac_tr_func 1
2229 echo "$ac_t""no" 1>&6
2236 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2237 if test "${with_libiconv_prefix+set}" = set; then
2238 withval="$with_libiconv_prefix"
2240 for dir in `echo "$withval" | tr : ' '`; do
2241 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2242 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2248 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2249 echo "configure:2250: checking for iconv" >&5
2250 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2254 am_cv_func_iconv="no, consider installing GNU libiconv"
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2262 iconv_t cd = iconv_open("","");
2263 iconv(cd,NULL,NULL,NULL,NULL);
2267 if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2269 am_cv_func_iconv=yes
2271 echo "configure: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2275 if test "$am_cv_func_iconv" != yes; then
2276 am_save_LIBS="$LIBS"
2277 LIBS="$LIBS -liconv"
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2284 iconv_t cd = iconv_open("","");
2285 iconv(cd,NULL,NULL,NULL,NULL);
2289 if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2292 am_cv_func_iconv=yes
2294 echo "configure: failed program was:" >&5
2295 cat conftest.$ac_ext >&5
2298 LIBS="$am_save_LIBS"
2303 echo "$ac_t""$am_cv_func_iconv" 1>&6
2304 if test "$am_cv_func_iconv" = yes; then
2305 cat >> confdefs.h <<\EOF
2306 #define HAVE_ICONV 1
2309 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2310 echo "configure:2311: checking for iconv declaration" >&5
2311 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2315 cat > conftest.$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2325 #if defined(__STDC__) || defined(__cplusplus)
2326 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2335 if { (eval echo configure:2336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2337 am_cv_proto_iconv_arg1=""
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2342 am_cv_proto_iconv_arg1="const"
2345 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);"
2348 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2349 echo "$ac_t""${ac_t:-
2350 }$am_cv_proto_iconv" 1>&6
2351 cat >> confdefs.h <<EOF
2352 #define ICONV_CONST $am_cv_proto_iconv_arg1
2357 if test "$am_cv_lib_iconv" = yes; then
2363 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2364 echo "configure:2365: checking for nl_langinfo and CODESET" >&5
2365 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 #include <langinfo.h>
2373 char* cs = nl_langinfo(CODESET);
2376 if { (eval echo configure:2377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2378 am_cv_langinfo_codeset=yes
2380 echo "configure: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2383 am_cv_langinfo_codeset=no
2389 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2390 if test $am_cv_langinfo_codeset = yes; then
2391 cat >> confdefs.h <<\EOF
2392 #define HAVE_LANGINFO_CODESET 1
2397 if test $ac_cv_header_locale_h = yes; then
2398 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2399 echo "configure:2400: checking for LC_MESSAGES" >&5
2400 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2411 if { (eval echo configure:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2413 am_cv_val_LC_MESSAGES=yes
2415 echo "configure: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2418 am_cv_val_LC_MESSAGES=no
2423 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2424 if test $am_cv_val_LC_MESSAGES = yes; then
2425 cat >> confdefs.h <<\EOF
2426 #define HAVE_LC_MESSAGES 1
2431 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2432 echo "configure:2433: checking whether NLS is requested" >&5
2433 # Check whether --enable-nls or --disable-nls was given.
2434 if test "${enable_nls+set}" = set; then
2435 enableval="$enable_nls"
2441 echo "$ac_t""$USE_NLS" 1>&6
2444 BUILD_INCLUDED_LIBINTL=no
2445 USE_INCLUDED_LIBINTL=no
2448 if test "$USE_NLS" = "yes"; then
2449 cat >> confdefs.h <<\EOF
2450 #define ENABLE_NLS 1
2453 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2454 echo "configure:2455: checking whether included gettext is requested" >&5
2455 # Check whether --with-included-gettext or --without-included-gettext was given.
2456 if test "${with_included_gettext+set}" = set; then
2457 withval="$with_included_gettext"
2458 nls_cv_force_use_gnu_gettext=$withval
2460 nls_cv_force_use_gnu_gettext=no
2463 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2465 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2466 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2472 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2473 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2474 echo "configure:2475: checking for libintl.h" >&5
2475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2481 #include <libintl.h>
2483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2484 { (eval echo configure:2485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2486 if test -z "$ac_err"; then
2488 eval "ac_cv_header_$ac_safe=yes"
2491 echo "configure: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2494 eval "ac_cv_header_$ac_safe=no"
2498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2501 echo "configure:2502: checking for GNU gettext in libc" >&5
2502 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 #include <libintl.h>
2509 extern int _nl_msg_cat_cntr;
2511 bindtextdomain ("", "");
2512 return (int) gettext ("") + _nl_msg_cat_cntr
2515 if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2517 gt_cv_func_gnugettext1_libc=yes
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2522 gt_cv_func_gnugettext1_libc=no
2527 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2529 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2530 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2531 echo "configure:2532: checking for GNU gettext in libintl" >&5
2532 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 gt_save_LIBS="$LIBS"
2536 LIBS="$LIBS -lintl $LIBICONV"
2537 cat > conftest.$ac_ext <<EOF
2538 #line 2539 "configure"
2539 #include "confdefs.h"
2540 #include <libintl.h>
2541 extern int _nl_msg_cat_cntr;
2543 bindtextdomain ("", "");
2544 return (int) gettext ("") + _nl_msg_cat_cntr
2547 if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2549 gt_cv_func_gnugettext1_libintl=yes
2551 echo "configure: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2554 gt_cv_func_gnugettext1_libintl=no
2557 LIBS="$gt_save_LIBS"
2560 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2563 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2564 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2565 && test "$PACKAGE" != gettext; }; then
2566 cat >> confdefs.h <<\EOF
2567 #define HAVE_GETTEXT 1
2571 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2572 INTLLIBS="-lintl $LIBICONV"
2575 gt_save_LIBS="$LIBS"
2576 LIBS="$LIBS $INTLLIBS"
2577 for ac_func in dcgettext
2579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_func" >&5
2581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2587 /* System header to define __stub macros and hopefully few prototypes,
2588 which can conflict with char $ac_func(); below. */
2590 /* Override any gcc2 internal prototype to avoid an error. */
2591 /* We use char because int might match the return type of a gcc2
2592 builtin and then its argument prototype would still apply. */
2597 /* The GNU C library defines this for functions which it implements
2598 to always fail with ENOSYS. Some functions are actually named
2599 something starting with __ and the normal name is an alias. */
2600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2608 if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2610 eval "ac_cv_func_$ac_func=yes"
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2615 eval "ac_cv_func_$ac_func=no"
2620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2621 echo "$ac_t""yes" 1>&6
2622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2623 cat >> confdefs.h <<EOF
2624 #define $ac_tr_func 1
2628 echo "$ac_t""no" 1>&6
2632 LIBS="$gt_save_LIBS"
2634 # Extract the first word of "msgfmt", so it can be a program name with args.
2635 set dummy msgfmt; ac_word=$2
2636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2637 echo "configure:2638: checking for $ac_word" >&5
2638 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2643 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2647 for ac_dir in $PATH; do
2648 test -z "$ac_dir" && ac_dir=.
2649 if test -f $ac_dir/$ac_word; then
2650 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2651 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2657 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2661 MSGFMT="$ac_cv_path_MSGFMT"
2662 if test "$MSGFMT" != ":"; then
2663 echo "$ac_t""$MSGFMT" 1>&6
2665 echo "$ac_t""no" 1>&6
2668 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2669 set dummy gmsgfmt; ac_word=$2
2670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2671 echo "configure:2672: checking for $ac_word" >&5
2672 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2677 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2680 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2685 for ac_dir in $ac_dummy; do
2686 test -z "$ac_dir" && ac_dir=.
2687 if test -f $ac_dir/$ac_word; then
2688 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2693 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2697 GMSGFMT="$ac_cv_path_GMSGFMT"
2698 if test -n "$GMSGFMT"; then
2699 echo "$ac_t""$GMSGFMT" 1>&6
2701 echo "$ac_t""no" 1>&6
2705 # Extract the first word of "xgettext", so it can be a program name with args.
2706 set dummy xgettext; ac_word=$2
2707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2708 echo "configure:2709: checking for $ac_word" >&5
2709 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2714 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2718 for ac_dir in $PATH; do
2719 test -z "$ac_dir" && ac_dir=.
2720 if test -f $ac_dir/$ac_word; then
2721 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2722 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2728 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2732 XGETTEXT="$ac_cv_path_XGETTEXT"
2733 if test "$XGETTEXT" != ":"; then
2734 echo "$ac_t""$XGETTEXT" 1>&6
2736 echo "$ac_t""no" 1>&6
2744 echo "$ac_t""no" 1>&6
2748 if test "$CATOBJEXT" = "NONE"; then
2749 nls_cv_use_gnu_gettext=yes
2753 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2754 INTLOBJS="\$(GETTOBJS)"
2755 # Extract the first word of "msgfmt", so it can be a program name with args.
2756 set dummy msgfmt; ac_word=$2
2757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2758 echo "configure:2759: checking for $ac_word" >&5
2759 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2764 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2768 for ac_dir in $PATH; do
2769 test -z "$ac_dir" && ac_dir=.
2770 if test -f $ac_dir/$ac_word; then
2771 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2772 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2778 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2782 MSGFMT="$ac_cv_path_MSGFMT"
2783 if test "$MSGFMT" != ":"; then
2784 echo "$ac_t""$MSGFMT" 1>&6
2786 echo "$ac_t""no" 1>&6
2789 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2790 set dummy gmsgfmt; ac_word=$2
2791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2792 echo "configure:2793: checking for $ac_word" >&5
2793 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2798 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2801 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2806 for ac_dir in $ac_dummy; do
2807 test -z "$ac_dir" && ac_dir=.
2808 if test -f $ac_dir/$ac_word; then
2809 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2814 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2818 GMSGFMT="$ac_cv_path_GMSGFMT"
2819 if test -n "$GMSGFMT"; then
2820 echo "$ac_t""$GMSGFMT" 1>&6
2822 echo "$ac_t""no" 1>&6
2825 # Extract the first word of "xgettext", so it can be a program name with args.
2826 set dummy xgettext; ac_word=$2
2827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_word" >&5
2829 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2834 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2838 for ac_dir in $PATH; do
2839 test -z "$ac_dir" && ac_dir=.
2840 if test -f $ac_dir/$ac_word; then
2841 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2842 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2848 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2852 XGETTEXT="$ac_cv_path_XGETTEXT"
2853 if test "$XGETTEXT" != ":"; then
2854 echo "$ac_t""$XGETTEXT" 1>&6
2856 echo "$ac_t""no" 1>&6
2860 BUILD_INCLUDED_LIBINTL=yes
2861 USE_INCLUDED_LIBINTL=yes
2863 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2864 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2867 if test "$GMSGFMT" != ":"; then
2868 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2871 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2876 if test "$XGETTEXT" != ":"; then
2877 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2880 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2890 if test "$PACKAGE" = gettext; then
2891 BUILD_INCLUDED_LIBINTL=yes
2894 for ac_prog in bison
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_word" >&5
2900 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 if test -n "$INTLBISON"; then
2904 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2908 for ac_dir in $ac_dummy; do
2909 test -z "$ac_dir" && ac_dir=.
2910 if test -f $ac_dir/$ac_word; then
2911 ac_cv_prog_INTLBISON="$ac_prog"
2918 INTLBISON="$ac_cv_prog_INTLBISON"
2919 if test -n "$INTLBISON"; then
2920 echo "$ac_t""$INTLBISON" 1>&6
2922 echo "$ac_t""no" 1>&6
2925 test -n "$INTLBISON" && break
2928 if test -z "$INTLBISON"; then
2931 echo $ac_n "checking version of bison""... $ac_c" 1>&6
2932 echo "configure:2933: checking version of bison" >&5
2933 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2934 case $ac_prog_version in
2935 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2936 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2937 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2938 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2940 echo "$ac_t""$ac_prog_version" 1>&6
2942 if test $ac_verc_fail = yes; then
2946 for lang in $ALL_LINGUAS; do
2947 GMOFILES="$GMOFILES $lang.gmo"
2948 POFILES="$POFILES $lang.po"
2962 nls_cv_header_libgt=
2974 if test "x$CATOBJEXT" != "x"; then
2975 if test "x$ALL_LINGUAS" = "x"; then
2978 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2979 echo "configure:2980: checking for catalogs to be installed" >&5
2981 for presentlang in $ALL_LINGUAS; do
2983 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2984 # Use the presentlang catalog if desiredlang is
2985 # a. equal to presentlang, or
2986 # b. a variant of presentlang (because in this case,
2987 # presentlang can be used as a fallback for messages
2988 # which are not translated in the desiredlang catalog).
2989 case "$desiredlang" in
2990 "$presentlang"*) useit=yes;;
2993 if test $useit = yes; then
2994 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2997 LINGUAS=$NEW_LINGUAS
2998 echo "$ac_t""$LINGUAS" 1>&6
3001 if test -n "$LINGUAS"; then
3002 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3007 if test -n "$ac_aux_dir"; then
3008 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3010 if test -z "$MKINSTALLDIRS"; then
3011 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3015 INTL_LIBTOOL_SUFFIX_PREFIX=
3019 # Find a good install program. We prefer a C program (faster),
3020 # so one script is as good as another. But avoid the broken or
3021 # incompatible versions:
3022 # SysV /etc/install, /usr/sbin/install
3023 # SunOS /usr/etc/install
3024 # IRIX /sbin/install
3026 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3027 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3028 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3029 # ./install, which can be erroneously created by make from ./install.sh.
3030 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3031 echo "configure:3032: checking for a BSD compatible install" >&5
3032 if test -z "$INSTALL"; then
3033 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3037 for ac_dir in $PATH; do
3038 # Account for people who put trailing slashes in PATH elements.
3040 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3042 # OSF1 and SCO ODT 3.0 have their own names for install.
3043 # Don't use installbsd from OSF since it installs stuff as root
3045 for ac_prog in ginstall scoinst install; do
3046 if test -f $ac_dir/$ac_prog; then
3047 if test $ac_prog = install &&
3048 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3049 # AIX install. It has an incompatible calling convention.
3052 ac_cv_path_install="$ac_dir/$ac_prog -c"
3063 if test "${ac_cv_path_install+set}" = set; then
3064 INSTALL="$ac_cv_path_install"
3066 # As a last resort, use the slow shell script. We don't cache a
3067 # path for INSTALL within a source directory, because that will
3068 # break other packages using the cache if that directory is
3069 # removed, or if the path is relative.
3070 INSTALL="$ac_install_sh"
3073 echo "$ac_t""$INSTALL" 1>&6
3075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3076 # It thinks the first close brace ends the variable substitution.
3077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3084 case x"${target_os}" in
3093 LIB_DVD="${LIB_DVD} -ldvd"
3094 LIB_VCD="${LIB_VCD} -ldvd"
3101 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3102 set dummy ${ac_tool_prefix}windres; ac_word=$2
3103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3104 echo "configure:3105: checking for $ac_word" >&5
3105 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 if test -n "$WINDRES"; then
3109 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3113 for ac_dir in $ac_dummy; do
3114 test -z "$ac_dir" && ac_dir=.
3115 if test -f $ac_dir/$ac_word; then
3116 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3123 WINDRES="$ac_cv_prog_WINDRES"
3124 if test -n "$WINDRES"; then
3125 echo "$ac_t""$WINDRES" 1>&6
3127 echo "$ac_t""no" 1>&6
3131 if test -z "$ac_cv_prog_WINDRES"; then
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "windres", so it can be a program name with args.
3134 set dummy windres; ac_word=$2
3135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3136 echo "configure:3137: checking for $ac_word" >&5
3137 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 if test -n "$WINDRES"; then
3141 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3145 for ac_dir in $ac_dummy; do
3146 test -z "$ac_dir" && ac_dir=.
3147 if test -f $ac_dir/$ac_word; then
3148 ac_cv_prog_WINDRES="windres"
3153 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3156 WINDRES="$ac_cv_prog_WINDRES"
3157 if test -n "$WINDRES"; then
3158 echo "$ac_t""$WINDRES" 1>&6
3160 echo "$ac_t""no" 1>&6
3168 LIB_IPV4="${LIB_IPV4} -lws2_32"
3169 LIB_RC="${LIB_RC} -lws2_32"
3173 LIB_X11="${LIB_X11} -lsocket"
3174 LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3178 LIB_VLC="${LIB_VLC} -lbe"
3179 LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3180 LIB_IPV4="${LIB_IPV4} -lbind"
3181 PLDFLAGS="${PLDFLAGS} -nostart"
3188 for ac_func in gettimeofday select strerror strtod strtol isatty usleep vasprintf swab sigrelse getpwuid memalign posix_memalign
3190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3191 echo "configure:3192: checking for $ac_func" >&5
3192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 /* System header to define __stub macros and hopefully few prototypes,
3199 which can conflict with char $ac_func(); below. */
3201 /* Override any gcc2 internal prototype to avoid an error. */
3202 /* We use char because int might match the return type of a gcc2
3203 builtin and then its argument prototype would still apply. */
3208 /* The GNU C library defines this for functions which it implements
3209 to always fail with ENOSYS. Some functions are actually named
3210 something starting with __ and the normal name is an alias. */
3211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3219 if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3221 eval "ac_cv_func_$ac_func=yes"
3223 echo "configure: failed program was:" >&5
3224 cat conftest.$ac_ext >&5
3226 eval "ac_cv_func_$ac_func=no"
3231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3232 echo "$ac_t""yes" 1>&6
3233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3234 cat >> confdefs.h <<EOF
3235 #define $ac_tr_func 1
3239 echo "$ac_t""no" 1>&6
3244 echo $ac_n "checking for connect""... $ac_c" 1>&6
3245 echo "configure:3246: checking for connect" >&5
3246 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 /* System header to define __stub macros and hopefully few prototypes,
3253 which can conflict with char connect(); below. */
3255 /* Override any gcc2 internal prototype to avoid an error. */
3256 /* We use char because int might match the return type of a gcc2
3257 builtin and then its argument prototype would still apply. */
3262 /* The GNU C library defines this for functions which it implements
3263 to always fail with ENOSYS. Some functions are actually named
3264 something starting with __ and the normal name is an alias. */
3265 #if defined (__stub_connect) || defined (__stub___connect)
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3275 eval "ac_cv_func_connect=yes"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3280 eval "ac_cv_func_connect=no"
3285 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
3289 echo "$ac_t""no" 1>&6
3291 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3292 echo "configure:3293: checking for connect in -lsocket" >&5
3293 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3297 ac_save_LIBS="$LIBS"
3298 LIBS="-lsocket $LIBS"
3299 cat > conftest.$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3302 /* Override any gcc2 internal prototype to avoid an error. */
3303 /* We use char because int might match the return type of a gcc2
3304 builtin and then its argument prototype would still apply. */
3311 if { (eval echo configure:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3313 eval "ac_cv_lib_$ac_lib_var=yes"
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3318 eval "ac_cv_lib_$ac_lib_var=no"
3321 LIBS="$ac_save_LIBS"
3324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3325 echo "$ac_t""yes" 1>&6
3326 LIB_IPV4="${LIB_IPV4} -lsocket"
3327 LIB_VLC="${LIB_VLC} -lsocket"
3330 echo "$ac_t""no" 1>&6
3335 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3336 echo "configure:3337: checking for gethostbyname" >&5
3337 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3340 cat > conftest.$ac_ext <<EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3343 /* System header to define __stub macros and hopefully few prototypes,
3344 which can conflict with char gethostbyname(); below. */
3346 /* Override any gcc2 internal prototype to avoid an error. */
3347 /* We use char because int might match the return type of a gcc2
3348 builtin and then its argument prototype would still apply. */
3349 char gethostbyname();
3353 /* The GNU C library defines this for functions which it implements
3354 to always fail with ENOSYS. Some functions are actually named
3355 something starting with __ and the normal name is an alias. */
3356 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3364 if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3366 eval "ac_cv_func_gethostbyname=yes"
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3371 eval "ac_cv_func_gethostbyname=no"
3376 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3380 echo "$ac_t""no" 1>&6
3382 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3383 echo "configure:3384: checking for gethostbyname in -lnsl" >&5
3384 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 ac_save_LIBS="$LIBS"
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 /* Override any gcc2 internal prototype to avoid an error. */
3394 /* We use char because int might match the return type of a gcc2
3395 builtin and then its argument prototype would still apply. */
3396 char gethostbyname();
3402 if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3404 eval "ac_cv_lib_$ac_lib_var=yes"
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3409 eval "ac_cv_lib_$ac_lib_var=no"
3412 LIBS="$ac_save_LIBS"
3415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3416 echo "$ac_t""yes" 1>&6
3417 LIB_IPV4="${LIB_IPV4} -lnsl"
3419 echo "$ac_t""no" 1>&6
3425 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3426 echo "configure:3427: checking for gethostbyname" >&5
3427 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 cat > conftest.$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 /* System header to define __stub macros and hopefully few prototypes,
3434 which can conflict with char gethostbyname(); below. */
3436 /* Override any gcc2 internal prototype to avoid an error. */
3437 /* We use char because int might match the return type of a gcc2
3438 builtin and then its argument prototype would still apply. */
3439 char gethostbyname();
3443 /* The GNU C library defines this for functions which it implements
3444 to always fail with ENOSYS. Some functions are actually named
3445 something starting with __ and the normal name is an alias. */
3446 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3454 if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3456 eval "ac_cv_func_gethostbyname=yes"
3458 echo "configure: failed program was:" >&5
3459 cat conftest.$ac_ext >&5
3461 eval "ac_cv_func_gethostbyname=no"
3466 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3467 echo "$ac_t""yes" 1>&6
3470 echo "$ac_t""no" 1>&6
3472 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3473 echo "configure:3474: checking for gethostbyname in -lbind" >&5
3474 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3478 ac_save_LIBS="$LIBS"
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 /* Override any gcc2 internal prototype to avoid an error. */
3484 /* We use char because int might match the return type of a gcc2
3485 builtin and then its argument prototype would still apply. */
3486 char gethostbyname();
3492 if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3494 eval "ac_cv_lib_$ac_lib_var=yes"
3496 echo "configure: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3499 eval "ac_cv_lib_$ac_lib_var=no"
3502 LIBS="$ac_save_LIBS"
3505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3506 echo "$ac_t""yes" 1>&6
3507 LIB_IPV4="${LIB_IPV4} -lbind"
3509 echo "$ac_t""no" 1>&6
3515 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3516 echo "configure:3517: checking for nanosleep" >&5
3517 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* System header to define __stub macros and hopefully few prototypes,
3524 which can conflict with char nanosleep(); below. */
3526 /* Override any gcc2 internal prototype to avoid an error. */
3527 /* We use char because int might match the return type of a gcc2
3528 builtin and then its argument prototype would still apply. */
3533 /* The GNU C library defines this for functions which it implements
3534 to always fail with ENOSYS. Some functions are actually named
3535 something starting with __ and the normal name is an alias. */
3536 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3544 if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3546 eval "ac_cv_func_nanosleep=yes"
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3551 eval "ac_cv_func_nanosleep=no"
3556 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3560 echo "$ac_t""no" 1>&6
3562 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3563 echo "configure:3564: checking for nanosleep in -lrt" >&5
3564 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3568 ac_save_LIBS="$LIBS"
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 /* Override any gcc2 internal prototype to avoid an error. */
3574 /* We use char because int might match the return type of a gcc2
3575 builtin and then its argument prototype would still apply. */
3582 if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3584 eval "ac_cv_lib_$ac_lib_var=yes"
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3589 eval "ac_cv_lib_$ac_lib_var=no"
3592 LIBS="$ac_save_LIBS"
3595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3596 echo "$ac_t""yes" 1>&6
3597 LIB_VLC="${LIB_VLC} -lrt"
3599 echo "$ac_t""no" 1>&6
3601 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3602 echo "configure:3603: checking for nanosleep in -lposix4" >&5
3603 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 ac_save_LIBS="$LIBS"
3608 LIBS="-lposix4 $LIBS"
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 /* Override any gcc2 internal prototype to avoid an error. */
3613 /* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623 eval "ac_cv_lib_$ac_lib_var=yes"
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3628 eval "ac_cv_lib_$ac_lib_var=no"
3631 LIBS="$ac_save_LIBS"
3634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 LIB_VLC="${LIB_VLC} -lposix4"
3638 echo "$ac_t""no" 1>&6
3647 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3648 echo "configure:3649: checking for inet_aton" >&5
3649 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 /* System header to define __stub macros and hopefully few prototypes,
3656 which can conflict with char inet_aton(); below. */
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. */
3665 /* The GNU C library defines this for functions which it implements
3666 to always fail with ENOSYS. Some functions are actually named
3667 something starting with __ and the normal name is an alias. */
3668 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3676 if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3678 eval "ac_cv_func_inet_aton=yes"
3680 echo "configure: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3683 eval "ac_cv_func_inet_aton=no"
3688 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3689 echo "$ac_t""yes" 1>&6
3692 echo "$ac_t""no" 1>&6
3694 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3695 echo "configure:3696: checking for inet_aton in -lresolv" >&5
3696 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3700 ac_save_LIBS="$LIBS"
3701 LIBS="-lresolv $LIBS"
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 /* Override any gcc2 internal prototype to avoid an error. */
3706 /* We use char because int might match the return type of a gcc2
3707 builtin and then its argument prototype would still apply. */
3714 if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3716 eval "ac_cv_lib_$ac_lib_var=yes"
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3721 eval "ac_cv_lib_$ac_lib_var=no"
3724 LIBS="$ac_save_LIBS"
3727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3729 LIB_IPV4="${LIB_IPV4} -lresolv"
3731 echo "$ac_t""no" 1>&6
3737 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3738 echo "configure:3739: checking for textdomain" >&5
3739 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 /* System header to define __stub macros and hopefully few prototypes,
3746 which can conflict with char textdomain(); below. */
3748 /* Override any gcc2 internal prototype to avoid an error. */
3749 /* We use char because int might match the return type of a gcc2
3750 builtin and then its argument prototype would still apply. */
3755 /* The GNU C library defines this for functions which it implements
3756 to always fail with ENOSYS. Some functions are actually named
3757 something starting with __ and the normal name is an alias. */
3758 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3766 if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3768 eval "ac_cv_func_textdomain=yes"
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3773 eval "ac_cv_func_textdomain=no"
3778 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3779 echo "$ac_t""yes" 1>&6
3782 echo "$ac_t""no" 1>&6
3784 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3785 echo "configure:3786: checking for textdomain in -lintl" >&5
3786 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 ac_save_LIBS="$LIBS"
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3795 /* Override any gcc2 internal prototype to avoid an error. */
3796 /* We use char because int might match the return type of a gcc2
3797 builtin and then its argument prototype would still apply. */
3804 if { (eval echo configure:3805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3806 eval "ac_cv_lib_$ac_lib_var=yes"
3808 echo "configure: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3811 eval "ac_cv_lib_$ac_lib_var=no"
3814 LIBS="$ac_save_LIBS"
3817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3818 echo "$ac_t""yes" 1>&6
3819 LIB_VLC="${LIB_VLC} -lintl"
3821 echo "$ac_t""no" 1>&6
3829 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3830 echo "configure:3831: checking for getopt_long" >&5
3831 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3837 /* System header to define __stub macros and hopefully few prototypes,
3838 which can conflict with char getopt_long(); below. */
3840 /* Override any gcc2 internal prototype to avoid an error. */
3841 /* We use char because int might match the return type of a gcc2
3842 builtin and then its argument prototype would still apply. */
3847 /* The GNU C library defines this for functions which it implements
3848 to always fail with ENOSYS. Some functions are actually named
3849 something starting with __ and the normal name is an alias. */
3850 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3858 if { (eval echo configure:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3860 eval "ac_cv_func_getopt_long=yes"
3862 echo "configure: failed program was:" >&5
3863 cat conftest.$ac_ext >&5
3865 eval "ac_cv_func_getopt_long=no"
3870 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3871 echo "$ac_t""yes" 1>&6
3872 cat >> confdefs.h <<\EOF
3873 #define HAVE_GETOPT_LONG 1
3877 echo "$ac_t""no" 1>&6
3878 # FreeBSD has a gnugetopt library for this:
3879 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3880 echo "configure:3881: checking for getopt_long in -lgnugetopt" >&5
3881 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3885 ac_save_LIBS="$LIBS"
3886 LIBS="-lgnugetopt $LIBS"
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3890 /* Override any gcc2 internal prototype to avoid an error. */
3891 /* We use char because int might match the return type of a gcc2
3892 builtin and then its argument prototype would still apply. */
3899 if { (eval echo configure:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3901 eval "ac_cv_lib_$ac_lib_var=yes"
3903 echo "configure: failed program was:" >&5
3904 cat conftest.$ac_ext >&5
3906 eval "ac_cv_lib_$ac_lib_var=no"
3909 LIBS="$ac_save_LIBS"
3912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3913 echo "$ac_t""yes" 1>&6
3914 cat >> confdefs.h <<\EOF
3915 #define HAVE_GETOPT_LONG 1
3917 LIB_VLC="${LIB_VLC} -lgnugetopt"
3919 echo "$ac_t""no" 1>&6
3926 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3927 echo "configure:3928: checking return type of signal handlers" >&5
3928 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3929 echo $ac_n "(cached) $ac_c" 1>&6
3931 cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3934 #include <sys/types.h>
3940 extern "C" void (*signal (int, void (*)(int)))(int);
3942 void (*signal ()) ();
3949 if { (eval echo configure:3950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3951 ac_cv_type_signal=void
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3956 ac_cv_type_signal=int
3961 echo "$ac_t""$ac_cv_type_signal" 1>&6
3962 cat >> confdefs.h <<EOF
3963 #define RETSIGTYPE $ac_cv_type_signal
3967 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3968 echo "configure:3969: checking for dlopen in -ldl" >&5
3969 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 ac_save_LIBS="$LIBS"
3975 cat > conftest.$ac_ext <<EOF
3976 #line 3977 "configure"
3977 #include "confdefs.h"
3978 /* Override any gcc2 internal prototype to avoid an error. */
3979 /* We use char because int might match the return type of a gcc2
3980 builtin and then its argument prototype would still apply. */
3987 if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3989 eval "ac_cv_lib_$ac_lib_var=yes"
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3994 eval "ac_cv_lib_$ac_lib_var=no"
3997 LIBS="$ac_save_LIBS"
4000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4001 echo "$ac_t""yes" 1>&6
4002 LIB_VLC="${LIB_VLC} -ldl"
4004 echo "$ac_t""no" 1>&6
4007 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4008 echo "configure:4009: checking for cos in -lm" >&5
4009 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4013 ac_save_LIBS="$LIBS"
4015 cat > conftest.$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4018 /* Override any gcc2 internal prototype to avoid an error. */
4019 /* We use char because int might match the return type of a gcc2
4020 builtin and then its argument prototype would still apply. */
4027 if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4029 eval "ac_cv_lib_$ac_lib_var=yes"
4031 echo "configure: failed program was:" >&5
4032 cat conftest.$ac_ext >&5
4034 eval "ac_cv_lib_$ac_lib_var=no"
4037 LIBS="$ac_save_LIBS"
4040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4041 echo "$ac_t""yes" 1>&6
4042 LIB_IMDCT="${LIB_IMDCT} -lm"
4043 LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4045 echo "$ac_t""no" 1>&6
4048 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4049 echo "configure:4050: checking for pow in -lm" >&5
4050 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4052 echo $ac_n "(cached) $ac_c" 1>&6
4054 ac_save_LIBS="$LIBS"
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4059 /* Override any gcc2 internal prototype to avoid an error. */
4060 /* We use char because int might match the return type of a gcc2
4061 builtin and then its argument prototype would still apply. */
4068 if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4070 eval "ac_cv_lib_$ac_lib_var=yes"
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4075 eval "ac_cv_lib_$ac_lib_var=no"
4078 LIBS="$ac_save_LIBS"
4081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4082 echo "$ac_t""yes" 1>&6
4083 LIB_IMDCT="${LIB_IMDCT} -lm"
4084 LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4085 LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4086 LIB_CHROMA_I420_RGB="${LIB_CHROMA_I420_RGB} -lm"
4089 echo "$ac_t""no" 1>&6
4094 if test "x${THREAD_LIB}" = xerror; then
4095 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4096 echo "configure:4097: checking for pthread_attr_init in -lpthread" >&5
4097 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4101 ac_save_LIBS="$LIBS"
4102 LIBS="-lpthread $LIBS"
4103 cat > conftest.$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4106 /* Override any gcc2 internal prototype to avoid an error. */
4107 /* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4109 char pthread_attr_init();
4115 if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4117 eval "ac_cv_lib_$ac_lib_var=yes"
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4122 eval "ac_cv_lib_$ac_lib_var=no"
4125 LIBS="$ac_save_LIBS"
4128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4130 THREAD_LIB="-lpthread"
4132 echo "$ac_t""no" 1>&6
4136 if test "x${THREAD_LIB}" = xerror; then
4137 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4138 echo "configure:4139: checking for pthread_attr_init in -lpthreads" >&5
4139 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4143 ac_save_LIBS="$LIBS"
4144 LIBS="-lpthreads $LIBS"
4145 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4148 /* Override any gcc2 internal prototype to avoid an error. */
4149 /* We use char because int might match the return type of a gcc2
4150 builtin and then its argument prototype would still apply. */
4151 char pthread_attr_init();
4157 if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4159 eval "ac_cv_lib_$ac_lib_var=yes"
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4164 eval "ac_cv_lib_$ac_lib_var=no"
4167 LIBS="$ac_save_LIBS"
4170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4171 echo "$ac_t""yes" 1>&6
4172 THREAD_LIB="-lpthreads"
4174 echo "$ac_t""no" 1>&6
4178 if test "x${THREAD_LIB}" = xerror; then
4179 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4180 echo "configure:4181: checking for pthread_attr_init in -lc_r" >&5
4181 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4185 ac_save_LIBS="$LIBS"
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4190 /* Override any gcc2 internal prototype to avoid an error. */
4191 /* We use char because int might match the return type of a gcc2
4192 builtin and then its argument prototype would still apply. */
4193 char pthread_attr_init();
4199 if { (eval echo configure:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4201 eval "ac_cv_lib_$ac_lib_var=yes"
4203 echo "configure: failed program was:" >&5
4204 cat conftest.$ac_ext >&5
4206 eval "ac_cv_lib_$ac_lib_var=no"
4209 LIBS="$ac_save_LIBS"
4212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4213 echo "$ac_t""yes" 1>&6
4216 echo "$ac_t""no" 1>&6
4220 if test "x${THREAD_LIB}" = xerror; then
4221 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4222 echo "configure:4223: checking for pthread_attr_init" >&5
4223 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4226 cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 /* System header to define __stub macros and hopefully few prototypes,
4230 which can conflict with char pthread_attr_init(); below. */
4232 /* Override any gcc2 internal prototype to avoid an error. */
4233 /* We use char because int might match the return type of a gcc2
4234 builtin and then its argument prototype would still apply. */
4235 char pthread_attr_init();
4239 /* The GNU C library defines this for functions which it implements
4240 to always fail with ENOSYS. Some functions are actually named
4241 something starting with __ and the normal name is an alias. */
4242 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4245 pthread_attr_init();
4250 if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4252 eval "ac_cv_func_pthread_attr_init=yes"
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4257 eval "ac_cv_func_pthread_attr_init=no"
4262 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4263 echo "$ac_t""yes" 1>&6
4266 echo "$ac_t""no" 1>&6
4272 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4273 echo "configure:4274: checking for cthread_fork in -lthreads" >&5
4274 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 ac_save_LIBS="$LIBS"
4279 LIBS="-lthreads $LIBS"
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 /* Override any gcc2 internal prototype to avoid an error. */
4284 /* We use char because int might match the return type of a gcc2
4285 builtin and then its argument prototype would still apply. */
4286 char cthread_fork();
4292 if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4294 eval "ac_cv_lib_$ac_lib_var=yes"
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 eval "ac_cv_lib_$ac_lib_var=no"
4302 LIBS="$ac_save_LIBS"
4305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4306 echo "$ac_t""yes" 1>&6
4307 THREAD_LIB="-lthreads"
4309 echo "$ac_t""no" 1>&6
4313 cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 #include <pthread.h>
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319 egrep "pthread_cond_t" >/dev/null 2>&1; then
4322 cat >> confdefs.h <<\EOF
4323 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4329 cat > conftest.$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 #include <strings.h>
4334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4335 egrep "strncasecmp" >/dev/null 2>&1; then
4338 cat >> confdefs.h <<\EOF
4339 #define STRNCASECMP_IN_STRINGS_H 1
4346 for ac_hdr in getopt.h strings.h
4348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4350 echo "configure:4351: checking for $ac_hdr" >&5
4351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4360 { (eval echo configure:4361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4362 if test -z "$ac_err"; then
4364 eval "ac_cv_header_$ac_safe=yes"
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4370 eval "ac_cv_header_$ac_safe=no"
4374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4375 echo "$ac_t""yes" 1>&6
4376 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4377 cat >> confdefs.h <<EOF
4378 #define $ac_tr_hdr 1
4382 echo "$ac_t""no" 1>&6
4386 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4390 echo "configure:4391: checking for $ac_hdr" >&5
4391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4394 cat > conftest.$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4400 { (eval echo configure:4401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4402 if test -z "$ac_err"; then
4404 eval "ac_cv_header_$ac_safe=yes"
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4410 eval "ac_cv_header_$ac_safe=no"
4414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4415 echo "$ac_t""yes" 1>&6
4416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4417 cat >> confdefs.h <<EOF
4418 #define $ac_tr_hdr 1
4422 echo "$ac_t""no" 1>&6
4426 for ac_hdr in dlfcn.h image.h
4428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4430 echo "configure:4431: checking for $ac_hdr" >&5
4431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 cat > conftest.$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4440 { (eval echo configure:4441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4442 if test -z "$ac_err"; then
4444 eval "ac_cv_header_$ac_safe=yes"
4447 echo "configure: failed program was:" >&5
4448 cat conftest.$ac_ext >&5
4450 eval "ac_cv_header_$ac_safe=no"
4454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4455 echo "$ac_t""yes" 1>&6
4456 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4457 cat >> confdefs.h <<EOF
4458 #define $ac_tr_hdr 1
4462 echo "$ac_t""no" 1>&6
4466 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4468 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4469 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4470 echo "configure:4471: checking for $ac_hdr" >&5
4471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4474 cat > conftest.$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4480 { (eval echo configure:4481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4482 if test -z "$ac_err"; then
4484 eval "ac_cv_header_$ac_safe=yes"
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4490 eval "ac_cv_header_$ac_safe=no"
4494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4495 echo "$ac_t""yes" 1>&6
4496 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4497 cat >> confdefs.h <<EOF
4498 #define $ac_tr_hdr 1
4502 echo "$ac_t""no" 1>&6
4506 for ac_hdr in machine/param.h sys/shm.h
4508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4510 echo "configure:4511: checking for $ac_hdr" >&5
4511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4514 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4520 { (eval echo configure:4521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4522 if test -z "$ac_err"; then
4524 eval "ac_cv_header_$ac_safe=yes"
4527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4530 eval "ac_cv_header_$ac_safe=no"
4534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4535 echo "$ac_t""yes" 1>&6
4536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4537 cat >> confdefs.h <<EOF
4538 #define $ac_tr_hdr 1
4542 echo "$ac_t""no" 1>&6
4546 for ac_hdr in linux/version.h
4548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4550 echo "configure:4551: checking for $ac_hdr" >&5
4551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4560 { (eval echo configure:4561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4562 if test -z "$ac_err"; then
4564 eval "ac_cv_header_$ac_safe=yes"
4567 echo "configure: failed program was:" >&5
4568 cat conftest.$ac_ext >&5
4570 eval "ac_cv_header_$ac_safe=no"
4574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4575 echo "$ac_t""yes" 1>&6
4576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4577 cat >> confdefs.h <<EOF
4578 #define $ac_tr_hdr 1
4582 echo "$ac_t""no" 1>&6
4587 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4588 echo "configure:4589: checking whether time.h and sys/time.h may both be included" >&5
4589 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4592 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4595 #include <sys/types.h>
4596 #include <sys/time.h>
4602 if { (eval echo configure:4603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4604 ac_cv_header_time=yes
4606 echo "configure: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4609 ac_cv_header_time=no
4614 echo "$ac_t""$ac_cv_header_time" 1>&6
4615 if test $ac_cv_header_time = yes; then
4616 cat >> confdefs.h <<\EOF
4617 #define TIME_WITH_SYS_TIME 1
4623 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4627 echo "configure:4628: checking for $ac_hdr" >&5
4628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 cat > conftest.$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4637 { (eval echo configure:4638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4639 if test -z "$ac_err"; then
4641 eval "ac_cv_header_$ac_safe=yes"
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4647 eval "ac_cv_header_$ac_safe=no"
4651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4654 cat >> confdefs.h <<EOF
4655 #define $ac_tr_hdr 1
4659 echo "$ac_t""no" 1>&6
4664 if test x$SYS != xmingw32
4666 if test x$x_includes = xNONE; then
4667 x_includes=/usr/X11R6/include
4669 if test x$x_libraries = xNONE; then
4670 x_libraries=/usr/X11R6/lib
4672 saved_CPPFLAGS=$CPPFLAGS
4673 CPPFLAGS="$CPPFLAGS -I$x_includes"
4674 for ac_hdr in X11/extensions/dpms.h
4676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_hdr" >&5
4679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4688 { (eval echo configure:4689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4690 if test -z "$ac_err"; then
4692 eval "ac_cv_header_$ac_safe=yes"
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4698 eval "ac_cv_header_$ac_safe=no"
4702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4703 echo "$ac_t""yes" 1>&6
4704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4705 cat >> confdefs.h <<EOF
4706 #define $ac_tr_hdr 1
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4712 #include <X11/extensions/dpms.h>
4714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4715 egrep "DPMSInfo" >/dev/null 2>&1; then
4718 cat >> confdefs.h <<\EOF
4719 #define DPMSINFO_IN_DPMS_H 1
4728 echo "$ac_t""no" 1>&6
4732 CPPFLAGS=$saved_CPPFLAGS
4735 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4736 echo "configure:4737: checking for ntohl in sys/param.h" >&5
4737 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 CFLAGS="${save_CFLAGS} -Wall -Werror"
4741 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4744 #include <sys/param.h>
4746 void foo() { int meuh; ntohl(meuh); }
4749 if { (eval echo configure:4750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4751 ac_cv_c_ntohl_sys_param_h=yes
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4756 ac_cv_c_ntohl_sys_param_h=no
4761 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4762 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4763 cat >> confdefs.h <<\EOF
4764 #define NTOHL_IN_SYS_PARAM_H 1
4769 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4770 echo "configure:4771: checking if \$CC accepts -finline-limit" >&5
4771 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 CFLAGS="${save_CFLAGS} -finline-limit-30000"
4775 cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4783 if { (eval echo configure:4784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4785 ac_cv_c_inline_limit=yes
4787 echo "configure: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4790 ac_cv_c_inline_limit=no
4795 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4796 if test x"$ac_cv_c_inline_limit" != x"no"; then
4797 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4800 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4801 echo "configure:4802: checking if \$CC accepts -Wall -Winline" >&5
4802 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4805 CFLAGS="${save_CFLAGS} -Wall -Winline"
4806 cat > conftest.$ac_ext <<EOF
4807 #line 4808 "configure"
4808 #include "confdefs.h"
4814 if { (eval echo configure:4815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4816 ac_cv_c_Wall_Winline=yes
4818 echo "configure: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4821 ac_cv_c_Wall_Winline=no
4826 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4827 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4828 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4830 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4831 echo "configure:4832: checking if \$CC accepts -wall -winline" >&5
4832 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 CFLAGS="${save_CFLAGS} -wall -winline"
4836 cat > conftest.$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4844 if { (eval echo configure:4845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4846 ac_cv_c_wall_winline=yes
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4851 ac_cv_c_wall_winline=no
4856 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4857 if test x"$ac_cv_c_wall_winline" != x"no"; then
4858 save_CFLAGS="${save_CFLAGS} -wall -winline"
4862 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4863 echo "configure:4864: checking if \$CC accepts -pipe" >&5
4864 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 CFLAGS="${save_CFLAGS} -pipe"
4868 cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4876 if { (eval echo configure:4877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4880 echo "configure: failed program was:" >&5
4881 cat conftest.$ac_ext >&5
4888 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4889 if test x"$ac_cv_c_pipe" != x"no"; then
4890 save_CFLAGS="${save_CFLAGS} -pipe"
4893 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4894 echo "configure:4895: checking if \$CC accepts -O3" >&5
4895 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4898 CFLAGS="${save_CFLAGS} -O3"
4899 cat > conftest.$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4907 if { (eval echo configure:4908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4911 echo "configure: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4919 echo "$ac_t""$ac_cv_c_o3" 1>&6
4920 if test x"$ac_cv_c_o3" != x"no"; then
4921 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
4923 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
4924 echo "configure:4925: checking if \$CC accepts -O2" >&5
4925 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4928 CFLAGS="${save_CFLAGS} -O2"
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4937 if { (eval echo configure:4938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4941 echo "configure: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4949 echo "$ac_t""$ac_cv_c_o2" 1>&6
4950 if test x"$ac_cv_c_o2" != x"no"; then
4951 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
4953 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
4954 echo "configure:4955: checking if \$CC accepts -O" >&5
4955 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
4956 echo $ac_n "(cached) $ac_c" 1>&6
4958 CFLAGS="${save_CFLAGS} -O"
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4967 if { (eval echo configure:4968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4971 echo "configure: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4979 echo "$ac_t""$ac_cv_c_o" 1>&6
4980 if test x"$ac_cv_c_o" != x"no"; then
4981 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
4986 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
4987 echo "configure:4988: checking if \$CC accepts -ffast-math" >&5
4988 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
4989 echo $ac_n "(cached) $ac_c" 1>&6
4991 CFLAGS="${save_CFLAGS} -ffast-math"
4992 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
5000 if { (eval echo configure:5001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5002 ac_cv_c_fast_math=yes
5004 echo "configure: failed program was:" >&5
5005 cat conftest.$ac_ext >&5
5007 ac_cv_c_fast_math=no
5012 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5013 if test x"$ac_cv_c_fast_math" != x"no"; then
5014 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5017 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5018 echo "configure:5019: checking if \$CC accepts -funroll-loops" >&5
5019 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 CFLAGS="${save_CFLAGS} -funroll-loops"
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5031 if { (eval echo configure:5032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5033 ac_cv_c_unroll_loops=yes
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5038 ac_cv_c_unroll_loops=no
5043 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5044 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5045 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5048 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5049 echo "configure:5050: checking if \$CC accepts -fomit-frame-pointer" >&5
5050 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5054 cat > conftest.$ac_ext <<EOF
5055 #line 5056 "configure"
5056 #include "confdefs.h"
5062 if { (eval echo configure:5063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5064 ac_cv_c_omit_frame_pointer=yes
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5069 ac_cv_c_omit_frame_pointer=no
5074 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5075 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5076 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5079 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5080 echo "configure:5081: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5081 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5084 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5085 cat > conftest.$ac_ext <<EOF
5086 #line 5087 "configure"
5087 #include "confdefs.h"
5093 if { (eval echo configure:5094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5097 echo "configure: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5105 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5106 if test x"$ac_cv_ld_darwin" != x"no"; then
5107 PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5110 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5111 echo "configure:5112: checking if \$CC accepts -shared" >&5
5112 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5115 CFLAGS="${save_CFLAGS} -shared"
5116 cat > conftest.$ac_ext <<EOF
5117 #line 5118 "configure"
5118 #include "confdefs.h"
5124 if { (eval echo configure:5125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5126 ac_cv_ld_plugins=yes
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5136 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5137 if test x"$ac_cv_ld_plugins" != x"no"; then
5138 PLDFLAGS="${PLDFLAGS} -shared"
5141 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5142 echo "configure:5143: checking __attribute__ ((aligned ())) support" >&5
5143 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 ac_cv_c_attribute_aligned=0
5147 CFLAGS="${save_CFLAGS} -Werror"
5148 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5149 cat > conftest.$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5154 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5157 if { (eval echo configure:5158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5159 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5161 echo "configure: failed program was:" >&5
5162 cat conftest.$ac_ext >&5
5168 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5169 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5170 cat >> confdefs.h <<EOF
5171 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5176 CFLAGS="${save_CFLAGS}"
5177 LDFLAGS="${save_LDFLAGS}"
5179 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5180 echo "configure:5181: checking for boolean_t in sys/types.h" >&5
5181 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5182 echo $ac_n "(cached) $ac_c" 1>&6
5184 cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187 #include <sys/types.h>
5192 if { (eval echo configure:5193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5194 ac_cv_c_boolean_t_sys_types_h=yes
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5199 ac_cv_c_boolean_t_sys_types_h=no
5204 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5205 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5206 cat >> confdefs.h <<\EOF
5207 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5212 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5213 echo "configure:5214: checking for boolean_t in pthread.h" >&5
5214 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5215 echo $ac_n "(cached) $ac_c" 1>&6
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5220 #include <pthread.h>
5225 if { (eval echo configure:5226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5227 ac_cv_c_boolean_t_pthread_h=yes
5229 echo "configure: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5232 ac_cv_c_boolean_t_pthread_h=no
5237 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5238 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5239 cat >> confdefs.h <<\EOF
5240 #define BOOLEAN_T_IN_PTHREAD_H 1
5245 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5246 echo "configure:5247: checking for boolean_t in cthreads.h" >&5
5247 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5250 cat > conftest.$ac_ext <<EOF
5251 #line 5252 "configure"
5252 #include "confdefs.h"
5253 #include <cthreads.h>
5258 if { (eval echo configure:5259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5260 ac_cv_c_boolean_t_cthreads_h=yes
5262 echo "configure: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5265 ac_cv_c_boolean_t_cthreads_h=no
5270 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5271 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5272 cat >> confdefs.h <<\EOF
5273 #define BOOLEAN_T_IN_CTHREADS_H 1
5278 case x"${target_cpu}" in
5283 ARCH="${target_cpu}"
5287 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"
5288 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"
5290 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5291 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5292 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5293 SSE_MODULES="imdctsse downmixsse"
5294 ALTIVEC_MODULES="idctaltivec motionaltivec"
5296 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5297 echo "configure:5298: checking if \$CC groks MMX inline assembly" >&5
5298 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5299 echo $ac_n "(cached) $ac_c" 1>&6
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5306 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5309 if { (eval echo configure:5310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5311 ac_cv_mmx_inline=yes
5313 echo "configure: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5321 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5322 if test x"$ac_cv_mmx_inline" != x"no"; then
5323 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5326 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5327 echo "configure:5328: checking if \$CC groks MMX EXT inline assembly" >&5
5328 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5329 echo $ac_n "(cached) $ac_c" 1>&6
5331 cat > conftest.$ac_ext <<EOF
5332 #line 5333 "configure"
5333 #include "confdefs.h"
5336 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5339 if { (eval echo configure:5340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5341 ac_cv_mmxext_inline=yes
5343 echo "configure: failed program was:" >&5
5344 cat conftest.$ac_ext >&5
5346 ac_cv_mmxext_inline=no
5351 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5352 if test x"$ac_cv_mmxext_inline" != x"no"; then
5353 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5356 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5357 echo "configure:5358: checking if \$CC groks 3D Now! inline assembly" >&5
5358 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5359 echo $ac_n "(cached) $ac_c" 1>&6
5361 cat > conftest.$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5366 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5369 if { (eval echo configure:5370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5371 ac_cv_3dnow_inline=yes
5373 echo "configure: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5376 ac_cv_3dnow_inline=no
5381 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5382 if test x"$ac_cv_3dnow_inline" != x"no"; then
5383 cat >> confdefs.h <<\EOF
5384 #define CAN_COMPILE_3DNOW 1
5387 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5390 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5391 echo "configure:5392: checking if \$CC groks SSE inline assembly" >&5
5392 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5393 echo $ac_n "(cached) $ac_c" 1>&6
5395 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5400 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5403 if { (eval echo configure:5404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5405 ac_cv_sse_inline=yes
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5415 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5416 if test x"$ac_cv_sse_inline" != x"no"; then
5417 cat >> confdefs.h <<\EOF
5418 #define CAN_COMPILE_SSE 1
5421 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5424 # don't try to grok altivec with native mingw32 it doesn't work right now
5425 # we should be able to remove this test with future versions of mingw32
5426 if test x$SYS != xmingw32; then
5427 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5428 echo "configure:5429: checking if \$CC groks Altivec inline assembly" >&5
5429 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5432 cat > conftest.$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5437 asm volatile("vperm 0,1,2,3");
5440 if { (eval echo configure:5441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5442 ac_cv_altivec_inline=yes
5444 echo "configure: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5448 CFLAGS="$CFLAGS -Wa,-m7400"
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5454 asm volatile("vperm 0,1,2,3");
5457 if { (eval echo configure:5458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5459 ac_cv_altivec_inline="-Wa,-m7400"
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5464 ac_cv_altivec_inline=no
5473 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5474 if test x"$ac_cv_altivec_inline" != x"no"; then
5475 cat >> confdefs.h <<\EOF
5476 #define CAN_COMPILE_ALTIVEC 1
5479 if test x"$ac_cv_altivec_inline" != x"yes"; then
5480 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5481 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5482 CFLAGS_MEMCPYALTIVEC="$CFLAGS_MEMCPYALTIVEC $ac_cv_altivec_inline"
5483 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5485 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5488 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5489 echo "configure:5490: checking if \$CC groks Altivec C extensions" >&5
5490 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5494 CFLAGS="$CFLAGS -faltivec"
5496 cat > conftest.$ac_ext <<EOF
5497 #line 5498 "configure"
5498 #include "confdefs.h"
5501 vec_mtvscr((vector unsigned int)(0));
5504 if { (eval echo configure:5505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5506 ac_cv_c_altivec=-faltivec
5508 echo "configure: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5513 CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5514 cat > conftest.$ac_ext <<EOF
5515 #line 5516 "configure"
5516 #include "confdefs.h"
5519 vec_mtvscr((vector unsigned int)(0));
5522 if { (eval echo configure:5523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5524 ac_cv_c_altivec="-fvec"
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5539 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5540 if test x"$ac_cv_c_altivec" != x"no"; then
5541 cat >> confdefs.h <<\EOF
5542 #define CAN_COMPILE_C_ALTIVEC 1
5545 CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5546 CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5547 CFLAGS_MEMCPYALTIVEC="$CFLAGS_MEMCPYALTIVEC $ac_cv_c_altivec"
5548 CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5549 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5552 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5553 echo "configure:5554: checking if linker needs -framework vecLib" >&5
5554 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 save_LDFLAGS=$LDFLAGS
5558 LDFLAGS="$LDFLAGS -framework vecLib"
5559 cat > conftest.$ac_ext <<EOF
5560 #line 5561 "configure"
5561 #include "confdefs.h"
5567 if { (eval echo configure:5568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5569 ac_cv_ld_altivec=yes
5571 echo "configure: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5577 LDFLAGS=$save_LDFLAGS
5581 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5582 if test x"$ac_cv_ld_altivec" != x"no"; then
5583 LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5584 LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5585 LIB_MEMCPYALTIVEC="${LIB_MEMCPYALTIVEC} -framework vecLib"
5586 LIB_VLC="${LIB_VLC} -framework vecLib"
5591 # Check whether --with- or --without- was given.
5592 if test "${with_+set}" = set; then
5597 # Check whether --with- or --without- was given.
5598 if test "${with_+set}" = set; then
5604 # Check whether --with-tuning or --without-tuning was given.
5605 if test "${with_tuning+set}" = set; then
5606 withval="$with_tuning"
5610 if test "x$withval" != "x"; then
5613 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5615 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5619 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5622 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5625 # Check whether --enable-optimizations or --disable-optimizations was given.
5626 if test "${enable_optimizations+set}" = set; then
5627 enableval="$enable_optimizations"
5628 if test x$enableval = xno; then OPTIMS=0; fi
5634 # Check whether --enable-altivec or --disable-altivec was given.
5635 if test "${enable_altivec+set}" = set; then
5636 enableval="$enable_altivec"
5637 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
5638 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5640 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5641 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5646 # Check whether --enable-debug or --disable-debug was given.
5647 if test "${enable_debug+set}" = set; then
5648 enableval="$enable_debug"
5649 if test x$enableval = xyes; then DEBUG=1; fi
5653 # Check whether --enable-release or --disable-release was given.
5654 if test "${enable_release+set}" = set; then
5655 enableval="$enable_release"
5656 if test x$enableval = xyes; then RELEASE=1; fi
5658 VERSION="${VERSION}_`date +%Y-%m-%d`"
5663 # Check whether --with- or --without- was given.
5664 if test "${with_+set}" = set; then
5670 # Check whether --enable-dvd or --disable-dvd was given.
5671 if test "${enable_dvd+set}" = set; then
5672 enableval="$enable_dvd"
5676 if test "x$enableval" != "xno"
5678 # Check whether --with-dvdcss or --without-dvdcss was given.
5679 if test "${with_dvdcss+set}" = set; then
5680 withval="$with_dvdcss"
5684 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5685 if test "${with_dvdcss_tree+set}" = set; then
5686 withval="$with_dvdcss_tree"
5690 case "x$with_dvdcss" in
5692 if test "x$with_dvdcss_tree" = x
5694 for ac_hdr in dvdcss/dvdcss.h
5696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5698 echo "configure:5699: checking for $ac_hdr" >&5
5699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5702 cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5708 { (eval echo configure:5709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5710 if test -z "$ac_err"; then
5712 eval "ac_cv_header_$ac_safe=yes"
5715 echo "configure: failed program was:" >&5
5716 cat conftest.$ac_ext >&5
5718 eval "ac_cv_header_$ac_safe=no"
5722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5723 echo "$ac_t""yes" 1>&6
5724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5725 cat >> confdefs.h <<EOF
5726 #define $ac_tr_hdr 1
5728 PLUGINS="${PLUGINS} dvd"
5729 LIB_DVD="${LIB_DVD} -ldvdcss"
5731 echo "$ac_t""no" 1>&6
5732 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
5733 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5738 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5739 echo "configure:5740: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5740 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5741 if test "x$real_dvdcss_tree" = x
5743 echo "$ac_t""no" 1>&6
5744 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5746 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5748 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5749 BUILTINS="${BUILTINS} dvd"
5750 LIB_DVD="${LIB_DVD} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5751 CFLAGS_DVD="${CFLAGS_DVD} -I${real_dvdcss_tree}/src"
5753 echo "$ac_t""no" 1>&6
5754 { 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; }
5759 PLUGINS="${PLUGINS} dvd"
5760 CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
5761 LIB_DVD="${LIB_DVD} -ldl"
5764 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5765 echo "configure:5766: checking for dvdcss headers in ${with_dvdcss}" >&5
5766 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5768 echo "$ac_t""yes" 1>&6
5769 PLUGINS="${PLUGINS} dvd"
5770 LIB_DVD="${LIB_DVD} -L${with_dvdcss}/lib -ldvdcss"
5771 CFLAGS_DVD="${CFLAGS_DVD} -I${with_dvdcss}/include"
5773 echo "$ac_t""no" 1>&6
5774 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5780 # Check whether --enable-dvdread or --disable-dvdread was given.
5781 if test "${enable_dvdread+set}" = set; then
5782 enableval="$enable_dvdread"
5786 if test "x$enableval" != "xno"
5788 # Check whether --with-dvdread or --without-dvdread was given.
5789 if test "${with_dvdread+set}" = set; then
5790 withval="$with_dvdread"
5794 case "x$with_dvdread" in
5796 for ac_hdr in dvdread/dvd_reader.h
5798 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5800 echo "configure:5801: checking for $ac_hdr" >&5
5801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5802 echo $ac_n "(cached) $ac_c" 1>&6
5804 cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5810 { (eval echo configure:5811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5812 if test -z "$ac_err"; then
5814 eval "ac_cv_header_$ac_safe=yes"
5817 echo "configure: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5820 eval "ac_cv_header_$ac_safe=no"
5824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5825 echo "$ac_t""yes" 1>&6
5826 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5827 cat >> confdefs.h <<EOF
5828 #define $ac_tr_hdr 1
5830 PLUGINS="${PLUGINS} dvdread"
5831 LIB_DVDREAD="${LIB_DVDREAD} -ldvdread"
5833 echo "$ac_t""no" 1>&6
5839 echo $ac_n "checking for dvdread headers in ${withval}""... $ac_c" 1>&6
5840 echo "configure:5841: checking for dvdread headers in ${withval}" >&5
5841 if test -f ${withval}/include/dvdread/dvd_reader.h
5843 echo "$ac_t""yes" 1>&6
5844 PLUGINS="${PLUGINS} dvdread"
5845 LIB_DVDREAD="${LIB_DVDREAD} -L${withval}/lib -ldvdread"
5846 CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I${withval}/include"
5848 echo "$ac_t""no" 1>&6
5849 { echo "configure: error: Cannot find ${withval}/dvdread/dvd_reader.h" 1>&2; exit 1; }
5855 # Check whether --enable-vcd or --disable-vcd was given.
5856 if test "${enable_vcd+set}" = set; then
5857 enableval="$enable_vcd"
5862 if test x$enable_vcd != xno
5864 cat > conftest.$ac_ext <<EOF
5865 #line 5866 "configure"
5866 #include "confdefs.h"
5867 #include <linux/cdrom.h>
5869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5870 egrep "cdrom_msf0" >/dev/null 2>&1; then
5873 PLUGINS="${PLUGINS} vcd"
5879 if test "x${SYS}" = "xbsdi"
5881 PLUGINS="${PLUGINS} vcd"
5884 if test "x${SYS}" = "xdarwin"
5886 PLUGINS="${PLUGINS} vcd"
5887 LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation"
5891 # Check whether --enable-satellite or --disable-satellite was given.
5892 if test "${enable_satellite+set}" = set; then
5893 enableval="$enable_satellite"
5894 if test x$enable_satellite = xyes
5896 BUILTINS="${BUILTINS} satellite"
5897 cat >> confdefs.h <<\EOF
5898 #define HAVE_SATELLITE 1
5905 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
5906 echo "configure:5907: checking for inet_pton" >&5
5907 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
5908 echo $ac_n "(cached) $ac_c" 1>&6
5910 cat > conftest.$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5913 /* System header to define __stub macros and hopefully few prototypes,
5914 which can conflict with char inet_pton(); below. */
5916 /* Override any gcc2 internal prototype to avoid an error. */
5917 /* We use char because int might match the return type of a gcc2
5918 builtin and then its argument prototype would still apply. */
5923 /* The GNU C library defines this for functions which it implements
5924 to always fail with ENOSYS. Some functions are actually named
5925 something starting with __ and the normal name is an alias. */
5926 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
5934 if { (eval echo configure:5935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5936 eval "ac_cv_func_inet_pton=yes"
5938 echo "configure: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5941 eval "ac_cv_func_inet_pton=no"
5946 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
5947 echo "$ac_t""yes" 1>&6
5948 PLUGINS="${PLUGINS} ipv6"
5950 echo "$ac_t""no" 1>&6
5955 # Check whether --with- or --without- was given.
5956 if test "${with_+set}" = set; then
5962 # Check whether --enable-mad or --disable-mad was given.
5963 if test "${enable_mad+set}" = set; then
5964 enableval="$enable_mad"
5968 if test x$enable_mad = xyes
5970 PLUGINS="${PLUGINS} mad"
5971 LIB_MAD="${LIB_MAD} -lmad"
5972 # Check whether --with-mad or --without-mad was given.
5973 if test "${with_mad+set}" = set; then
5975 if test "x$with_val" != "xno" -a "x$with_val" != "x"
5977 CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
5978 LIB_MAD="${LIB_MAD} -L$with_val/lib"
5983 save_LDFLAGS=$LDFLAGS
5984 CFLAGS="$CFLAGS $CFLAGS_MAD"
5985 LDFLAGS="$LDFLAGS $LIB_MAD"
5988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5990 echo "configure:5991: checking for $ac_hdr" >&5
5991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6000 { (eval echo configure:6001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6002 if test -z "$ac_err"; then
6004 eval "ac_cv_header_$ac_safe=yes"
6007 echo "configure: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6010 eval "ac_cv_header_$ac_safe=no"
6014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6015 echo "$ac_t""yes" 1>&6
6016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6017 cat >> confdefs.h <<EOF
6018 #define $ac_tr_hdr 1
6022 echo "$ac_t""no" 1>&6
6023 echo "Cannot find development headers for libmad..."
6029 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6030 echo "configure:6031: checking for mad_bit_init in -lmad" >&5
6031 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6032 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6035 ac_save_LIBS="$LIBS"
6037 cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6040 /* Override any gcc2 internal prototype to avoid an error. */
6041 /* We use char because int might match the return type of a gcc2
6042 builtin and then its argument prototype would still apply. */
6043 char mad_bit_init();
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_lib_$ac_lib_var=yes"
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6056 eval "ac_cv_lib_$ac_lib_var=no"
6059 LIBS="$ac_save_LIBS"
6062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6063 echo "$ac_t""yes" 1>&6
6064 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6065 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6066 cat >> confdefs.h <<EOF
6067 #define $ac_tr_lib 1
6073 echo "$ac_t""no" 1>&6
6074 echo "Cannot find libmad library..."
6080 LDFLAGS=$save_LDFLAGS
6083 if test x$SYS = xbeos
6085 PLUGINS="${PLUGINS} beos"
6089 # Check whether --enable-a52 or --disable-a52 was given.
6090 if test "${enable_a52+set}" = set; then
6091 enableval="$enable_a52"
6095 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6097 for ac_hdr in a52dec/a52.h
6099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6101 echo "configure:6102: checking for $ac_hdr" >&5
6102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6103 echo $ac_n "(cached) $ac_c" 1>&6
6105 cat > conftest.$ac_ext <<EOF
6106 #line 6107 "configure"
6107 #include "confdefs.h"
6110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6111 { (eval echo configure:6112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6113 if test -z "$ac_err"; then
6115 eval "ac_cv_header_$ac_safe=yes"
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6121 eval "ac_cv_header_$ac_safe=no"
6125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6126 echo "$ac_t""yes" 1>&6
6127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6128 cat >> confdefs.h <<EOF
6129 #define $ac_tr_hdr 1
6132 BUILTINS="${BUILTINS} a52"
6133 LIB_A52="${LIB_A52} -la52 -lm"
6136 echo "$ac_t""no" 1>&6
6142 # Check whether --enable-vorbis or --disable-vorbis was given.
6143 if test "${enable_vorbis+set}" = set; then
6144 enableval="$enable_vorbis"
6148 if test "x$enableval" != "xno"
6150 for ac_hdr in ogg/ogg.h
6152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6154 echo "configure:6155: checking for $ac_hdr" >&5
6155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6156 echo $ac_n "(cached) $ac_c" 1>&6
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6164 { (eval echo configure:6165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6166 if test -z "$ac_err"; then
6168 eval "ac_cv_header_$ac_safe=yes"
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 eval "ac_cv_header_$ac_safe=no"
6178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6179 echo "$ac_t""yes" 1>&6
6180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6181 cat >> confdefs.h <<EOF
6182 #define $ac_tr_hdr 1
6185 PLUGINS="${PLUGINS} vorbis"
6186 LIB_VORBIS="${LIB_VORBIS} -lvorbis"
6189 echo "$ac_t""no" 1>&6
6196 # Check whether --with- or --without- was given.
6197 if test "${with_+set}" = set; then
6203 # Check whether --enable-x11 or --disable-x11 was given.
6204 if test "${enable_x11+set}" = set; then
6205 enableval="$enable_x11"
6209 if test x$enable_x11 != xno &&
6210 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6211 if test x$x_includes = xNONE; then
6212 x_includes=/usr/X11R6/include
6214 if test x$x_libraries = xNONE; then
6215 x_libraries=/usr/X11R6/lib
6217 saved_CPPFLAGS=$CPPFLAGS
6218 CPPFLAGS="$CPPFLAGS -I$x_includes"
6219 for ac_hdr in X11/Xlib.h
6221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6223 echo "configure:6224: checking for $ac_hdr" >&5
6224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6233 { (eval echo configure:6234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6235 if test -z "$ac_err"; then
6237 eval "ac_cv_header_$ac_safe=yes"
6240 echo "configure: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6243 eval "ac_cv_header_$ac_safe=no"
6247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6248 echo "$ac_t""yes" 1>&6
6249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6250 cat >> confdefs.h <<EOF
6251 #define $ac_tr_hdr 1
6254 PLUGINS="${PLUGINS} x11"
6255 LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6256 CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6259 echo "$ac_t""no" 1>&6
6263 CPPFLAGS=$saved_CPPFLAGS
6266 # Check whether --enable-xvideo or --disable-xvideo was given.
6267 if test "${enable_xvideo+set}" = set; then
6268 enableval="$enable_xvideo"
6272 if test x$enable_xvideo != xno &&
6273 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6274 if test x$x_includes = xNONE; then
6275 x_includes=/usr/X11R6/include
6277 if test x$x_libraries = xNONE; then
6278 x_libraries=/usr/X11R6/lib
6280 saved_CPPFLAGS=$CPPFLAGS
6281 CPPFLAGS="$CPPFLAGS -I$x_includes"
6282 for ac_hdr in X11/extensions/Xv.h
6284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6286 echo "configure:6287: checking for $ac_hdr" >&5
6287 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6288 echo $ac_n "(cached) $ac_c" 1>&6
6290 cat > conftest.$ac_ext <<EOF
6291 #line 6292 "configure"
6292 #include "confdefs.h"
6295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6296 { (eval echo configure:6297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6298 if test -z "$ac_err"; then
6300 eval "ac_cv_header_$ac_safe=yes"
6303 echo "configure: failed program was:" >&5
6304 cat conftest.$ac_ext >&5
6306 eval "ac_cv_header_$ac_safe=no"
6310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6311 echo "$ac_t""yes" 1>&6
6312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6313 cat >> confdefs.h <<EOF
6314 #define $ac_tr_hdr 1
6317 saved_CFLAGS=$CFLAGS
6318 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6319 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6320 echo "configure:6321: checking for XvSetPortAttribute in -lXv_pic" >&5
6321 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6
6325 ac_save_LIBS="$LIBS"
6326 LIBS="-lXv_pic $LIBS"
6327 cat > conftest.$ac_ext <<EOF
6328 #line 6329 "configure"
6329 #include "confdefs.h"
6330 /* Override any gcc2 internal prototype to avoid an error. */
6331 /* We use char because int might match the return type of a gcc2
6332 builtin and then its argument prototype would still apply. */
6333 char XvSetPortAttribute();
6336 XvSetPortAttribute()
6339 if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6341 eval "ac_cv_lib_$ac_lib_var=yes"
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6346 eval "ac_cv_lib_$ac_lib_var=no"
6349 LIBS="$ac_save_LIBS"
6352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6353 echo "$ac_t""yes" 1>&6
6354 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6355 PLUGINS="${PLUGINS} xvideo"
6356 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6357 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6359 echo "$ac_t""no" 1>&6
6360 # We don't have Xv_pic, let's make xvideo.a as builtin
6361 BUILTINS="${BUILTINS} xvideo"
6362 LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
6363 CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6366 CFLAGS=$saved_CFLAGS
6368 CPPFLAGS=$saved_CPPFLAGS
6370 echo "$ac_t""no" 1>&6
6376 # Check whether --enable-sdl or --disable-sdl was given.
6377 if test "${enable_sdl+set}" = set; then
6378 enableval="$enable_sdl"
6382 if test "x$enable_sdl" != "xno"
6385 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6386 if test "${with_sdl_config_path+set}" = set; then
6387 withval="$with_sdl_config_path"
6388 if test "x$withval" != "xno"
6390 SDL_PATH=$withval:$PATH
6394 # Extract the first word of "sdl12-config", so it can be a program name with args.
6395 set dummy sdl12-config; ac_word=$2
6396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6397 echo "configure:6398: checking for $ac_word" >&5
6398 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 case "$SDL12_CONFIG" in
6403 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6406 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6410 ac_dummy="$SDL_PATH"
6411 for ac_dir in $ac_dummy; do
6412 test -z "$ac_dir" && ac_dir=.
6413 if test -f $ac_dir/$ac_word; then
6414 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6419 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6423 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6424 if test -n "$SDL12_CONFIG"; then
6425 echo "$ac_t""$SDL12_CONFIG" 1>&6
6427 echo "$ac_t""no" 1>&6
6430 SDL_CONFIG=${SDL12_CONFIG}
6431 SDL_HEADER="SDL12/SDL.h"
6432 if test x${SDL_CONFIG} = xno
6434 # Extract the first word of "sdl11-config", so it can be a program name with args.
6435 set dummy sdl11-config; ac_word=$2
6436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6437 echo "configure:6438: checking for $ac_word" >&5
6438 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6441 case "$SDL11_CONFIG" in
6443 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6446 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6450 ac_dummy="$SDL_PATH"
6451 for ac_dir in $ac_dummy; do
6452 test -z "$ac_dir" && ac_dir=.
6453 if test -f $ac_dir/$ac_word; then
6454 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6459 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6463 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6464 if test -n "$SDL11_CONFIG"; then
6465 echo "$ac_t""$SDL11_CONFIG" 1>&6
6467 echo "$ac_t""no" 1>&6
6470 SDL_CONFIG=${SDL11_CONFIG}
6471 SDL_HEADER="SDL11/SDL.h"
6473 if test x${SDL_CONFIG} = xno
6475 # Extract the first word of "sdl-config", so it can be a program name with args.
6476 set dummy sdl-config; ac_word=$2
6477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6478 echo "configure:6479: checking for $ac_word" >&5
6479 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6482 case "$SDL_CONFIG" in
6484 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6487 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6491 ac_dummy="$SDL_PATH"
6492 for ac_dir in $ac_dummy; do
6493 test -z "$ac_dir" && ac_dir=.
6494 if test -f $ac_dir/$ac_word; then
6495 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6500 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6504 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6505 if test -n "$SDL_CONFIG"; then
6506 echo "$ac_t""$SDL_CONFIG" 1>&6
6508 echo "$ac_t""no" 1>&6
6511 SDL_HEADER="SDL/SDL.h"
6513 if test x${SDL_CONFIG} != xno
6515 PLUGINS="${PLUGINS} sdl"
6516 CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
6517 LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6518 save_CPPFLAGS=$CPPFLAGS
6519 CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
6520 for ac_hdr in ${SDL_HEADER}
6522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6524 echo "configure:6525: checking for $ac_hdr" >&5
6525 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6528 cat > conftest.$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6534 { (eval echo configure:6535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6536 if test -z "$ac_err"; then
6538 eval "ac_cv_header_$ac_safe=yes"
6541 echo "configure: failed program was:" >&5
6542 cat conftest.$ac_ext >&5
6544 eval "ac_cv_header_$ac_safe=no"
6548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6549 echo "$ac_t""yes" 1>&6
6550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6551 cat >> confdefs.h <<EOF
6552 #define $ac_tr_hdr 1
6554 cat >> confdefs.h <<EOF
6555 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6559 echo "$ac_t""no" 1>&6
6560 { echo "configure: error: The development package for SDL is not installed.
6561 Please install it and try again. Alternatively you can also configure with
6562 --disable-sdl." 1>&2; exit 1; }
6567 CPPFLAGS=$save_CPPFLAGS
6568 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6570 { echo "configure: error: The development package for SDL is not installed.
6571 Please install it and try again. Alternatively you can also configure with
6572 --disable-sdl." 1>&2; exit 1; }
6574 elif test "x$enable_sdl" = "xyes"
6576 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6577 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6582 # Check whether --enable-directx or --disable-directx was given.
6583 if test "${enable_directx+set}" = set; then
6584 enableval="$enable_directx"
6588 if test "x$enableval" != "xno"
6590 if test x$SYS = xmingw32
6592 # Check whether --with-directx or --without-directx was given.
6593 if test "${with_directx+set}" = set; then
6594 withval="$with_directx"
6598 if test "x$with_directx" = "x"
6600 for ac_hdr in ddraw.h
6602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6604 echo "configure:6605: checking for $ac_hdr" >&5
6605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6608 cat > conftest.$ac_ext <<EOF
6609 #line 6610 "configure"
6610 #include "confdefs.h"
6613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6614 { (eval echo configure:6615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6616 if test -z "$ac_err"; then
6618 eval "ac_cv_header_$ac_safe=yes"
6621 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6624 eval "ac_cv_header_$ac_safe=no"
6628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6629 echo "$ac_t""yes" 1>&6
6630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6631 cat >> confdefs.h <<EOF
6632 #define $ac_tr_hdr 1
6634 PLUGINS="${PLUGINS} directx"
6635 LIB_DIRECTX="${LIB_DIRECTX} -lgdi32"
6637 echo "$ac_t""no" 1>&6
6642 echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
6643 echo "configure:6644: checking for directX headers in ${withval}" >&5
6644 if test -f ${withval}/ddraw.h
6646 PLUGINS="${PLUGINS} directx"
6647 LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
6648 INCLUDE="${INCLUDE} -I${withval}"
6649 echo "$ac_t""yes" 1>&6
6651 echo "$ac_t""no" 1>&6
6652 { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
6658 # Check whether --enable-fb or --disable-fb was given.
6659 if test "${enable_fb+set}" = set; then
6660 enableval="$enable_fb"
6664 if test x$enable_fb != xno
6666 for ac_hdr in linux/fb.h
6668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6670 echo "configure:6671: checking for $ac_hdr" >&5
6671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6672 echo $ac_n "(cached) $ac_c" 1>&6
6674 cat > conftest.$ac_ext <<EOF
6675 #line 6676 "configure"
6676 #include "confdefs.h"
6679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6680 { (eval echo configure:6681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6682 if test -z "$ac_err"; then
6684 eval "ac_cv_header_$ac_safe=yes"
6687 echo "configure: failed program was:" >&5
6688 cat conftest.$ac_ext >&5
6690 eval "ac_cv_header_$ac_safe=no"
6694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6695 echo "$ac_t""yes" 1>&6
6696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6697 cat >> confdefs.h <<EOF
6698 #define $ac_tr_hdr 1
6701 PLUGINS="${PLUGINS} fb"
6704 echo "$ac_t""no" 1>&6
6710 # Check whether --enable-mga or --disable-mga was given.
6711 if test "${enable_mga+set}" = set; then
6712 enableval="$enable_mga"
6713 if test x$enable_mga = xyes
6715 PLUGINS="${PLUGINS} mga xmga"
6720 # Check whether --enable-ggi or --disable-ggi was given.
6721 if test "${enable_ggi+set}" = set; then
6722 enableval="$enable_ggi"
6726 if test x$enable_ggi = xyes
6728 PLUGINS="${PLUGINS} ggi"
6729 LIB_GGI="${LIB_GGI} -lggi"
6730 # Check whether --with-ggi or --without-ggi was given.
6731 if test "${with_ggi+set}" = set; then
6733 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6735 CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
6736 LIB_GGI="${LIB_GGI} -L$with_val/lib"
6742 # Check whether --enable-glide or --disable-glide was given.
6743 if test "${enable_glide+set}" = set; then
6744 enableval="$enable_glide"
6748 if test x$enable_glide = xyes
6750 PLUGINS="${PLUGINS} glide"
6751 LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
6752 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
6753 # Check whether --with-glide or --without-glide was given.
6754 if test "${with_glide+set}" = set; then
6755 withval="$with_glide"
6756 if test "x$with_val" != "xno" -a "x$with_val" != "x"
6758 CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
6759 LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
6765 # Check whether --enable-aa or --disable-aa was given.
6766 if test "${enable_aa+set}" = set; then
6767 enableval="$enable_aa"
6771 if test x$enable_aa = xyes
6773 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
6774 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
6775 echo "configure:6776: checking for aalib.h" >&5
6776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6779 cat > conftest.$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6785 { (eval echo configure:6786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6787 if test -z "$ac_err"; then
6789 eval "ac_cv_header_$ac_safe=yes"
6792 echo "configure: failed program was:" >&5
6793 cat conftest.$ac_ext >&5
6795 eval "ac_cv_header_$ac_safe=no"
6799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6800 echo "$ac_t""yes" 1>&6
6803 echo "$ac_t""no" 1>&6
6807 if test x$have_aa = xtrue
6809 PLUGINS="${PLUGINS} aa"
6810 LIB_AA="${LIB_AA} -laa"
6815 # Check whether --with- or --without- was given.
6816 if test "${with_+set}" = set; then
6822 # Check whether --enable-dsp or --disable-dsp was given.
6823 if test "${enable_dsp+set}" = set; then
6824 enableval="$enable_dsp"
6829 if test x$enable_dsp != xno &&
6830 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
6832 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
6834 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6835 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6836 echo "configure:6837: checking for $ac_hdr" >&5
6837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6838 echo $ac_n "(cached) $ac_c" 1>&6
6840 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure"
6842 #include "confdefs.h"
6845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6846 { (eval echo configure:6847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6848 if test -z "$ac_err"; then
6850 eval "ac_cv_header_$ac_safe=yes"
6853 echo "configure: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6856 eval "ac_cv_header_$ac_safe=no"
6860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6861 echo "$ac_t""yes" 1>&6
6862 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6863 cat >> confdefs.h <<EOF
6864 #define $ac_tr_hdr 1
6867 PLUGINS="${PLUGINS} dsp"
6868 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
6869 echo "configure:6870: checking for main in -lossaudio" >&5
6870 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
6871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6872 echo $ac_n "(cached) $ac_c" 1>&6
6874 ac_save_LIBS="$LIBS"
6875 LIBS="-lossaudio $LIBS"
6876 cat > conftest.$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6884 if { (eval echo configure:6885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6886 eval "ac_cv_lib_$ac_lib_var=yes"
6888 echo "configure: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6891 eval "ac_cv_lib_$ac_lib_var=no"
6894 LIBS="$ac_save_LIBS"
6897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6898 echo "$ac_t""yes" 1>&6
6899 LIB_DSP="${LIB_DSP} -lossaudio"
6901 echo "$ac_t""no" 1>&6
6906 echo "$ac_t""no" 1>&6
6912 # Check whether --enable-esd or --disable-esd was given.
6913 if test "${enable_esd+set}" = set; then
6914 enableval="$enable_esd"
6915 if test x$enable_esd = xyes
6917 # Extract the first word of "esd-config", so it can be a program name with args.
6918 set dummy esd-config; ac_word=$2
6919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6920 echo "configure:6921: checking for $ac_word" >&5
6921 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6922 echo $ac_n "(cached) $ac_c" 1>&6
6924 case "$ESD_CONFIG" in
6926 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6929 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6934 for ac_dir in $ac_dummy; do
6935 test -z "$ac_dir" && ac_dir=.
6936 if test -f $ac_dir/$ac_word; then
6937 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6942 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6946 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6947 if test -n "$ESD_CONFIG"; then
6948 echo "$ac_t""$ESD_CONFIG" 1>&6
6950 echo "$ac_t""no" 1>&6
6953 if test x${ESD_CONFIG} != xno
6955 PLUGINS="${PLUGINS} esd"
6956 CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
6957 LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
6963 # Check whether --enable-arts or --disable-arts was given.
6964 if test "${enable_arts+set}" = set; then
6965 enableval="$enable_arts"
6966 if test x$enable_arts = xyes
6968 # Extract the first word of "artsc-config", so it can be a program name with args.
6969 set dummy artsc-config; ac_word=$2
6970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6971 echo "configure:6972: checking for $ac_word" >&5
6972 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6973 echo $ac_n "(cached) $ac_c" 1>&6
6975 case "$ARTS_CONFIG" in
6977 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6980 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6985 for ac_dir in $ac_dummy; do
6986 test -z "$ac_dir" && ac_dir=.
6987 if test -f $ac_dir/$ac_word; then
6988 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6993 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6997 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6998 if test -n "$ARTS_CONFIG"; then
6999 echo "$ac_t""$ARTS_CONFIG" 1>&6
7001 echo "$ac_t""no" 1>&6
7004 if test x${ARTS_CONFIG} != xno
7006 PLUGINS="${PLUGINS} arts"
7007 CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7008 LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7014 # Check whether --enable-alsa or --disable-alsa was given.
7015 if test "${enable_alsa+set}" = set; then
7016 enableval="$enable_alsa"
7017 if test x$enable_alsa = xyes
7019 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7020 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7021 echo "configure:7022: checking for alsa/asoundlib.h" >&5
7022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7025 cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7028 #include <alsa/asoundlib.h>
7030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7031 { (eval echo configure:7032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7033 if test -z "$ac_err"; then
7035 eval "ac_cv_header_$ac_safe=yes"
7038 echo "configure: failed program was:" >&5
7039 cat conftest.$ac_ext >&5
7041 eval "ac_cv_header_$ac_safe=no"
7045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7046 echo "$ac_t""yes" 1>&6
7047 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7048 echo "configure:7049: checking for main in -lasound" >&5
7049 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7051 echo $ac_n "(cached) $ac_c" 1>&6
7053 ac_save_LIBS="$LIBS"
7054 LIBS="-lasound $LIBS"
7055 cat > conftest.$ac_ext <<EOF
7056 #line 7057 "configure"
7057 #include "confdefs.h"
7063 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7065 eval "ac_cv_lib_$ac_lib_var=yes"
7067 echo "configure: failed program was:" >&5
7068 cat conftest.$ac_ext >&5
7070 eval "ac_cv_lib_$ac_lib_var=no"
7073 LIBS="$ac_save_LIBS"
7076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7077 echo "$ac_t""yes" 1>&6
7080 echo "$ac_t""no" 1>&6
7085 echo "$ac_t""no" 1>&6
7089 if test x$have_alsa = xtrue
7091 PLUGINS="${PLUGINS} alsa"
7092 LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7098 # Check whether --enable-waveout or --disable-waveout was given.
7099 if test "${enable_waveout+set}" = set; then
7100 enableval="$enable_waveout"
7104 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7106 PLUGINS="${PLUGINS} waveout"
7107 LIB_WAVEOUT="-lwinmm"
7111 # Check whether --with- or --without- was given.
7112 if test "${with_+set}" = set; then
7118 # Check whether --enable-gtk or --disable-gtk was given.
7119 if test "${enable_gtk+set}" = set; then
7120 enableval="$enable_gtk"
7124 if test x$enable_gtk != xno
7127 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7128 if test "${with_gtk_config_path+set}" = set; then
7129 withval="$with_gtk_config_path"
7130 if test "x$withval" != "xno"
7132 GTK_PATH=$withval:$PATH
7136 # look for gtk-config
7137 # Extract the first word of "gtk12-config", so it can be a program name with args.
7138 set dummy gtk12-config; ac_word=$2
7139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7140 echo "configure:7141: checking for $ac_word" >&5
7141 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7142 echo $ac_n "(cached) $ac_c" 1>&6
7144 case "$GTK12_CONFIG" in
7146 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7149 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7153 ac_dummy="$GTK_PATH"
7154 for ac_dir in $ac_dummy; do
7155 test -z "$ac_dir" && ac_dir=.
7156 if test -f $ac_dir/$ac_word; then
7157 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7162 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7166 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7167 if test -n "$GTK12_CONFIG"; then
7168 echo "$ac_t""$GTK12_CONFIG" 1>&6
7170 echo "$ac_t""no" 1>&6
7173 GTK_CONFIG=${GTK12_CONFIG}
7174 if test x${GTK_CONFIG} = xno
7176 # Extract the first word of "gtk-config", so it can be a program name with args.
7177 set dummy gtk-config; ac_word=$2
7178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7179 echo "configure:7180: checking for $ac_word" >&5
7180 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7181 echo $ac_n "(cached) $ac_c" 1>&6
7183 case "$GTK_CONFIG" in
7185 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7188 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7192 ac_dummy="$GTK_PATH"
7193 for ac_dir in $ac_dummy; do
7194 test -z "$ac_dir" && ac_dir=.
7195 if test -f $ac_dir/$ac_word; then
7196 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7201 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7205 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7206 if test -n "$GTK_CONFIG"; then
7207 echo "$ac_t""$GTK_CONFIG" 1>&6
7209 echo "$ac_t""no" 1>&6
7213 if test x${GTK_CONFIG} != xno
7215 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7217 { 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; }
7219 CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7220 LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7221 # now look for the gtk.h header
7222 saved_CPPFLAGS=$CPPFLAGS
7223 CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7224 ac_cv_gtk_headers=yes
7225 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7229 echo "configure:7230: checking for $ac_hdr" >&5
7230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7231 echo $ac_n "(cached) $ac_c" 1>&6
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7239 { (eval echo configure:7240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7241 if test -z "$ac_err"; then
7243 eval "ac_cv_header_$ac_safe=yes"
7246 echo "configure: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7249 eval "ac_cv_header_$ac_safe=no"
7253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7254 echo "$ac_t""yes" 1>&6
7255 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7256 cat >> confdefs.h <<EOF
7257 #define $ac_tr_hdr 1
7261 echo "$ac_t""no" 1>&6
7262 ac_cv_gtk_headers=no
7263 echo "Cannot find gtk development headers."
7268 if test "x$ac_cv_gtk_headers" = xyes
7270 PLUGINS="${PLUGINS} gtk"
7271 ALIASES="${ALIASES} gvlc"
7273 CPPFLAGS=$saved_CPPFLAGS
7277 # Check whether --enable-gnome or --disable-gnome was given.
7278 if test "${enable_gnome+set}" = set; then
7279 enableval="$enable_gnome"
7280 if test x$enable_gnome = xyes; then
7281 # look for gnome-config
7282 # Extract the first word of "gnome-config", so it can be a program name with args.
7283 set dummy gnome-config; ac_word=$2
7284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7285 echo "configure:7286: checking for $ac_word" >&5
7286 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7287 echo $ac_n "(cached) $ac_c" 1>&6
7289 case "$GNOME_CONFIG" in
7291 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7294 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7299 for ac_dir in $ac_dummy; do
7300 test -z "$ac_dir" && ac_dir=.
7301 if test -f $ac_dir/$ac_word; then
7302 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7307 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7311 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7312 if test -n "$GNOME_CONFIG"; then
7313 echo "$ac_t""$GNOME_CONFIG" 1>&6
7315 echo "$ac_t""no" 1>&6
7318 if test -x ${GNOME_CONFIG}
7320 CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7321 LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7323 # now look for the gnome.h header
7324 saved_CPPFLAGS=$CPPFLAGS
7325 CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7326 for ac_hdr in gnome.h
7328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7330 echo "configure:7331: checking for $ac_hdr" >&5
7331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7332 echo $ac_n "(cached) $ac_c" 1>&6
7334 cat > conftest.$ac_ext <<EOF
7335 #line 7336 "configure"
7336 #include "confdefs.h"
7339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7340 { (eval echo configure:7341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7342 if test -z "$ac_err"; then
7344 eval "ac_cv_header_$ac_safe=yes"
7347 echo "configure: failed program was:" >&5
7348 cat conftest.$ac_ext >&5
7350 eval "ac_cv_header_$ac_safe=no"
7354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7355 echo "$ac_t""yes" 1>&6
7356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7357 cat >> confdefs.h <<EOF
7358 #define $ac_tr_hdr 1
7361 PLUGINS="${PLUGINS} gnome"
7362 ALIASES="${ALIASES} gnome-vlc"
7365 echo "$ac_t""no" 1>&6
7366 { echo "configure: error: Can't find gnome headers. Please install the gnome
7367 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7373 CPPFLAGS=$saved_CPPFLAGS
7378 # Check whether --enable-qt or --disable-qt was given.
7379 if test "${enable_qt+set}" = set; then
7380 enableval="$enable_qt"
7381 if test x$enable_qt = xyes; then
7382 PLUGINS="${PLUGINS} qt"
7383 ALIASES="${ALIASES} qvlc"
7384 LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7385 CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7386 if test -x ${QTDIR}/bin/moc
7388 MOC=${QTDIR}/bin/moc
7396 # Check whether --enable-kde or --disable-kde was given.
7397 if test "${enable_kde+set}" = set; then
7398 enableval="$enable_kde"
7399 if test x$enable_kde = xyes; then
7400 PLUGINS="${PLUGINS} kde"
7401 ALIASES="${ALIASES} kvlc"
7402 LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7403 CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7404 CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7405 if test -x ${QTDIR}/bin/moc
7407 MOC=${QTDIR}/bin/moc
7415 # Check whether --enable-macosx or --disable-macosx was given.
7416 if test "${enable_macosx+set}" = set; then
7417 enableval="$enable_macosx"
7418 if test x$enable_macosx = xyes
7420 BUILTINS="${BUILTINS} macosx"
7421 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7422 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7423 LIB_COMMON="${LIB_COMMON} -ObjC"
7426 for ac_hdr in Cocoa/Cocoa.h
7428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7430 echo "configure:7431: checking for $ac_hdr" >&5
7431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7432 echo $ac_n "(cached) $ac_c" 1>&6
7434 cat > conftest.$ac_ext <<EOF
7435 #line 7436 "configure"
7436 #include "confdefs.h"
7439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7440 { (eval echo configure:7441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7442 if test -z "$ac_err"; then
7444 eval "ac_cv_header_$ac_safe=yes"
7447 echo "configure: failed program was:" >&5
7448 cat conftest.$ac_ext >&5
7450 eval "ac_cv_header_$ac_safe=no"
7454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7455 echo "$ac_t""yes" 1>&6
7456 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7457 cat >> confdefs.h <<EOF
7458 #define $ac_tr_hdr 1
7460 BUILTINS="${BUILTINS} macosx"
7461 LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7462 CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7463 LIB_COMMON="${LIB_COMMON} -ObjC"
7466 echo "$ac_t""no" 1>&6
7473 # Check whether --enable-qnx or --disable-qnx was given.
7474 if test "${enable_qnx+set}" = set; then
7475 enableval="$enable_qnx"
7479 if test x$enable_qnx != xno
7483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7485 echo "configure:7486: checking for $ac_hdr" >&5
7486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7487 echo $ac_n "(cached) $ac_c" 1>&6
7489 cat > conftest.$ac_ext <<EOF
7490 #line 7491 "configure"
7491 #include "confdefs.h"
7494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7495 { (eval echo configure:7496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7497 if test -z "$ac_err"; then
7499 eval "ac_cv_header_$ac_safe=yes"
7502 echo "configure: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7505 eval "ac_cv_header_$ac_safe=no"
7509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7510 echo "$ac_t""yes" 1>&6
7511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7512 cat >> confdefs.h <<EOF
7513 #define $ac_tr_hdr 1
7516 PLUGINS="${PLUGINS} qnx"
7517 LIB_QNX="${LIB_QNX} -lasound -lph"
7520 echo "$ac_t""no" 1>&6
7526 # Check whether --enable-intfwin or --disable-intfwin was given.
7527 if test "${enable_intfwin+set}" = set; then
7528 enableval="$enable_intfwin"
7529 if test "x$enableval" != "xno"
7531 # Check whether --with-bcbuilder or --without-bcbuilder was given.
7532 if test "${with_bcbuilder+set}" = set; then
7533 withval="$with_bcbuilder"
7537 if test "x$with_bcbuilder" != "x"
7539 BCBUILDER="$with_bcbuilder"
7541 PLUGINS="${PLUGINS} intfwin"
7546 # Check whether --enable-ncurses or --disable-ncurses was given.
7547 if test "${enable_ncurses+set}" = set; then
7548 enableval="$enable_ncurses"
7549 if test x$enable_ncurses = xyes; then
7550 PLUGINS="${PLUGINS} ncurses"
7551 LIB_NCURSES="${LIB_NCURSES} -lncurses"
7556 # Check whether --enable-lirc or --disable-lirc was given.
7557 if test "${enable_lirc+set}" = set; then
7558 enableval="$enable_lirc"
7562 if test x$enable_lirc = xyes
7564 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7565 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7566 echo "configure:7567: checking for lirc/lirc_client.h" >&5
7567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7568 echo $ac_n "(cached) $ac_c" 1>&6
7570 cat > conftest.$ac_ext <<EOF
7571 #line 7572 "configure"
7572 #include "confdefs.h"
7573 #include <lirc/lirc_client.h>
7575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7576 { (eval echo configure:7577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7578 if test -z "$ac_err"; then
7580 eval "ac_cv_header_$ac_safe=yes"
7583 echo "configure: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7586 eval "ac_cv_header_$ac_safe=no"
7590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7591 echo "$ac_t""yes" 1>&6
7592 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
7593 echo "configure:7594: checking for lirc_init in -llirc_client" >&5
7594 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
7595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7596 echo $ac_n "(cached) $ac_c" 1>&6
7598 ac_save_LIBS="$LIBS"
7599 LIBS="-llirc_client $LIBS"
7600 cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7603 /* Override any gcc2 internal prototype to avoid an error. */
7604 /* We use char because int might match the return type of a gcc2
7605 builtin and then its argument prototype would still apply. */
7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7614 eval "ac_cv_lib_$ac_lib_var=yes"
7616 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7619 eval "ac_cv_lib_$ac_lib_var=no"
7622 LIBS="$ac_save_LIBS"
7625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7626 echo "$ac_t""yes" 1>&6
7629 echo "$ac_t""no" 1>&6
7634 echo "$ac_t""no" 1>&6
7638 if test x$have_lirc = xtrue
7640 PLUGINS="${PLUGINS} lirc"
7641 LIB_LIRC="${LIB_LIRC} -llirc_client"
7647 # Check whether --with- or --without- was given.
7648 if test "${with_+set}" = set; then
7654 # Check whether --with-words or --without-words was given.
7655 if test "${with_words+set}" = set; then
7656 withval="$with_words"
7662 ac_cv_c_bigendian=yes
7665 ac_cv_c_bigendian=no
7668 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
7669 echo "configure:7670: checking whether the byte order is big-endian" >&5
7670 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7671 echo $ac_n "(cached) $ac_c" 1>&6
7673 ac_cv_c_bigendian=unknown
7674 cat >conftest.c <<EOF
7675 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
7676 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
7677 void _a(void) { char*s = (char*)am; s = (char *)ai; }
7678 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
7679 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
7680 void _e(void) { char*s = (char*)em; s = (char*)ei; }
7681 int main(void) { _a(); _e(); return 0; }
7684 if test -f conftest.c
7686 if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
7687 && test -f conftest.o
7689 if test "`strings conftest.o | grep BIGenDianSyS`"
7691 ac_cv_c_bigendian=yes
7693 if test "`strings conftest.o | grep LiTTleEnDian`"
7695 ac_cv_c_bigendian=no
7702 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7703 if test x$ac_cv_c_bigendian = xunknown
7705 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
7709 if test $ac_cv_c_bigendian = yes
7711 cat >> confdefs.h <<\EOF
7712 #define WORDS_BIGENDIAN 1
7718 # Check whether --with-dll-path or --without-dll-path was given.
7719 if test "${with_dll_path+set}" = set; then
7720 withval="$with_dll_path"
7721 if test "x$withval" != "xno"
7729 # Check whether --enable-gprof or --disable-gprof was given.
7730 if test "${enable_gprof+set}" = set; then
7731 enableval="$enable_gprof"
7732 if test x$enableval = xyes; then GPROF=1; fi
7737 # Check whether --enable-cprof or --disable-cprof was given.
7738 if test "${enable_cprof+set}" = set; then
7739 enableval="$enable_cprof"
7740 if test x$enableval = xyes;
7742 LIB_COMMON="${LIB_COMMON} -lcprof"
7749 # Check whether --enable-pth or --disable-pth was given.
7750 if test "${enable_pth+set}" = set; then
7751 enableval="$enable_pth"
7752 if test x$enableval = xyes; then
7753 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
7754 echo "configure:7755: checking for pth_init in -lpth" >&5
7755 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
7756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7757 echo $ac_n "(cached) $ac_c" 1>&6
7759 ac_save_LIBS="$LIBS"
7761 cat > conftest.$ac_ext <<EOF
7762 #line 7763 "configure"
7763 #include "confdefs.h"
7764 /* Override any gcc2 internal prototype to avoid an error. */
7765 /* We use char because int might match the return type of a gcc2
7766 builtin and then its argument prototype would still apply. */
7773 if { (eval echo configure:7774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7775 eval "ac_cv_lib_$ac_lib_var=yes"
7777 echo "configure: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7780 eval "ac_cv_lib_$ac_lib_var=no"
7783 LIBS="$ac_save_LIBS"
7786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7787 echo "$ac_t""yes" 1>&6
7788 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7789 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7790 cat >> confdefs.h <<EOF
7791 #define $ac_tr_lib 1
7797 echo "$ac_t""no" 1>&6
7800 cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7806 egrep "pth_init" >/dev/null 2>&1; then
7809 cat >> confdefs.h <<\EOF
7810 #define PTH_INIT_IN_PTH_H 1
7822 # Check whether --enable-st or --disable-st was given.
7823 if test "${enable_st+set}" = set; then
7824 enableval="$enable_st"
7825 if test x$enableval = xyes; then
7826 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
7827 echo "configure:7828: checking for st_init in -lst" >&5
7828 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
7829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7830 echo $ac_n "(cached) $ac_c" 1>&6
7832 ac_save_LIBS="$LIBS"
7834 cat > conftest.$ac_ext <<EOF
7835 #line 7836 "configure"
7836 #include "confdefs.h"
7837 /* Override any gcc2 internal prototype to avoid an error. */
7838 /* We use char because int might match the return type of a gcc2
7839 builtin and then its argument prototype would still apply. */
7846 if { (eval echo configure:7847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7848 eval "ac_cv_lib_$ac_lib_var=yes"
7850 echo "configure: failed program was:" >&5
7851 cat conftest.$ac_ext >&5
7853 eval "ac_cv_lib_$ac_lib_var=no"
7856 LIBS="$ac_save_LIBS"
7859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7860 echo "$ac_t""yes" 1>&6
7861 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7862 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7863 cat >> confdefs.h <<EOF
7864 #define $ac_tr_lib 1
7870 echo "$ac_t""no" 1>&6
7873 cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure"
7875 #include "confdefs.h"
7878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7879 egrep "st_init" >/dev/null 2>&1; then
7882 cat >> confdefs.h <<\EOF
7883 #define ST_INIT_IN_ST_H 1
7895 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
7897 # Check whether --enable-plugins or --disable-plugins was given.
7898 if test "${enable_plugins+set}" = set; then
7899 enableval="$enable_plugins"
7900 if test x$enable_plugins = xno
7902 BUILTINS="${BUILTINS} ${PLUGINS}"
7908 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
7910 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
7912 BUILTINS="${BUILTINS} ${PLUGINS}"
7916 cat >> confdefs.h <<EOF
7917 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN\n"
7920 cat >> confdefs.h <<EOF
7921 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
7925 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
7926 cat >> confdefs.h <<EOF
7927 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
7930 cat >> confdefs.h <<EOF
7931 #define MODULE_SYMBOL $VLC_SYMBOL
7935 DATA_PATH="${ac_tool_prefix}/share/videolan"
7937 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8036 cat > confcache <<\EOF
8037 # This file is a shell script that caches the results of configure
8038 # tests run on this system so they can be shared between configure
8039 # scripts and configure runs. It is not useful on other systems.
8040 # If it contains results you don't want to keep, you may remove or edit it.
8042 # By default, configure uses ./config.cache as the cache file,
8043 # creating it if it does not exist already. You can give configure
8044 # the --cache-file=FILE option to use a different cache file; that is
8045 # what configure does when it calls configure scripts in
8046 # subdirectories, so they share the cache.
8047 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8048 # config.status only pays attention to the cache file if you give it the
8049 # --recheck option to rerun configure.
8052 # The following way of writing the cache mishandles newlines in values,
8053 # but we know of no workaround that is simple, portable, and efficient.
8054 # So, don't put newlines in cache variables' values.
8055 # Ultrix sh set writes to stderr and can't be redirected directly,
8056 # and sets the high bit in the cache file unless we assign to the vars.
8058 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8060 # `set' does not quote correctly, so add quotes (double-quote substitution
8061 # turns \\\\ into \\, and sed turns \\ into \).
8063 -e "s/'/'\\\\''/g" \
8064 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8067 # `set' quotes correctly as required by POSIX, so do not add quotes.
8068 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8071 if cmp -s $cache_file confcache; then
8074 if test -w $cache_file; then
8075 echo "updating cache $cache_file"
8076 cat confcache > $cache_file
8078 echo "not updating unwritable cache $cache_file"
8083 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8085 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8086 # Let make expand exec_prefix.
8087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8089 # Any assignment to VPATH causes Sun make to only execute
8090 # the first set of double-colon rules, so remove it if not needed.
8091 # If there is a colon in the path, we need to keep it.
8092 if test "x$srcdir" = x.; then
8093 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8096 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8098 DEFS=-DHAVE_CONFIG_H
8100 # Without the "./", some shells look in PATH for config.status.
8101 : ${CONFIG_STATUS=./config.status}
8103 echo creating $CONFIG_STATUS
8104 rm -f $CONFIG_STATUS
8105 cat > $CONFIG_STATUS <<EOF
8107 # Generated automatically by configure.
8108 # Run this file to recreate the current configuration.
8109 # This directory was configured as follows,
8110 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8112 # $0 $ac_configure_args
8114 # Compiler output produced by configure, useful for debugging
8115 # configure, is in ./config.log if it exists.
8117 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8120 case "\$ac_option" in
8121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8122 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8123 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8124 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8125 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8127 -help | --help | --hel | --he | --h)
8128 echo "\$ac_cs_usage"; exit 0 ;;
8129 *) echo "\$ac_cs_usage"; exit 1 ;;
8133 ac_given_srcdir=$srcdir
8134 ac_given_INSTALL="$INSTALL"
8136 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8138 cat >> $CONFIG_STATUS <<EOF
8140 # Protect against being on the right side of a sed subst in config.status.
8141 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8142 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8146 s%@CFLAGS@%$CFLAGS%g
8147 s%@CPPFLAGS@%$CPPFLAGS%g
8148 s%@CXXFLAGS@%$CXXFLAGS%g
8149 s%@FFLAGS@%$FFLAGS%g
8151 s%@LDFLAGS@%$LDFLAGS%g
8153 s%@exec_prefix@%$exec_prefix%g
8154 s%@prefix@%$prefix%g
8155 s%@program_transform_name@%$program_transform_name%g
8156 s%@bindir@%$bindir%g
8157 s%@sbindir@%$sbindir%g
8158 s%@libexecdir@%$libexecdir%g
8159 s%@datadir@%$datadir%g
8160 s%@sysconfdir@%$sysconfdir%g
8161 s%@sharedstatedir@%$sharedstatedir%g
8162 s%@localstatedir@%$localstatedir%g
8163 s%@libdir@%$libdir%g
8164 s%@includedir@%$includedir%g
8165 s%@oldincludedir@%$oldincludedir%g
8166 s%@infodir@%$infodir%g
8167 s%@mandir@%$mandir%g
8169 s%@host_alias@%$host_alias%g
8170 s%@host_cpu@%$host_cpu%g
8171 s%@host_vendor@%$host_vendor%g
8172 s%@host_os@%$host_os%g
8173 s%@target@%$target%g
8174 s%@target_alias@%$target_alias%g
8175 s%@target_cpu@%$target_cpu%g
8176 s%@target_vendor@%$target_vendor%g
8177 s%@target_os@%$target_os%g
8179 s%@build_alias@%$build_alias%g
8180 s%@build_cpu@%$build_cpu%g
8181 s%@build_vendor@%$build_vendor%g
8182 s%@build_os@%$build_os%g
8183 s%@SET_MAKE@%$SET_MAKE%g
8186 s%@RANLIB@%$RANLIB%g
8188 s%@ALLOCA@%$ALLOCA%g
8189 s%@GLIBC21@%$GLIBC21%g
8190 s%@LIBICONV@%$LIBICONV%g
8191 s%@USE_NLS@%$USE_NLS%g
8192 s%@MSGFMT@%$MSGFMT%g
8193 s%@GMSGFMT@%$GMSGFMT%g
8194 s%@XGETTEXT@%$XGETTEXT%g
8195 s%@INTLBISON@%$INTLBISON%g
8196 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8197 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8198 s%@CATALOGS@%$CATALOGS%g
8199 s%@CATOBJEXT@%$CATOBJEXT%g
8200 s%@GMOFILES@%$GMOFILES%g
8201 s%@INTLLIBS@%$INTLLIBS%g
8202 s%@INTLOBJS@%$INTLOBJS%g
8203 s%@POFILES@%$POFILES%g
8205 s%@DATADIRNAME@%$DATADIRNAME%g
8206 s%@INSTOBJEXT@%$INSTOBJEXT%g
8207 s%@GENCAT@%$GENCAT%g
8208 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8209 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8210 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8211 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8212 s%@INSTALL_DATA@%$INSTALL_DATA%g
8213 s%@WINDRES@%$WINDRES%g
8214 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8215 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8216 s%@SDL_CONFIG@%$SDL_CONFIG%g
8217 s%@ESD_CONFIG@%$ESD_CONFIG%g
8218 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8219 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8220 s%@GTK_CONFIG@%$GTK_CONFIG%g
8221 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8222 s%@DATA_PATH@%$DATA_PATH%g
8223 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8226 s%@PLUGINS@%$PLUGINS%g
8227 s%@BUILTINS@%$BUILTINS%g
8228 s%@ALIASES@%$ALIASES%g
8229 s%@INCLUDE@%$INCLUDE%g
8234 s%@OPTIMS@%$OPTIMS%g
8235 s%@TUNING@%$TUNING%g
8236 s%@RELEASE@%$RELEASE%g
8237 s%@VERSION@%$VERSION%g
8239 s%@BCBUILDER@%$BCBUILDER%g
8240 s%@DLL_PATH@%$DLL_PATH%g
8241 s%@VLC_PACKAGE@%$VLC_PACKAGE%g
8242 s%@VLC_VERSION@%$VLC_VERSION%g
8243 s%@PLDFLAGS@%$PLDFLAGS%g
8244 s%@LIB_COMMON@%$LIB_COMMON%g
8245 s%@LIB_VLC@%$LIB_VLC%g
8246 s%@LIB_A52@%$LIB_A52%g
8247 s%@LIB_AA@%$LIB_AA%g
8248 s%@LIB_ALSA@%$LIB_ALSA%g
8249 s%@LIB_ARTS@%$LIB_ARTS%g
8250 s%@LIB_BEOS@%$LIB_BEOS%g
8251 s%@LIB_CHROMA_I420_RGB@%$LIB_CHROMA_I420_RGB%g
8252 s%@LIB_DARWIN@%$LIB_DARWIN%g
8253 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8254 s%@LIB_DSP@%$LIB_DSP%g
8255 s%@LIB_DVD@%$LIB_DVD%g
8256 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8257 s%@LIB_ESD@%$LIB_ESD%g
8258 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8259 s%@LIB_GGI@%$LIB_GGI%g
8260 s%@LIB_GLIDE@%$LIB_GLIDE%g
8261 s%@LIB_GNOME@%$LIB_GNOME%g
8262 s%@LIB_GTK@%$LIB_GTK%g
8263 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8264 s%@LIB_IMDCT@%$LIB_IMDCT%g
8265 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8266 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8267 s%@LIB_IPV4@%$LIB_IPV4%g
8268 s%@LIB_IPV6@%$LIB_IPV6%g
8269 s%@LIB_KDE@%$LIB_KDE%g
8270 s%@LIB_LIRC@%$LIB_LIRC%g
8271 s%@LIB_MACOSX@%$LIB_MACOSX%g
8272 s%@LIB_MAD@%$LIB_MAD%g
8273 s%@LIB_MEMCPYALTIVEC@%$LIB_MEMCPYALTIVEC%g
8274 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8275 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8276 s%@LIB_NCURSES@%$LIB_NCURSES%g
8277 s%@LIB_QNX@%$LIB_QNX%g
8278 s%@LIB_QT@%$LIB_QT%g
8279 s%@LIB_RC@%$LIB_RC%g
8280 s%@LIB_SDL@%$LIB_SDL%g
8281 s%@LIB_VCD@%$LIB_VCD%g
8282 s%@LIB_VORBIS@%$LIB_VORBIS%g
8283 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8284 s%@LIB_WIN32@%$LIB_WIN32%g
8285 s%@LIB_X11@%$LIB_X11%g
8286 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8287 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8288 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8289 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8290 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8291 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8292 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8293 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8294 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8295 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8296 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8297 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8298 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8299 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8300 s%@CFLAGS_MEMCPYALTIVEC@%$CFLAGS_MEMCPYALTIVEC%g
8301 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8302 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8303 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8304 s%@CFLAGS_QT@%$CFLAGS_QT%g
8305 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8306 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8307 s%@CFLAGS_X11@%$CFLAGS_X11%g
8308 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8309 s%@NEED_GETOPT@%$NEED_GETOPT%g
8314 cat >> $CONFIG_STATUS <<\EOF
8316 # Split the substitutions into bite-sized pieces for seds with
8317 # small command number limits, like on Digital OSF/1 and HP-UX.
8318 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8319 ac_file=1 # Number of current file.
8320 ac_beg=1 # First line for current file.
8321 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8324 while $ac_more_lines; do
8325 if test $ac_beg -gt 1; then
8326 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8328 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8330 if test ! -s conftest.s$ac_file; then
8332 rm -f conftest.s$ac_file
8334 if test -z "$ac_sed_cmds"; then
8335 ac_sed_cmds="sed -f conftest.s$ac_file"
8337 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8339 ac_file=`expr $ac_file + 1`
8341 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8344 if test -z "$ac_sed_cmds"; then
8349 cat >> $CONFIG_STATUS <<EOF
8351 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8353 cat >> $CONFIG_STATUS <<\EOF
8354 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8355 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8357 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8358 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8359 *) ac_file_in="${ac_file}.in" ;;
8362 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8364 # Remove last slash and all that follows it. Not all systems have dirname.
8365 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8366 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8367 # The file is in a subdirectory.
8368 test ! -d "$ac_dir" && mkdir "$ac_dir"
8369 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8370 # A "../" for each directory in $ac_dir_suffix.
8371 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8373 ac_dir_suffix= ac_dots=
8376 case "$ac_given_srcdir" in
8378 if test -z "$ac_dots"; then top_srcdir=.
8379 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8380 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8382 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8383 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8386 case "$ac_given_INSTALL" in
8387 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8388 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8391 echo creating "$ac_file"
8393 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8395 *Makefile*) ac_comsub="1i\\
8396 # $configure_input" ;;
8400 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8402 s%@configure_input@%$configure_input%g
8403 s%@srcdir@%$srcdir%g
8404 s%@top_srcdir@%$top_srcdir%g
8405 s%@INSTALL@%$INSTALL%g
8406 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8410 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8411 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8413 # ac_d sets the value in "#define NAME VALUE" lines.
8414 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8415 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8418 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8419 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8420 ac_uB='\([ ]\)%\1#\2define\3'
8423 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8424 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8425 ac_eB='$%\1#\2define\3'
8429 if test "${CONFIG_HEADERS+set}" != set; then
8431 cat >> $CONFIG_STATUS <<EOF
8432 CONFIG_HEADERS="include/defs.h"
8434 cat >> $CONFIG_STATUS <<\EOF
8436 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8437 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8439 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8440 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8441 *) ac_file_in="${ac_file}.in" ;;
8444 echo creating $ac_file
8446 rm -f conftest.frag conftest.in conftest.out
8447 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8448 cat $ac_file_inputs > conftest.in
8452 # Transform confdefs.h into a sed script conftest.vals that substitutes
8453 # the proper values into config.h.in to produce config.h. And first:
8454 # Protect against being on the right side of a sed subst in config.status.
8455 # Protect against being in an unquoted here document in config.status.
8457 cat > conftest.hdr <<\EOF
8460 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8464 sed -n -f conftest.hdr confdefs.h > conftest.vals
8467 # This sed command replaces #undef with comments. This is necessary, for
8468 # example, in the case of _POSIX_SOURCE, which is predefined and required
8469 # on some systems where configure will not decide to define it.
8470 cat >> conftest.vals <<\EOF
8471 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8474 # Break up conftest.vals because some shells have a limit on
8475 # the size of here documents, and old seds have small limits too.
8480 ac_lines=`grep -c . conftest.vals`
8481 # grep -c gives empty output for an empty file on some AIX systems.
8482 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8483 # Write a limited-size here document to conftest.frag.
8484 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8485 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8487 sed -f conftest.frag conftest.in > conftest.out
8489 mv conftest.out conftest.in
8491 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8493 mv conftest.tail conftest.vals
8497 cat >> $CONFIG_STATUS <<\EOF
8498 rm -f conftest.frag conftest.h
8499 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8500 cat conftest.in >> conftest.h
8502 if cmp -s $ac_file conftest.h 2>/dev/null; then
8503 echo "$ac_file is unchanged"
8506 # Remove last slash and all that follows it. Not all systems have dirname.
8507 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8508 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8509 # The file is in a subdirectory.
8510 test ! -d "$ac_dir" && mkdir "$ac_dir"
8513 mv conftest.h $ac_file
8518 cat >> $CONFIG_STATUS <<EOF
8522 cat >> $CONFIG_STATUS <<\EOF
8523 for ac_file in $CONFIG_FILES; do
8524 # Support "outfile[:infile[:infile...]]"
8526 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8528 # PO directories have a Makefile.in generated from Makefile.in.in.
8529 case "$ac_file" in */Makefile.in)
8530 # Adjust a relative srcdir.
8531 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8532 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8533 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8534 # In autoconf-2.13 it is called $ac_given_srcdir.
8535 # In autoconf-2.50 it is called $srcdir.
8536 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8537 case "$ac_given_srcdir" in
8538 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8539 /*) top_srcdir="$ac_given_srcdir" ;;
8540 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8542 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8543 rm -f "$ac_dir/POTFILES"
8544 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8545 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8546 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8547 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8555 chmod +x $CONFIG_STATUS
8556 rm -fr confdefs* $ac_clean_files
8557 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8562 --------------------
8563 vlc version : ${VERSION}
8565 architecture : ${ARCH}
8566 optimizations : ${OPTIMS}
8568 debug mode : ${DEBUG}
8569 release : ${RELEASE}
8570 cprof/gprof support : ${CPROF}/${GPROF}
8571 need builtin getopt : ${NEED_GETOPT}
8572 built-in modules :${BUILTINS}
8573 plug-in modules :${PLUGINS}
8574 vlc aliases :${ALIASES}
8576 You may now tune Makefile.opts at your convenience, for instance to choose
8577 which modules get compiled as plugins.
8579 To build vlc and its plugins, type \`$VLC_MAKE'.