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-dvbpsi dvbpsi ts demux module (default disabled)"
50 --with-dvbpsi=PATH libdvbpsi headers and libraries"
52 --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
54 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
56 --enable-satellite satellite card support (default disabled)"
58 --enable-avi AVI demux module (default enabled)"
62 --enable-mad libmad module (default disabled)"
64 --with-mad=PATH path to libmad"
66 --with-mad-tree=PATH mad tree for static linking"
68 --enable-ffmpeg ffmpeg codec (default disabled)"
70 --with-ffmpeg=PATH path to ffmpeg installation"
72 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
74 --enable-a52 AC3 support with liba52 (default enabled)"
76 --with-a52-tree=PATH a52dec tree for static linking "
78 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
82 --enable-x11 X11 support (default enabled)"
84 --enable-xvideo XVideo support (default enabled)"
86 --enable-sdl SDL support (default enabled)"
88 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
90 --enable-qte QT Embedded support (default disabled)"
92 --with-qte=PATH Qt Embedded headers and libraries"
94 --enable-directx Win32 DirectX support (default enabled on Win32)"
96 --with-directx=PATH Win32 DirectX headers and libraries"
98 --enable-fb Linux framebuffer support (default enabled on Linux)"
100 --enable-mga Linux kernel Matrox support (default disabled)"
102 --enable-ggi GGI support (default disabled)"
104 --with-ggi=PATH path to libggi"
106 --enable-glide Glide (3dfx) support (default disabled)"
108 --with-glide=PATH path to libglide"
110 --enable-aa aalib output (default disabled)"
114 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
116 --enable-esd Esound library support (default disabled)"
118 --enable-arts aRts sound server (default disabled)"
120 --enable-alsa ALSA sound support for Linux (default disabled)"
122 --enable-waveout Win32 waveOut module (default enabled on Win32)"
126 --enable-gtk Gtk+ support (default enabled)"
128 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
130 --enable-familiar Familiar Gtk+ support (default disabled)"
132 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
134 --enable-gnome Gnome interface support (default disabled)"
136 --enable-qt Qt interface support (default disabled)"
138 --enable-kde KDE interface support (default disabled)"
140 --enable-opie Qt embedded interface support (default disabled)"
142 --with-qte=PATH Qt Embedded headers and libraries"
144 --enable-macosx MacOS X support (default enabled on MacOS X)"
146 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
148 --enable-intfwin Win32 interface support (default disabled)"
150 --with-bcbuilder=PATH Borland C++ Builder installation path"
152 --enable-ncurses ncurses interface support (default disabled)"
154 --enable-lirc lirc support (default disabled)"
158 --with-words=endianness set endianness (big or little)"
160 --enable-gprof gprof profiling (default disabled)"
162 --enable-cprof cprof profiling (default disabled)"
164 --enable-pth GNU Pth support (default disabled)"
166 --enable-st State Threads (default disabled)"
168 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
170 # Initialize some variables set by options.
171 # The variables have the same names as the options, with
172 # dashes changed to underlines.
174 cache_file=./config.cache
183 program_transform_name=s,x,x,
191 bindir='${exec_prefix}/bin'
192 sbindir='${exec_prefix}/sbin'
193 libexecdir='${exec_prefix}/libexec'
194 datadir='${prefix}/share'
195 sysconfdir='${prefix}/etc'
196 sharedstatedir='${prefix}/com'
197 localstatedir='${prefix}/var'
198 libdir='${exec_prefix}/lib'
199 includedir='${prefix}/include'
200 oldincludedir='/usr/include'
201 infodir='${prefix}/info'
202 mandir='${prefix}/man'
204 # Initialize some other variables.
207 SHELL=${CONFIG_SHELL-/bin/sh}
208 # Maximum number of lines to put in a shell here document.
215 # If the previous option needs an argument, assign it.
216 if test -n "$ac_prev"; then
217 eval "$ac_prev=\$ac_option"
223 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
227 # Accept the important Cygnus configure options, so we can diagnose typos.
231 -bindir | --bindir | --bindi | --bind | --bin | --bi)
233 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
234 bindir="$ac_optarg" ;;
236 -build | --build | --buil | --bui | --bu)
238 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
239 build="$ac_optarg" ;;
241 -cache-file | --cache-file | --cache-fil | --cache-fi \
242 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
243 ac_prev=cache_file ;;
244 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
245 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
246 cache_file="$ac_optarg" ;;
248 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
250 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
252 datadir="$ac_optarg" ;;
254 -disable-* | --disable-*)
255 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
256 # Reject names that are not valid shell variable names.
257 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
258 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
260 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
261 eval "enable_${ac_feature}=no" ;;
263 -enable-* | --enable-*)
264 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
265 # Reject names that are not valid shell variable names.
266 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
267 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
269 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
274 eval "enable_${ac_feature}='$ac_optarg'" ;;
276 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
277 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
278 | --exec | --exe | --ex)
279 ac_prev=exec_prefix ;;
280 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
281 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
282 | --exec=* | --exe=* | --ex=*)
283 exec_prefix="$ac_optarg" ;;
285 -gas | --gas | --ga | --g)
286 # Obsolete; use --with-gas.
289 -help | --help | --hel | --he)
290 # Omit some internal or obsolete options to make the list less imposing.
291 # This message is too long to be a string in the A/UX 3.1 sh.
293 Usage: configure [options] [host]
294 Options: [defaults in brackets after descriptions]
296 --cache-file=FILE cache test results in FILE
297 --help print this message
298 --no-create do not create output files
299 --quiet, --silent do not print \`checking...' messages
300 --version print the version of autoconf that created configure
301 Directory and file names:
302 --prefix=PREFIX install architecture-independent files in PREFIX
304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
306 --bindir=DIR user executables in DIR [EPREFIX/bin]
307 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
308 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
309 --datadir=DIR read-only architecture-independent data in DIR
311 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
312 --sharedstatedir=DIR modifiable architecture-independent data in DIR
314 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
315 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
316 --includedir=DIR C header files in DIR [PREFIX/include]
317 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
318 --infodir=DIR info documentation in DIR [PREFIX/info]
319 --mandir=DIR man documentation in DIR [PREFIX/man]
320 --srcdir=DIR find the sources in DIR [configure dir or ..]
321 --program-prefix=PREFIX prepend PREFIX to installed program names
322 --program-suffix=SUFFIX append SUFFIX to installed program names
323 --program-transform-name=PROGRAM
324 run sed PROGRAM on installed program names
328 --build=BUILD configure for building on BUILD [BUILD=HOST]
329 --host=HOST configure for HOST [guessed]
330 --target=TARGET configure for TARGET [TARGET=HOST]
331 Features and packages:
332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
334 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
335 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
336 --x-includes=DIR X include files are in DIR
337 --x-libraries=DIR X library files are in DIR
339 if test -n "$ac_help"; then
340 echo "--enable and --with options recognized:$ac_help"
344 -host | --host | --hos | --ho)
346 -host=* | --host=* | --hos=* | --ho=*)
349 -includedir | --includedir | --includedi | --included | --include \
350 | --includ | --inclu | --incl | --inc)
351 ac_prev=includedir ;;
352 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
353 | --includ=* | --inclu=* | --incl=* | --inc=*)
354 includedir="$ac_optarg" ;;
356 -infodir | --infodir | --infodi | --infod | --info | --inf)
358 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
359 infodir="$ac_optarg" ;;
361 -libdir | --libdir | --libdi | --libd)
363 -libdir=* | --libdir=* | --libdi=* | --libd=*)
364 libdir="$ac_optarg" ;;
366 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
367 | --libexe | --libex | --libe)
368 ac_prev=libexecdir ;;
369 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
370 | --libexe=* | --libex=* | --libe=*)
371 libexecdir="$ac_optarg" ;;
373 -localstatedir | --localstatedir | --localstatedi | --localstated \
374 | --localstate | --localstat | --localsta | --localst \
375 | --locals | --local | --loca | --loc | --lo)
376 ac_prev=localstatedir ;;
377 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
378 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
379 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
380 localstatedir="$ac_optarg" ;;
382 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
384 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
385 mandir="$ac_optarg" ;;
388 # Obsolete; use --without-fp.
391 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
395 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
396 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
399 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
400 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
401 | --oldin | --oldi | --old | --ol | --o)
402 ac_prev=oldincludedir ;;
403 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
404 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
405 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
406 oldincludedir="$ac_optarg" ;;
408 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
410 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
411 prefix="$ac_optarg" ;;
413 -program-prefix | --program-prefix | --program-prefi | --program-pref \
414 | --program-pre | --program-pr | --program-p)
415 ac_prev=program_prefix ;;
416 -program-prefix=* | --program-prefix=* | --program-prefi=* \
417 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
418 program_prefix="$ac_optarg" ;;
420 -program-suffix | --program-suffix | --program-suffi | --program-suff \
421 | --program-suf | --program-su | --program-s)
422 ac_prev=program_suffix ;;
423 -program-suffix=* | --program-suffix=* | --program-suffi=* \
424 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
425 program_suffix="$ac_optarg" ;;
427 -program-transform-name | --program-transform-name \
428 | --program-transform-nam | --program-transform-na \
429 | --program-transform-n | --program-transform- \
430 | --program-transform | --program-transfor \
431 | --program-transfo | --program-transf \
432 | --program-trans | --program-tran \
433 | --progr-tra | --program-tr | --program-t)
434 ac_prev=program_transform_name ;;
435 -program-transform-name=* | --program-transform-name=* \
436 | --program-transform-nam=* | --program-transform-na=* \
437 | --program-transform-n=* | --program-transform-=* \
438 | --program-transform=* | --program-transfor=* \
439 | --program-transfo=* | --program-transf=* \
440 | --program-trans=* | --program-tran=* \
441 | --progr-tra=* | --program-tr=* | --program-t=*)
442 program_transform_name="$ac_optarg" ;;
444 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
445 | -silent | --silent | --silen | --sile | --sil)
448 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
450 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
452 sbindir="$ac_optarg" ;;
454 -sharedstatedir | --sharedstatedir | --sharedstatedi \
455 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
456 | --sharedst | --shareds | --shared | --share | --shar \
458 ac_prev=sharedstatedir ;;
459 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
460 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
461 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
463 sharedstatedir="$ac_optarg" ;;
465 -site | --site | --sit)
467 -site=* | --site=* | --sit=*)
470 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
472 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
473 srcdir="$ac_optarg" ;;
475 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
476 | --syscon | --sysco | --sysc | --sys | --sy)
477 ac_prev=sysconfdir ;;
478 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
479 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
480 sysconfdir="$ac_optarg" ;;
482 -target | --target | --targe | --targ | --tar | --ta | --t)
484 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
485 target="$ac_optarg" ;;
487 -v | -verbose | --verbose | --verbos | --verbo | --verb)
490 -version | --version | --versio | --versi | --vers)
491 echo "configure generated by autoconf version 2.13"
495 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
496 # Reject names that are not valid shell variable names.
497 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
498 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
500 ac_package=`echo $ac_package| sed 's/-/_/g'`
505 eval "with_${ac_package}='$ac_optarg'" ;;
507 -without-* | --without-*)
508 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
509 # Reject names that are not valid shell variable names.
510 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
511 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
513 ac_package=`echo $ac_package| sed 's/-/_/g'`
514 eval "with_${ac_package}=no" ;;
517 # Obsolete; use --with-x.
520 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
521 | --x-incl | --x-inc | --x-in | --x-i)
522 ac_prev=x_includes ;;
523 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
524 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
525 x_includes="$ac_optarg" ;;
527 -x-libraries | --x-libraries | --x-librarie | --x-librari \
528 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
529 ac_prev=x_libraries ;;
530 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
531 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
532 x_libraries="$ac_optarg" ;;
534 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
538 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
539 echo "configure: warning: $ac_option: invalid host type" 1>&2
541 if test "x$nonopt" != xNONE; then
542 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
550 if test -n "$ac_prev"; then
551 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
554 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
556 # File descriptor usage:
559 # 2 errors and warnings
560 # 3 some systems may open it to /dev/tty
561 # 4 used on the Kubota Titan
562 # 6 checking for... messages and results
563 # 5 compiler messages saved in config.log
564 if test "$silent" = yes; then
572 This file contains any messages produced by compilers while
573 running configure, to aid debugging if configure makes a mistake.
576 # Strip out --no-create and --no-recursion so they do not pile up.
577 # Also quote any args containing shell metacharacters.
582 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
583 | --no-cr | --no-c) ;;
584 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
585 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
586 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
587 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
588 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
593 # Only set these to C if already set. These must not be set unconditionally
594 # because not all systems understand e.g. LANG=C (notably SCO).
595 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
596 # Non-C LC_CTYPE values break the ctype check.
597 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
598 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
599 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
600 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
602 # confdefs.h avoids OS command line length limits that DEFS can exceed.
603 rm -rf conftest* confdefs.h
604 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
607 # A filename unique to this package, relative to the directory that
608 # configure is in, which we can look for to find out if srcdir is correct.
609 ac_unique_file=include/main.h
611 # Find the source files, if location was not specified.
612 if test -z "$srcdir"; then
613 ac_srcdir_defaulted=yes
614 # Try the directory containing this script, then its parent.
616 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
617 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
619 if test ! -r $srcdir/$ac_unique_file; then
623 ac_srcdir_defaulted=no
625 if test ! -r $srcdir/$ac_unique_file; then
626 if test "$ac_srcdir_defaulted" = yes; then
627 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
629 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
632 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
634 # Prefer explicitly selected file to automatically selected ones.
635 if test -z "$CONFIG_SITE"; then
636 if test "x$prefix" != xNONE; then
637 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
639 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
642 for ac_site_file in $CONFIG_SITE; do
643 if test -r "$ac_site_file"; then
644 echo "loading site script $ac_site_file"
649 if test -r "$cache_file"; then
650 echo "loading cache $cache_file"
653 echo "creating cache $cache_file"
658 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
659 ac_cpp='$CPP $CPPFLAGS'
660 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
661 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
662 cross_compiling=$ac_cv_prog_cc_cross
666 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
667 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
668 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
675 ac_n= ac_c='\c' ac_t=
681 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
682 if test -f $ac_dir/install-sh; then
684 ac_install_sh="$ac_aux_dir/install-sh -c"
686 elif test -f $ac_dir/install.sh; then
688 ac_install_sh="$ac_aux_dir/install.sh -c"
692 if test -z "$ac_aux_dir"; then
693 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
695 ac_config_guess=$ac_aux_dir/config.guess
696 ac_config_sub=$ac_aux_dir/config.sub
697 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
700 # Do some error checking and defaulting for the host and target type.
702 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
705 # 1. You are not allowed to specify --host, --target, and nonopt at the
707 # 2. Host defaults to nonopt.
708 # 3. If nonopt is not specified, then host defaults to the current host,
709 # as determined by config.guess.
710 # 4. Target and build default to nonopt.
711 # 5. If nonopt is not specified, then target and build default to host.
713 # The aliases save the names the user supplied, while $host etc.
714 # will get canonicalized.
715 case $host---$target---$nonopt in
716 NONE---*---* | *---NONE---* | *---*---NONE) ;;
717 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
721 # Make sure we can run config.sub.
722 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
723 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
726 echo $ac_n "checking host system type""... $ac_c" 1>&6
727 echo "configure:728: checking host system type" >&5
730 case "$host_alias" in
734 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
735 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
737 *) host_alias=$nonopt ;;
741 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
742 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 echo "$ac_t""$host" 1>&6
747 echo $ac_n "checking target system type""... $ac_c" 1>&6
748 echo "configure:749: checking target system type" >&5
751 case "$target_alias" in
754 NONE) target_alias=$host_alias ;;
755 *) target_alias=$nonopt ;;
759 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
760 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
761 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
762 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
763 echo "$ac_t""$target" 1>&6
765 echo $ac_n "checking build system type""... $ac_c" 1>&6
766 echo "configure:767: checking build system type" >&5
769 case "$build_alias" in
772 NONE) build_alias=$host_alias ;;
773 *) build_alias=$nonopt ;;
777 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
778 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
779 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
780 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
781 echo "$ac_t""$build" 1>&6
783 test "$host_alias" != "$target_alias" &&
784 test "$program_prefix$program_suffix$program_transform_name" = \
786 program_prefix=${target_alias}-
793 save_CFLAGS="${CFLAGS}"
794 save_CPPFLAGS="${CPPFLAGS}"
795 save_LDFLAGS="${LDFLAGS}"
797 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
798 echo "configure:799: checking whether ${MAKE-make} sets \${MAKE}" >&5
799 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
800 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
803 cat > conftestmake <<\EOF
805 @echo 'ac_maketemp="${MAKE}"'
807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
808 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
809 if test -n "$ac_maketemp"; then
810 eval ac_cv_prog_make_${ac_make}_set=yes
812 eval ac_cv_prog_make_${ac_make}_set=no
816 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
817 echo "$ac_t""yes" 1>&6
820 echo "$ac_t""no" 1>&6
821 SET_MAKE="MAKE=${MAKE-make}"
824 # Extract the first word of "gcc", so it can be a program name with args.
825 set dummy gcc; ac_word=$2
826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
827 echo "configure:828: checking for $ac_word" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 if test -n "$CC"; then
832 ac_cv_prog_CC="$CC" # Let the user override the test.
834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
836 for ac_dir in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir=.
838 if test -f $ac_dir/$ac_word; then
847 if test -n "$CC"; then
848 echo "$ac_t""$CC" 1>&6
850 echo "$ac_t""no" 1>&6
853 if test -z "$CC"; then
854 # Extract the first word of "cc", so it can be a program name with args.
855 set dummy cc; ac_word=$2
856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
857 echo "configure:858: checking for $ac_word" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 if test -n "$CC"; then
862 ac_cv_prog_CC="$CC" # Let the user override the test.
864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
867 for ac_dir in $ac_dummy; do
868 test -z "$ac_dir" && ac_dir=.
869 if test -f $ac_dir/$ac_word; then
870 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
879 if test $ac_prog_rejected = yes; then
880 # We found a bogon in the path, so make sure we never use it.
881 set dummy $ac_cv_prog_CC
883 if test $# -gt 0; then
884 # We chose a different compiler from the bogus one.
885 # However, it has the same basename, so the bogon will be chosen
886 # first if we set CC to just the basename; use the full file name.
888 set dummy "$ac_dir/$ac_word" "$@"
896 if test -n "$CC"; then
897 echo "$ac_t""$CC" 1>&6
899 echo "$ac_t""no" 1>&6
902 if test -z "$CC"; then
905 # Extract the first word of "cl", so it can be a program name with args.
906 set dummy cl; ac_word=$2
907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
908 echo "configure:909: checking for $ac_word" >&5
909 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
912 if test -n "$CC"; then
913 ac_cv_prog_CC="$CC" # Let the user override the test.
915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
917 for ac_dir in $ac_dummy; do
918 test -z "$ac_dir" && ac_dir=.
919 if test -f $ac_dir/$ac_word; then
928 if test -n "$CC"; then
929 echo "$ac_t""$CC" 1>&6
931 echo "$ac_t""no" 1>&6
936 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
939 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
940 echo "configure:941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
944 ac_cpp='$CPP $CPPFLAGS'
945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
947 cross_compiling=$ac_cv_prog_cc_cross
949 cat > conftest.$ac_ext << EOF
951 #line 952 "configure"
952 #include "confdefs.h"
956 if { (eval echo configure:957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
957 ac_cv_prog_cc_works=yes
958 # If we can't run a trivial program, we are probably using a cross compiler.
959 if (./conftest; exit) 2>/dev/null; then
960 ac_cv_prog_cc_cross=no
962 ac_cv_prog_cc_cross=yes
965 echo "configure: failed program was:" >&5
966 cat conftest.$ac_ext >&5
967 ac_cv_prog_cc_works=no
971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
975 cross_compiling=$ac_cv_prog_cc_cross
977 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
978 if test $ac_cv_prog_cc_works = no; then
979 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
981 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
982 echo "configure:983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
983 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
984 cross_compiling=$ac_cv_prog_cc_cross
986 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
987 echo "configure:988: checking whether we are using GNU C" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 cat > conftest.c <<EOF
996 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1003 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1005 if test $ac_cv_prog_gcc = yes; then
1011 ac_test_CFLAGS="${CFLAGS+set}"
1012 ac_save_CFLAGS="$CFLAGS"
1014 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1015 echo "configure:1016: checking whether ${CC-cc} accepts -g" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 echo 'void f(){}' > conftest.c
1020 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1029 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1030 if test "$ac_test_CFLAGS" = set; then
1031 CFLAGS="$ac_save_CFLAGS"
1032 elif test $ac_cv_prog_cc_g = yes; then
1033 if test "$GCC" = yes; then
1039 if test "$GCC" = yes; then
1046 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1047 echo "configure:1048: checking how to run the C preprocessor" >&5
1048 # On Suns, sometimes $CPP names a directory.
1049 if test -n "$CPP" && test -d "$CPP"; then
1052 if test -z "$CPP"; then
1053 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1056 # This must be in double quotes, not single quotes, because CPP may get
1057 # substituted into the Makefile and "${CC-cc}" will confuse make.
1059 # On the NeXT, cc -E runs the code through the compiler's parser,
1060 # not just through cpp.
1061 cat > conftest.$ac_ext <<EOF
1062 #line 1063 "configure"
1063 #include "confdefs.h"
1067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1068 { (eval echo configure:1069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1070 if test -z "$ac_err"; then
1074 echo "configure: failed program was:" >&5
1075 cat conftest.$ac_ext >&5
1077 CPP="${CC-cc} -E -traditional-cpp"
1078 cat > conftest.$ac_ext <<EOF
1079 #line 1080 "configure"
1080 #include "confdefs.h"
1084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1085 { (eval echo configure:1086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1087 if test -z "$ac_err"; then
1091 echo "configure: failed program was:" >&5
1092 cat conftest.$ac_ext >&5
1094 CPP="${CC-cc} -nologo -E"
1095 cat > conftest.$ac_ext <<EOF
1096 #line 1097 "configure"
1097 #include "confdefs.h"
1101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1102 { (eval echo configure:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1104 if test -z "$ac_err"; then
1108 echo "configure: failed program was:" >&5
1109 cat conftest.$ac_ext >&5
1118 ac_cv_prog_CPP="$CPP"
1120 CPP="$ac_cv_prog_CPP"
1122 ac_cv_prog_CPP="$CPP"
1124 echo "$ac_t""$CPP" 1>&6
1127 if test $host != $build; then
1128 ac_tool_prefix=${host_alias}-
1133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1136 echo "configure:1137: checking for $ac_word" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 if test -n "$RANLIB"; then
1141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1145 for ac_dir in $ac_dummy; do
1146 test -z "$ac_dir" && ac_dir=.
1147 if test -f $ac_dir/$ac_word; then
1148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1155 RANLIB="$ac_cv_prog_RANLIB"
1156 if test -n "$RANLIB"; then
1157 echo "$ac_t""$RANLIB" 1>&6
1159 echo "$ac_t""no" 1>&6
1163 if test -z "$ac_cv_prog_RANLIB"; then
1164 if test -n "$ac_tool_prefix"; then
1165 # Extract the first word of "ranlib", so it can be a program name with args.
1166 set dummy ranlib; ac_word=$2
1167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_word" >&5
1169 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 if test -n "$RANLIB"; then
1173 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1177 for ac_dir in $ac_dummy; do
1178 test -z "$ac_dir" && ac_dir=.
1179 if test -f $ac_dir/$ac_word; then
1180 ac_cv_prog_RANLIB="ranlib"
1185 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1188 RANLIB="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190 echo "$ac_t""$RANLIB" 1>&6
1192 echo "$ac_t""no" 1>&6
1200 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1201 set dummy ${ac_tool_prefix}strip; ac_word=$2
1202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_word" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 if test -n "$STRIP"; then
1208 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1212 for ac_dir in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir=.
1214 if test -f $ac_dir/$ac_word; then
1215 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1222 STRIP="$ac_cv_prog_STRIP"
1223 if test -n "$STRIP"; then
1224 echo "$ac_t""$STRIP" 1>&6
1226 echo "$ac_t""no" 1>&6
1230 if test -z "$ac_cv_prog_STRIP"; then
1231 if test -n "$ac_tool_prefix"; then
1232 # Extract the first word of "strip", so it can be a program name with args.
1233 set dummy strip; ac_word=$2
1234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1235 echo "configure:1236: checking for $ac_word" >&5
1236 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1239 if test -n "$STRIP"; then
1240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1244 for ac_dir in $ac_dummy; do
1245 test -z "$ac_dir" && ac_dir=.
1246 if test -f $ac_dir/$ac_word; then
1247 ac_cv_prog_STRIP="strip"
1252 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1255 STRIP="$ac_cv_prog_STRIP"
1256 if test -n "$STRIP"; then
1257 echo "$ac_t""$STRIP" 1>&6
1259 echo "$ac_t""no" 1>&6
1268 # Extract the first word of "gmake", so it can be a program name with args.
1269 set dummy gmake; ac_word=$2
1270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1271 echo "configure:1272: checking for $ac_word" >&5
1272 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1277 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1280 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1285 for ac_dir in $ac_dummy; do
1286 test -z "$ac_dir" && ac_dir=.
1287 if test -f $ac_dir/$ac_word; then
1288 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1293 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1297 GMAKE="$ac_cv_path_GMAKE"
1298 if test -n "$GMAKE"; then
1299 echo "$ac_t""$GMAKE" 1>&6
1301 echo "$ac_t""no" 1>&6
1304 if test "x$GMAKE" = "xno"; then
1305 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1306 echo "configure:1307: checking whether GNU make is installed" >&5
1307 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 if make --version | grep -q -i gnu; then
1313 echo "This software needs you to install GNU make to compile properly."
1314 echo "You can get it from http://www.gnu.org/."
1319 echo "$ac_t""$ac_cv_gmake" 1>&6
1325 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
1327 cat >> confdefs.h <<EOF
1328 #define VLC_PACKAGE "$PACKAGE"
1331 cat >> confdefs.h <<EOF
1332 #define VLC_VERSION "$VERSION"
1335 # Extract the first word of "ranlib", so it can be a program name with args.
1336 set dummy ranlib; ac_word=$2
1337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1338 echo "configure:1339: checking for $ac_word" >&5
1339 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 if test -n "$RANLIB"; then
1343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1347 for ac_dir in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir=.
1349 if test -f $ac_dir/$ac_word; then
1350 ac_cv_prog_RANLIB="ranlib"
1355 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1358 RANLIB="$ac_cv_prog_RANLIB"
1359 if test -n "$RANLIB"; then
1360 echo "$ac_t""$RANLIB" 1>&6
1362 echo "$ac_t""no" 1>&6
1366 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1367 echo "configure:1368: checking for strerror in -lcposix" >&5
1368 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 ac_save_LIBS="$LIBS"
1373 LIBS="-lcposix $LIBS"
1374 cat > conftest.$ac_ext <<EOF
1375 #line 1376 "configure"
1376 #include "confdefs.h"
1377 /* Override any gcc2 internal prototype to avoid an error. */
1378 /* We use char because int might match the return type of a gcc2
1379 builtin and then its argument prototype would still apply. */
1386 if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1388 eval "ac_cv_lib_$ac_lib_var=yes"
1390 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5
1393 eval "ac_cv_lib_$ac_lib_var=no"
1396 LIBS="$ac_save_LIBS"
1399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1400 echo "$ac_t""yes" 1>&6
1401 LIBS="$LIBS -lcposix"
1403 echo "$ac_t""no" 1>&6
1408 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1409 echo "configure:1410: checking for ANSI C header files" >&5
1410 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 cat > conftest.$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1422 { (eval echo configure:1423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1424 if test -z "$ac_err"; then
1426 ac_cv_header_stdc=yes
1429 echo "configure: failed program was:" >&5
1430 cat conftest.$ac_ext >&5
1432 ac_cv_header_stdc=no
1436 if test $ac_cv_header_stdc = yes; then
1437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1444 egrep "memchr" >/dev/null 2>&1; then
1448 ac_cv_header_stdc=no
1454 if test $ac_cv_header_stdc = yes; then
1455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1462 egrep "free" >/dev/null 2>&1; then
1466 ac_cv_header_stdc=no
1472 if test $ac_cv_header_stdc = yes; then
1473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1474 if test "$cross_compiling" = yes; then
1477 cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1481 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1482 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1483 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1484 int main () { int i; for (i = 0; i < 256; i++)
1485 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1489 if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1493 echo "configure: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1496 ac_cv_header_stdc=no
1504 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1505 if test $ac_cv_header_stdc = yes; then
1506 cat >> confdefs.h <<\EOF
1507 #define STDC_HEADERS 1
1512 echo $ac_n "checking for working const""... $ac_c" 1>&6
1513 echo "configure:1514: checking for working const" >&5
1514 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1523 /* Ultrix mips cc rejects this. */
1524 typedef int charset[2]; const charset x;
1525 /* SunOS 4.1.1 cc rejects this. */
1526 char const *const *ccp;
1528 /* NEC SVR4.0.2 mips cc rejects this. */
1529 struct point {int x, y;};
1530 static struct point const zero = {0,0};
1531 /* AIX XL C 1.02.0.0 rejects this.
1532 It does not let you subtract one const X* pointer from another in an arm
1533 of an if-expression whose if-part is not a constant expression */
1534 const char *g = "string";
1535 ccp = &g + (g ? g-g : 0);
1536 /* HPUX 7.0 cc rejects these. */
1539 ccp = (char const *const *) p;
1540 { /* SCO 3.2v4 cc rejects this. */
1542 char const *s = 0 ? (char *) 0 : (char const *) 0;
1546 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1548 const int *foo = &x[0];
1551 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1552 typedef const int *iptr;
1556 { /* AIX XL C 1.02.0.0 rejects this saying
1557 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1558 struct s { int j; const int *ap[3]; };
1559 struct s *b; b->j = 5;
1561 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1567 if { (eval echo configure:1568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1571 echo "configure: failed program was:" >&5
1572 cat conftest.$ac_ext >&5
1579 echo "$ac_t""$ac_cv_c_const" 1>&6
1580 if test $ac_cv_c_const = no; then
1581 cat >> confdefs.h <<\EOF
1587 echo $ac_n "checking for inline""... $ac_c" 1>&6
1588 echo "configure:1589: checking for inline" >&5
1589 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1593 for ac_kw in inline __inline__ __inline; do
1594 cat > conftest.$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1602 if { (eval echo configure:1603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1604 ac_cv_c_inline=$ac_kw; break
1606 echo "configure: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1614 echo "$ac_t""$ac_cv_c_inline" 1>&6
1615 case "$ac_cv_c_inline" in
1617 no) cat >> confdefs.h <<\EOF
1621 *) cat >> confdefs.h <<EOF
1622 #define inline $ac_cv_c_inline
1627 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1628 echo "configure:1629: checking for off_t" >&5
1629 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1632 cat > conftest.$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1635 #include <sys/types.h>
1641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1642 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1644 ac_cv_type_off_t=yes
1652 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1653 if test $ac_cv_type_off_t = no; then
1654 cat >> confdefs.h <<\EOF
1660 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1661 echo "configure:1662: checking for size_t" >&5
1662 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 cat > conftest.$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1668 #include <sys/types.h>
1674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1675 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1677 ac_cv_type_size_t=yes
1680 ac_cv_type_size_t=no
1685 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1686 if test $ac_cv_type_size_t = no; then
1687 cat >> confdefs.h <<\EOF
1688 #define size_t unsigned
1693 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1694 # for constant arguments. Useless!
1695 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1696 echo "configure:1697: checking for working alloca.h" >&5
1697 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 cat > conftest.$ac_ext <<EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1705 char *p = alloca(2 * sizeof(int));
1708 if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1710 ac_cv_header_alloca_h=yes
1712 echo "configure: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1715 ac_cv_header_alloca_h=no
1720 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1721 if test $ac_cv_header_alloca_h = yes; then
1722 cat >> confdefs.h <<\EOF
1723 #define HAVE_ALLOCA_H 1
1728 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1729 echo "configure:1730: checking for alloca" >&5
1730 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1738 # define alloca __builtin_alloca
1741 # include <malloc.h>
1742 # define alloca _alloca
1745 # include <alloca.h>
1750 # ifndef alloca /* predefined by HP cc +Olibcalls */
1759 char *p = (char *) alloca(1);
1762 if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1764 ac_cv_func_alloca_works=yes
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1769 ac_cv_func_alloca_works=no
1774 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1775 if test $ac_cv_func_alloca_works = yes; then
1776 cat >> confdefs.h <<\EOF
1777 #define HAVE_ALLOCA 1
1782 if test $ac_cv_func_alloca_works = no; then
1783 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1784 # that cause trouble. Some versions do not even contain alloca or
1785 # contain a buggy version. If you still want to use their alloca,
1786 # use ar to extract alloca.o from them instead of compiling alloca.c.
1787 ALLOCA=alloca.${ac_objext}
1788 cat >> confdefs.h <<\EOF
1793 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1794 echo "configure:1795: checking whether alloca needs Cray hooks" >&5
1795 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 #if defined(CRAY) && ! defined(CRAY2)
1808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1809 egrep "webecray" >/dev/null 2>&1; then
1820 echo "$ac_t""$ac_cv_os_cray" 1>&6
1821 if test $ac_cv_os_cray = yes; then
1822 for ac_func in _getb67 GETB67 getb67; do
1823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1824 echo "configure:1825: checking for $ac_func" >&5
1825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $ac_func(); below. */
1834 /* Override any gcc2 internal prototype to avoid an error. */
1835 /* We use char because int might match the return type of a gcc2
1836 builtin and then its argument prototype would still apply. */
1841 /* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1852 if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1854 eval "ac_cv_func_$ac_func=yes"
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1859 eval "ac_cv_func_$ac_func=no"
1864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1865 echo "$ac_t""yes" 1>&6
1866 cat >> confdefs.h <<EOF
1867 #define CRAY_STACKSEG_END $ac_func
1872 echo "$ac_t""no" 1>&6
1878 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1879 echo "configure:1880: checking stack direction for C alloca" >&5
1880 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 if test "$cross_compiling" = yes; then
1884 ac_cv_c_stack_direction=0
1886 cat > conftest.$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1889 find_stack_direction ()
1891 static char *addr = 0;
1896 return find_stack_direction ();
1899 return (&dummy > addr) ? 1 : -1;
1903 exit (find_stack_direction() < 0);
1906 if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1908 ac_cv_c_stack_direction=1
1910 echo "configure: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1913 ac_cv_c_stack_direction=-1
1920 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1921 cat >> confdefs.h <<EOF
1922 #define STACK_DIRECTION $ac_cv_c_stack_direction
1927 for ac_hdr in unistd.h
1929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1931 echo "configure:1932: checking for $ac_hdr" >&5
1932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1941 { (eval echo configure:1942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1943 if test -z "$ac_err"; then
1945 eval "ac_cv_header_$ac_safe=yes"
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1951 eval "ac_cv_header_$ac_safe=no"
1955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1956 echo "$ac_t""yes" 1>&6
1957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1958 cat >> confdefs.h <<EOF
1959 #define $ac_tr_hdr 1
1963 echo "$ac_t""no" 1>&6
1967 for ac_func in getpagesize
1969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1970 echo "configure:1971: checking for $ac_func" >&5
1971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1974 cat > conftest.$ac_ext <<EOF
1975 #line 1976 "configure"
1976 #include "confdefs.h"
1977 /* System header to define __stub macros and hopefully few prototypes,
1978 which can conflict with char $ac_func(); below. */
1980 /* Override any gcc2 internal prototype to avoid an error. */
1981 /* We use char because int might match the return type of a gcc2
1982 builtin and then its argument prototype would still apply. */
1987 /* The GNU C library defines this for functions which it implements
1988 to always fail with ENOSYS. Some functions are actually named
1989 something starting with __ and the normal name is an alias. */
1990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1998 if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2000 eval "ac_cv_func_$ac_func=yes"
2002 echo "configure: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2005 eval "ac_cv_func_$ac_func=no"
2010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2011 echo "$ac_t""yes" 1>&6
2012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2013 cat >> confdefs.h <<EOF
2014 #define $ac_tr_func 1
2018 echo "$ac_t""no" 1>&6
2022 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2023 echo "configure:2024: checking for working mmap" >&5
2024 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 if test "$cross_compiling" = yes; then
2028 ac_cv_func_mmap_fixed_mapped=no
2030 cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2034 /* Thanks to Mike Haertel and Jim Avera for this test.
2035 Here is a matrix of mmap possibilities:
2036 mmap private not fixed
2037 mmap private fixed at somewhere currently unmapped
2038 mmap private fixed at somewhere already mapped
2039 mmap shared not fixed
2040 mmap shared fixed at somewhere currently unmapped
2041 mmap shared fixed at somewhere already mapped
2042 For private mappings, we should verify that changes cannot be read()
2043 back from the file, nor mmap's back from the file at a different
2044 address. (There have been systems where private was not correctly
2045 implemented like the infamous i386 svr4.0, and systems where the
2046 VM page cache was not coherent with the filesystem buffer cache
2047 like early versions of FreeBSD and possibly contemporary NetBSD.)
2048 For shared mappings, we should conversely verify that changes get
2049 propogated back to all the places they're supposed to be.
2051 Grep wants private fixed already mapped.
2052 The main things grep needs to know about mmap are:
2053 * does it exist and is it safe to write into the mmap'd area
2054 * how to use it (BSD variants) */
2055 #include <sys/types.h>
2057 #include <sys/mman.h>
2059 /* This mess was copied from the GNU getpagesize.h. */
2060 #ifndef HAVE_GETPAGESIZE
2061 # ifdef HAVE_UNISTD_H
2062 # include <unistd.h>
2065 /* Assume that all systems that can run configure have sys/param.h. */
2066 # ifndef HAVE_SYS_PARAM_H
2067 # define HAVE_SYS_PARAM_H 1
2070 # ifdef _SC_PAGESIZE
2071 # define getpagesize() sysconf(_SC_PAGESIZE)
2072 # else /* no _SC_PAGESIZE */
2073 # ifdef HAVE_SYS_PARAM_H
2074 # include <sys/param.h>
2075 # ifdef EXEC_PAGESIZE
2076 # define getpagesize() EXEC_PAGESIZE
2077 # else /* no EXEC_PAGESIZE */
2079 # define getpagesize() NBPG * CLSIZE
2082 # endif /* no CLSIZE */
2083 # else /* no NBPG */
2085 # define getpagesize() NBPC
2086 # else /* no NBPC */
2088 # define getpagesize() PAGESIZE
2089 # endif /* PAGESIZE */
2090 # endif /* no NBPC */
2091 # endif /* no NBPG */
2092 # endif /* no EXEC_PAGESIZE */
2093 # else /* no HAVE_SYS_PARAM_H */
2094 # define getpagesize() 8192 /* punt totally */
2095 # endif /* no HAVE_SYS_PARAM_H */
2096 # endif /* no _SC_PAGESIZE */
2098 #endif /* no HAVE_GETPAGESIZE */
2101 extern "C" { void *malloc(unsigned); }
2109 char *data, *data2, *data3;
2113 pagesize = getpagesize();
2116 * First, make a file with some known garbage in it.
2118 data = malloc(pagesize);
2121 for (i = 0; i < pagesize; ++i)
2122 *(data + i) = rand();
2124 fd = creat("conftestmmap", 0600);
2127 if (write(fd, data, pagesize) != pagesize)
2132 * Next, try to mmap the file at a fixed address which
2133 * already has something else allocated at it. If we can,
2134 * also make sure that we see the same garbage.
2136 fd = open("conftestmmap", O_RDWR);
2139 data2 = malloc(2 * pagesize);
2142 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2143 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2144 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2146 for (i = 0; i < pagesize; ++i)
2147 if (*(data + i) != *(data2 + i))
2151 * Finally, make sure that changes to the mapped area
2152 * do not percolate back to the file as seen by read().
2153 * (This is a bug on some variants of i386 svr4.0.)
2155 for (i = 0; i < pagesize; ++i)
2156 *(data2 + i) = *(data2 + i) + 1;
2157 data3 = malloc(pagesize);
2160 if (read(fd, data3, pagesize) != pagesize)
2162 for (i = 0; i < pagesize; ++i)
2163 if (*(data + i) != *(data3 + i))
2166 unlink("conftestmmap");
2171 if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2173 ac_cv_func_mmap_fixed_mapped=yes
2175 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2178 ac_cv_func_mmap_fixed_mapped=no
2185 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2186 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2187 cat >> confdefs.h <<\EOF
2194 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2195 echo "configure:2196: checking whether we are using the GNU C Library 2.1 or newer" >&5
2196 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2203 #include <features.h>
2204 #ifdef __GNU_LIBRARY__
2205 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2212 egrep "Lucky GNU user" >/dev/null 2>&1; then
2214 ac_cv_gnu_library_2_1=yes
2217 ac_cv_gnu_library_2_1=no
2225 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2227 GLIBC21="$ac_cv_gnu_library_2_1"
2231 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2232 stdlib.h string.h unistd.h sys/param.h
2234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_hdr" >&5
2237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 cat > conftest.$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2246 { (eval echo configure:2247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2248 if test -z "$ac_err"; then
2250 eval "ac_cv_header_$ac_safe=yes"
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2256 eval "ac_cv_header_$ac_safe=no"
2260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2263 cat >> confdefs.h <<EOF
2264 #define $ac_tr_hdr 1
2268 echo "$ac_t""no" 1>&6
2272 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2273 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2274 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2277 echo "configure:2278: checking for $ac_func" >&5
2278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2284 /* System header to define __stub macros and hopefully few prototypes,
2285 which can conflict with char $ac_func(); below. */
2287 /* Override any gcc2 internal prototype to avoid an error. */
2288 /* We use char because int might match the return type of a gcc2
2289 builtin and then its argument prototype would still apply. */
2294 /* The GNU C library defines this for functions which it implements
2295 to always fail with ENOSYS. Some functions are actually named
2296 something starting with __ and the normal name is an alias. */
2297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2305 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2307 eval "ac_cv_func_$ac_func=yes"
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 eval "ac_cv_func_$ac_func=no"
2317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2318 echo "$ac_t""yes" 1>&6
2319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2320 cat >> confdefs.h <<EOF
2321 #define $ac_tr_func 1
2325 echo "$ac_t""no" 1>&6
2332 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2333 if test "${with_libiconv_prefix+set}" = set; then
2334 withval="$with_libiconv_prefix"
2336 for dir in `echo "$withval" | tr : ' '`; do
2337 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2338 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2344 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2345 echo "configure:2346: checking for iconv" >&5
2346 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2350 am_cv_func_iconv="no, consider installing GNU libiconv"
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2358 iconv_t cd = iconv_open("","");
2359 iconv(cd,NULL,NULL,NULL,NULL);
2363 if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2365 am_cv_func_iconv=yes
2367 echo "configure: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2371 if test "$am_cv_func_iconv" != yes; then
2372 am_save_LIBS="$LIBS"
2373 LIBS="$LIBS -liconv"
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2380 iconv_t cd = iconv_open("","");
2381 iconv(cd,NULL,NULL,NULL,NULL);
2385 if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2388 am_cv_func_iconv=yes
2390 echo "configure: failed program was:" >&5
2391 cat conftest.$ac_ext >&5
2394 LIBS="$am_save_LIBS"
2399 echo "$ac_t""$am_cv_func_iconv" 1>&6
2400 if test "$am_cv_func_iconv" = yes; then
2401 cat >> confdefs.h <<\EOF
2402 #define HAVE_ICONV 1
2405 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2406 echo "configure:2407: checking for iconv declaration" >&5
2407 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2421 #if defined(__STDC__) || defined(__cplusplus)
2422 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2431 if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2433 am_cv_proto_iconv_arg1=""
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2438 am_cv_proto_iconv_arg1="const"
2441 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);"
2444 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2445 echo "$ac_t""${ac_t:-
2446 }$am_cv_proto_iconv" 1>&6
2447 cat >> confdefs.h <<EOF
2448 #define ICONV_CONST $am_cv_proto_iconv_arg1
2453 if test "$am_cv_lib_iconv" = yes; then
2459 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2460 echo "configure:2461: checking for nl_langinfo and CODESET" >&5
2461 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 cat > conftest.$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2467 #include <langinfo.h>
2469 char* cs = nl_langinfo(CODESET);
2472 if { (eval echo configure:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2474 am_cv_langinfo_codeset=yes
2476 echo "configure: failed program was:" >&5
2477 cat conftest.$ac_ext >&5
2479 am_cv_langinfo_codeset=no
2485 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2486 if test $am_cv_langinfo_codeset = yes; then
2487 cat >> confdefs.h <<\EOF
2488 #define HAVE_LANGINFO_CODESET 1
2493 if test $ac_cv_header_locale_h = yes; then
2494 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2495 echo "configure:2496: checking for LC_MESSAGES" >&5
2496 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2509 am_cv_val_LC_MESSAGES=yes
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2514 am_cv_val_LC_MESSAGES=no
2519 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2520 if test $am_cv_val_LC_MESSAGES = yes; then
2521 cat >> confdefs.h <<\EOF
2522 #define HAVE_LC_MESSAGES 1
2527 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2528 echo "configure:2529: checking whether NLS is requested" >&5
2529 # Check whether --enable-nls or --disable-nls was given.
2530 if test "${enable_nls+set}" = set; then
2531 enableval="$enable_nls"
2537 echo "$ac_t""$USE_NLS" 1>&6
2540 BUILD_INCLUDED_LIBINTL=no
2541 USE_INCLUDED_LIBINTL=no
2544 if test "$USE_NLS" = "yes"; then
2545 cat >> confdefs.h <<\EOF
2546 #define ENABLE_NLS 1
2549 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2550 echo "configure:2551: checking whether included gettext is requested" >&5
2551 # Check whether --with-included-gettext or --without-included-gettext was given.
2552 if test "${with_included_gettext+set}" = set; then
2553 withval="$with_included_gettext"
2554 nls_cv_force_use_gnu_gettext=$withval
2556 nls_cv_force_use_gnu_gettext=no
2559 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2561 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2562 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2568 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2569 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2570 echo "configure:2571: checking for libintl.h" >&5
2571 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2574 cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 #include <libintl.h>
2579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2580 { (eval echo configure:2581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2582 if test -z "$ac_err"; then
2584 eval "ac_cv_header_$ac_safe=yes"
2587 echo "configure: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2590 eval "ac_cv_header_$ac_safe=no"
2594 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2595 echo "$ac_t""yes" 1>&6
2596 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2597 echo "configure:2598: checking for GNU gettext in libc" >&5
2598 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2604 #include <libintl.h>
2605 extern int _nl_msg_cat_cntr;
2607 bindtextdomain ("", "");
2608 return (int) gettext ("") + _nl_msg_cat_cntr
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2613 gt_cv_func_gnugettext1_libc=yes
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2618 gt_cv_func_gnugettext1_libc=no
2623 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2625 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2626 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2627 echo "configure:2628: checking for GNU gettext in libintl" >&5
2628 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 gt_save_LIBS="$LIBS"
2632 LIBS="$LIBS -lintl $LIBICONV"
2633 cat > conftest.$ac_ext <<EOF
2634 #line 2635 "configure"
2635 #include "confdefs.h"
2636 #include <libintl.h>
2637 extern int _nl_msg_cat_cntr;
2639 bindtextdomain ("", "");
2640 return (int) gettext ("") + _nl_msg_cat_cntr
2643 if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2645 gt_cv_func_gnugettext1_libintl=yes
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2650 gt_cv_func_gnugettext1_libintl=no
2653 LIBS="$gt_save_LIBS"
2656 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2659 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2660 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2661 && test "$PACKAGE" != gettext; }; then
2662 cat >> confdefs.h <<\EOF
2663 #define HAVE_GETTEXT 1
2667 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2668 INTLLIBS="-lintl $LIBICONV"
2671 gt_save_LIBS="$LIBS"
2672 LIBS="$LIBS $INTLLIBS"
2673 for ac_func in dcgettext
2675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2676 echo "configure:2677: checking for $ac_func" >&5
2677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2683 /* System header to define __stub macros and hopefully few prototypes,
2684 which can conflict with char $ac_func(); below. */
2686 /* Override any gcc2 internal prototype to avoid an error. */
2687 /* We use char because int might match the return type of a gcc2
2688 builtin and then its argument prototype would still apply. */
2693 /* The GNU C library defines this for functions which it implements
2694 to always fail with ENOSYS. Some functions are actually named
2695 something starting with __ and the normal name is an alias. */
2696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2704 if { (eval echo configure:2705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2706 eval "ac_cv_func_$ac_func=yes"
2708 echo "configure: failed program was:" >&5
2709 cat conftest.$ac_ext >&5
2711 eval "ac_cv_func_$ac_func=no"
2716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2717 echo "$ac_t""yes" 1>&6
2718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2719 cat >> confdefs.h <<EOF
2720 #define $ac_tr_func 1
2724 echo "$ac_t""no" 1>&6
2728 LIBS="$gt_save_LIBS"
2730 # Extract the first word of "msgfmt", so it can be a program name with args.
2731 set dummy msgfmt; ac_word=$2
2732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_word" >&5
2734 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2739 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2743 for ac_dir in $PATH; do
2744 test -z "$ac_dir" && ac_dir=.
2745 if test -f $ac_dir/$ac_word; then
2746 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2747 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2753 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2757 MSGFMT="$ac_cv_path_MSGFMT"
2758 if test "$MSGFMT" != ":"; then
2759 echo "$ac_t""$MSGFMT" 1>&6
2761 echo "$ac_t""no" 1>&6
2764 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2765 set dummy gmsgfmt; ac_word=$2
2766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2767 echo "configure:2768: checking for $ac_word" >&5
2768 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2773 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2776 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2781 for ac_dir in $ac_dummy; do
2782 test -z "$ac_dir" && ac_dir=.
2783 if test -f $ac_dir/$ac_word; then
2784 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2789 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2793 GMSGFMT="$ac_cv_path_GMSGFMT"
2794 if test -n "$GMSGFMT"; then
2795 echo "$ac_t""$GMSGFMT" 1>&6
2797 echo "$ac_t""no" 1>&6
2801 # Extract the first word of "xgettext", so it can be a program name with args.
2802 set dummy xgettext; ac_word=$2
2803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2804 echo "configure:2805: checking for $ac_word" >&5
2805 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2810 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2814 for ac_dir in $PATH; do
2815 test -z "$ac_dir" && ac_dir=.
2816 if test -f $ac_dir/$ac_word; then
2817 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2818 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2824 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2828 XGETTEXT="$ac_cv_path_XGETTEXT"
2829 if test "$XGETTEXT" != ":"; then
2830 echo "$ac_t""$XGETTEXT" 1>&6
2832 echo "$ac_t""no" 1>&6
2840 echo "$ac_t""no" 1>&6
2844 if test "$CATOBJEXT" = "NONE"; then
2845 nls_cv_use_gnu_gettext=yes
2849 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2850 INTLOBJS="\$(GETTOBJS)"
2851 # Extract the first word of "msgfmt", so it can be a program name with args.
2852 set dummy msgfmt; ac_word=$2
2853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2854 echo "configure:2855: checking for $ac_word" >&5
2855 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2860 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2864 for ac_dir in $PATH; do
2865 test -z "$ac_dir" && ac_dir=.
2866 if test -f $ac_dir/$ac_word; then
2867 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2868 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2874 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2878 MSGFMT="$ac_cv_path_MSGFMT"
2879 if test "$MSGFMT" != ":"; then
2880 echo "$ac_t""$MSGFMT" 1>&6
2882 echo "$ac_t""no" 1>&6
2885 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2886 set dummy gmsgfmt; ac_word=$2
2887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2888 echo "configure:2889: checking for $ac_word" >&5
2889 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2894 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2897 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2902 for ac_dir in $ac_dummy; do
2903 test -z "$ac_dir" && ac_dir=.
2904 if test -f $ac_dir/$ac_word; then
2905 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2910 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2914 GMSGFMT="$ac_cv_path_GMSGFMT"
2915 if test -n "$GMSGFMT"; then
2916 echo "$ac_t""$GMSGFMT" 1>&6
2918 echo "$ac_t""no" 1>&6
2921 # Extract the first word of "xgettext", so it can be a program name with args.
2922 set dummy xgettext; ac_word=$2
2923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2924 echo "configure:2925: checking for $ac_word" >&5
2925 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2930 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2934 for ac_dir in $PATH; do
2935 test -z "$ac_dir" && ac_dir=.
2936 if test -f $ac_dir/$ac_word; then
2937 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2938 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2944 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2948 XGETTEXT="$ac_cv_path_XGETTEXT"
2949 if test "$XGETTEXT" != ":"; then
2950 echo "$ac_t""$XGETTEXT" 1>&6
2952 echo "$ac_t""no" 1>&6
2956 BUILD_INCLUDED_LIBINTL=yes
2957 USE_INCLUDED_LIBINTL=yes
2959 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2960 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2963 if test "$GMSGFMT" != ":"; then
2964 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2967 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2972 if test "$XGETTEXT" != ":"; then
2973 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2976 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2986 if test "$PACKAGE" = gettext; then
2987 BUILD_INCLUDED_LIBINTL=yes
2990 for ac_prog in bison
2992 # Extract the first word of "$ac_prog", so it can be a program name with args.
2993 set dummy $ac_prog; ac_word=$2
2994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2995 echo "configure:2996: checking for $ac_word" >&5
2996 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2997 echo $ac_n "(cached) $ac_c" 1>&6
2999 if test -n "$INTLBISON"; then
3000 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3004 for ac_dir in $ac_dummy; do
3005 test -z "$ac_dir" && ac_dir=.
3006 if test -f $ac_dir/$ac_word; then
3007 ac_cv_prog_INTLBISON="$ac_prog"
3014 INTLBISON="$ac_cv_prog_INTLBISON"
3015 if test -n "$INTLBISON"; then
3016 echo "$ac_t""$INTLBISON" 1>&6
3018 echo "$ac_t""no" 1>&6
3021 test -n "$INTLBISON" && break
3024 if test -z "$INTLBISON"; then
3027 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3028 echo "configure:3029: checking version of bison" >&5
3029 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3030 case $ac_prog_version in
3031 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3032 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3033 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3034 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3036 echo "$ac_t""$ac_prog_version" 1>&6
3038 if test $ac_verc_fail = yes; then
3042 for lang in $ALL_LINGUAS; do
3043 GMOFILES="$GMOFILES $lang.gmo"
3044 POFILES="$POFILES $lang.po"
3058 nls_cv_header_libgt=
3070 if test "x$CATOBJEXT" != "x"; then
3071 if test "x$ALL_LINGUAS" = "x"; then
3074 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3075 echo "configure:3076: checking for catalogs to be installed" >&5
3077 for presentlang in $ALL_LINGUAS; do
3079 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3080 # Use the presentlang catalog if desiredlang is
3081 # a. equal to presentlang, or
3082 # b. a variant of presentlang (because in this case,
3083 # presentlang can be used as a fallback for messages
3084 # which are not translated in the desiredlang catalog).
3085 case "$desiredlang" in
3086 "$presentlang"*) useit=yes;;
3089 if test $useit = yes; then
3090 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3093 LINGUAS=$NEW_LINGUAS
3094 echo "$ac_t""$LINGUAS" 1>&6
3097 if test -n "$LINGUAS"; then
3098 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3103 if test -n "$ac_aux_dir"; then
3104 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3106 if test -z "$MKINSTALLDIRS"; then
3107 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3111 INTL_LIBTOOL_SUFFIX_PREFIX=
3115 # Find a good install program. We prefer a C program (faster),
3116 # so one script is as good as another. But avoid the broken or
3117 # incompatible versions:
3118 # SysV /etc/install, /usr/sbin/install
3119 # SunOS /usr/etc/install
3120 # IRIX /sbin/install
3122 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3125 # ./install, which can be erroneously created by make from ./install.sh.
3126 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3127 echo "configure:3128: checking for a BSD compatible install" >&5
3128 if test -z "$INSTALL"; then
3129 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3132 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3133 for ac_dir in $PATH; do
3134 # Account for people who put trailing slashes in PATH elements.
3136 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3138 # OSF1 and SCO ODT 3.0 have their own names for install.
3139 # Don't use installbsd from OSF since it installs stuff as root
3141 for ac_prog in ginstall scoinst install; do
3142 if test -f $ac_dir/$ac_prog; then
3143 if test $ac_prog = install &&
3144 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3145 # AIX install. It has an incompatible calling convention.
3148 ac_cv_path_install="$ac_dir/$ac_prog -c"
3159 if test "${ac_cv_path_install+set}" = set; then
3160 INSTALL="$ac_cv_path_install"
3162 # As a last resort, use the slow shell script. We don't cache a
3163 # path for INSTALL within a source directory, because that will
3164 # break other packages using the cache if that directory is
3165 # removed, or if the path is relative.
3166 INSTALL="$ac_install_sh"
3169 echo "$ac_t""$INSTALL" 1>&6
3171 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3172 # It thinks the first close brace ends the variable substitution.
3173 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3175 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3177 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3180 case x"${target_os}" in
3189 save_CFLAGS="${save_CFLAGS} -pthread"
3190 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3191 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3195 save_CFLAGS="${save_CFLAGS} -pthread"
3199 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3203 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3204 set dummy ${ac_tool_prefix}windres; ac_word=$2
3205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3206 echo "configure:3207: checking for $ac_word" >&5
3207 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 if test -n "$WINDRES"; then
3211 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3215 for ac_dir in $ac_dummy; do
3216 test -z "$ac_dir" && ac_dir=.
3217 if test -f $ac_dir/$ac_word; then
3218 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3225 WINDRES="$ac_cv_prog_WINDRES"
3226 if test -n "$WINDRES"; then
3227 echo "$ac_t""$WINDRES" 1>&6
3229 echo "$ac_t""no" 1>&6
3233 if test -z "$ac_cv_prog_WINDRES"; then
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "windres", so it can be a program name with args.
3236 set dummy windres; ac_word=$2
3237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3238 echo "configure:3239: checking for $ac_word" >&5
3239 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3242 if test -n "$WINDRES"; then
3243 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3247 for ac_dir in $ac_dummy; do
3248 test -z "$ac_dir" && ac_dir=.
3249 if test -f $ac_dir/$ac_word; then
3250 ac_cv_prog_WINDRES="windres"
3255 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3258 WINDRES="$ac_cv_prog_WINDRES"
3259 if test -n "$WINDRES"; then
3260 echo "$ac_t""$WINDRES" 1>&6
3262 echo "$ac_t""no" 1>&6
3270 save_CFLAGS="${save_CFLAGS} -D_OFF_T_ -D_off_t=long"
3271 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3272 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3273 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3274 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3275 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3276 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3280 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3281 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3285 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3286 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3287 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3288 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker -ltranslation -lstdc++.r4"
3289 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3296 if test x"${SYS}" != xmingw32; then
3297 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3300 if test x$SYS = xmingw32
3302 echo $ac_n "checking for opendir in -lmingwex""... $ac_c" 1>&6
3303 echo "configure:3304: checking for opendir in -lmingwex" >&5
3304 ac_lib_var=`echo mingwex'_'opendir | sed 'y%./+-%__p_%'`
3305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3308 ac_save_LIBS="$LIBS"
3309 LIBS="-lmingwex $LIBS"
3310 cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 /* Override any gcc2 internal prototype to avoid an error. */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3322 if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3324 eval "ac_cv_lib_$ac_lib_var=yes"
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3329 eval "ac_cv_lib_$ac_lib_var=no"
3332 LIBS="$ac_save_LIBS"
3335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3336 echo "$ac_t""yes" 1>&6
3337 echo $ac_n "checking for opendir in -lmingw32""... $ac_c" 1>&6
3338 echo "configure:3339: checking for opendir in -lmingw32" >&5
3339 ac_lib_var=`echo mingw32'_'opendir | sed 'y%./+-%__p_%'`
3340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3343 ac_save_LIBS="$LIBS"
3344 LIBS="-lmingw32 $LIBS"
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 /* Override any gcc2 internal prototype to avoid an error. */
3349 /* We use char because int might match the return type of a gcc2
3350 builtin and then its argument prototype would still apply. */
3357 if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3359 eval "ac_cv_lib_$ac_lib_var=yes"
3361 echo "configure: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3364 eval "ac_cv_lib_$ac_lib_var=no"
3367 LIBS="$ac_save_LIBS"
3370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3372 vlc_LDFLAGS="${vlc_LDFLAGS}"
3374 echo "$ac_t""no" 1>&6
3375 vlc_LDFLAGS="${vlc_LDFLAGS} -lmingwex"
3376 gtk_LDFLAGS="${gtk_LDFLAGS} -lmingwex"
3381 echo "$ac_t""no" 1>&6
3386 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3388 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
3390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3391 echo "configure:3392: checking for $ac_func" >&5
3392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 /* System header to define __stub macros and hopefully few prototypes,
3399 which can conflict with char $ac_func(); below. */
3401 /* Override any gcc2 internal prototype to avoid an error. */
3402 /* We use char because int might match the return type of a gcc2
3403 builtin and then its argument prototype would still apply. */
3408 /* The GNU C library defines this for functions which it implements
3409 to always fail with ENOSYS. Some functions are actually named
3410 something starting with __ and the normal name is an alias. */
3411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3419 if { (eval echo configure:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3421 eval "ac_cv_func_$ac_func=yes"
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3426 eval "ac_cv_func_$ac_func=no"
3431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3432 echo "$ac_t""yes" 1>&6
3433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3434 cat >> confdefs.h <<EOF
3435 #define $ac_tr_func 1
3439 echo "$ac_t""no" 1>&6
3444 echo $ac_n "checking for connect""... $ac_c" 1>&6
3445 echo "configure:3446: checking for connect" >&5
3446 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 /* System header to define __stub macros and hopefully few prototypes,
3453 which can conflict with char connect(); below. */
3455 /* Override any gcc2 internal prototype to avoid an error. */
3456 /* We use char because int might match the return type of a gcc2
3457 builtin and then its argument prototype would still apply. */
3462 /* The GNU C library defines this for functions which it implements
3463 to always fail with ENOSYS. Some functions are actually named
3464 something starting with __ and the normal name is an alias. */
3465 #if defined (__stub_connect) || defined (__stub___connect)
3473 if { (eval echo configure:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3475 eval "ac_cv_func_connect=yes"
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3480 eval "ac_cv_func_connect=no"
3485 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3486 echo "$ac_t""yes" 1>&6
3489 echo "$ac_t""no" 1>&6
3491 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3492 echo "configure:3493: checking for connect in -lsocket" >&5
3493 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 ac_save_LIBS="$LIBS"
3498 LIBS="-lsocket $LIBS"
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 /* Override any gcc2 internal prototype to avoid an error. */
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3511 if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3513 eval "ac_cv_lib_$ac_lib_var=yes"
3515 echo "configure: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3518 eval "ac_cv_lib_$ac_lib_var=no"
3521 LIBS="$ac_save_LIBS"
3524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3525 echo "$ac_t""yes" 1>&6
3526 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3527 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3530 echo "$ac_t""no" 1>&6
3535 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3536 echo "configure:3537: checking for gethostbyname" >&5
3537 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* System header to define __stub macros and hopefully few prototypes,
3544 which can conflict with char gethostbyname(); below. */
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3549 char gethostbyname();
3553 /* The GNU C library defines this for functions which it implements
3554 to always fail with ENOSYS. Some functions are actually named
3555 something starting with __ and the normal name is an alias. */
3556 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3566 eval "ac_cv_func_gethostbyname=yes"
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3571 eval "ac_cv_func_gethostbyname=no"
3576 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3577 echo "$ac_t""yes" 1>&6
3580 echo "$ac_t""no" 1>&6
3582 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3583 echo "configure:3584: checking for gethostbyname in -lnsl" >&5
3584 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3588 ac_save_LIBS="$LIBS"
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3593 /* Override any gcc2 internal prototype to avoid an error. */
3594 /* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3596 char gethostbyname();
3602 if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3604 eval "ac_cv_lib_$ac_lib_var=yes"
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3609 eval "ac_cv_lib_$ac_lib_var=no"
3612 LIBS="$ac_save_LIBS"
3615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3616 echo "$ac_t""yes" 1>&6
3617 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3619 echo "$ac_t""no" 1>&6
3625 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3626 echo "configure:3627: checking for gethostbyname" >&5
3627 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 /* System header to define __stub macros and hopefully few prototypes,
3634 which can conflict with char gethostbyname(); below. */
3636 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3639 char gethostbyname();
3643 /* The GNU C library defines this for functions which it implements
3644 to always fail with ENOSYS. Some functions are actually named
3645 something starting with __ and the normal name is an alias. */
3646 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3654 if { (eval echo configure:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3656 eval "ac_cv_func_gethostbyname=yes"
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3661 eval "ac_cv_func_gethostbyname=no"
3666 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3667 echo "$ac_t""yes" 1>&6
3670 echo "$ac_t""no" 1>&6
3672 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3673 echo "configure:3674: checking for gethostbyname in -lbind" >&5
3674 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 ac_save_LIBS="$LIBS"
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3686 char gethostbyname();
3692 if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3694 eval "ac_cv_lib_$ac_lib_var=yes"
3696 echo "configure: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3699 eval "ac_cv_lib_$ac_lib_var=no"
3702 LIBS="$ac_save_LIBS"
3705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3709 echo "$ac_t""no" 1>&6
3716 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3717 echo "configure:3718: checking for nanosleep" >&5
3718 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3721 cat > conftest.$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3724 /* System header to define __stub macros and hopefully few prototypes,
3725 which can conflict with char nanosleep(); below. */
3727 /* Override any gcc2 internal prototype to avoid an error. */
3728 /* We use char because int might match the return type of a gcc2
3729 builtin and then its argument prototype would still apply. */
3734 /* The GNU C library defines this for functions which it implements
3735 to always fail with ENOSYS. Some functions are actually named
3736 something starting with __ and the normal name is an alias. */
3737 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3745 if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3747 eval "ac_cv_func_nanosleep=yes"
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3752 eval "ac_cv_func_nanosleep=no"
3757 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6
3761 echo "$ac_t""no" 1>&6
3763 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3764 echo "configure:3765: checking for nanosleep in -lrt" >&5
3765 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 ac_save_LIBS="$LIBS"
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3774 /* Override any gcc2 internal prototype to avoid an error. */
3775 /* We use char because int might match the return type of a gcc2
3776 builtin and then its argument prototype would still apply. */
3783 if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 eval "ac_cv_lib_$ac_lib_var=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3790 eval "ac_cv_lib_$ac_lib_var=no"
3793 LIBS="$ac_save_LIBS"
3796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3800 echo "$ac_t""no" 1>&6
3801 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3802 echo "configure:3803: checking for nanosleep in -lposix4" >&5
3803 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3807 ac_save_LIBS="$LIBS"
3808 LIBS="-lposix4 $LIBS"
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 /* Override any gcc2 internal prototype to avoid an error. */
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3823 eval "ac_cv_lib_$ac_lib_var=yes"
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 eval "ac_cv_lib_$ac_lib_var=no"
3831 LIBS="$ac_save_LIBS"
3834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3835 echo "$ac_t""yes" 1>&6
3836 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3838 echo "$ac_t""no" 1>&6
3847 if test x$have_nanosleep = x1; then
3848 cat >> confdefs.h <<\EOF
3849 #define HAVE_NANOSLEEP 1
3853 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3854 echo "configure:3855: checking for inet_aton" >&5
3855 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 /* System header to define __stub macros and hopefully few prototypes,
3862 which can conflict with char inet_aton(); below. */
3864 /* Override any gcc2 internal prototype to avoid an error. */
3865 /* We use char because int might match the return type of a gcc2
3866 builtin and then its argument prototype would still apply. */
3871 /* The GNU C library defines this for functions which it implements
3872 to always fail with ENOSYS. Some functions are actually named
3873 something starting with __ and the normal name is an alias. */
3874 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 eval "ac_cv_func_inet_aton=yes"
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 eval "ac_cv_func_inet_aton=no"
3894 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3895 echo "$ac_t""yes" 1>&6
3898 echo "$ac_t""no" 1>&6
3900 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3901 echo "configure:3902: checking for inet_aton in -lresolv" >&5
3902 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 ac_save_LIBS="$LIBS"
3907 LIBS="-lresolv $LIBS"
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3911 /* Override any gcc2 internal prototype to avoid an error. */
3912 /* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3920 if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3922 eval "ac_cv_lib_$ac_lib_var=yes"
3924 echo "configure: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3927 eval "ac_cv_lib_$ac_lib_var=no"
3930 LIBS="$ac_save_LIBS"
3933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3934 echo "$ac_t""yes" 1>&6
3935 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3937 echo "$ac_t""no" 1>&6
3943 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3944 echo "configure:3945: checking for textdomain" >&5
3945 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3946 echo $ac_n "(cached) $ac_c" 1>&6
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3951 /* System header to define __stub macros and hopefully few prototypes,
3952 which can conflict with char textdomain(); below. */
3954 /* Override any gcc2 internal prototype to avoid an error. */
3955 /* We use char because int might match the return type of a gcc2
3956 builtin and then its argument prototype would still apply. */
3961 /* The GNU C library defines this for functions which it implements
3962 to always fail with ENOSYS. Some functions are actually named
3963 something starting with __ and the normal name is an alias. */
3964 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3974 eval "ac_cv_func_textdomain=yes"
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3979 eval "ac_cv_func_textdomain=no"
3984 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3985 echo "$ac_t""yes" 1>&6
3988 echo "$ac_t""no" 1>&6
3990 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3991 echo "configure:3992: checking for textdomain in -lintl" >&5
3992 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 ac_save_LIBS="$LIBS"
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 /* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4010 if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4012 eval "ac_cv_lib_$ac_lib_var=yes"
4014 echo "configure: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4017 eval "ac_cv_lib_$ac_lib_var=no"
4020 LIBS="$ac_save_LIBS"
4023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4024 echo "$ac_t""yes" 1>&6
4025 save_LDFLAGS="${save_LDFLAGS} -lintl"
4027 echo "$ac_t""no" 1>&6
4035 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4036 echo "configure:4037: checking for getopt_long" >&5
4037 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 cat > conftest.$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4043 /* System header to define __stub macros and hopefully few prototypes,
4044 which can conflict with char getopt_long(); below. */
4046 /* Override any gcc2 internal prototype to avoid an error. */
4047 /* We use char because int might match the return type of a gcc2
4048 builtin and then its argument prototype would still apply. */
4053 /* The GNU C library defines this for functions which it implements
4054 to always fail with ENOSYS. Some functions are actually named
4055 something starting with __ and the normal name is an alias. */
4056 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4064 if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4066 eval "ac_cv_func_getopt_long=yes"
4068 echo "configure: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4071 eval "ac_cv_func_getopt_long=no"
4076 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4077 echo "$ac_t""yes" 1>&6
4078 cat >> confdefs.h <<\EOF
4079 #define HAVE_GETOPT_LONG 1
4083 echo "$ac_t""no" 1>&6
4084 # FreeBSD has a gnugetopt library for this:
4085 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4086 echo "configure:4087: checking for getopt_long in -lgnugetopt" >&5
4087 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4091 ac_save_LIBS="$LIBS"
4092 LIBS="-lgnugetopt $LIBS"
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4107 eval "ac_cv_lib_$ac_lib_var=yes"
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4112 eval "ac_cv_lib_$ac_lib_var=no"
4115 LIBS="$ac_save_LIBS"
4118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4120 cat >> confdefs.h <<\EOF
4121 #define HAVE_GETOPT_LONG 1
4123 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4125 echo "$ac_t""no" 1>&6
4132 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4133 echo "configure:4134: checking return type of signal handlers" >&5
4134 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #include <sys/types.h>
4146 extern "C" void (*signal (int, void (*)(int)))(int);
4148 void (*signal ()) ();
4155 if { (eval echo configure:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4157 ac_cv_type_signal=void
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 ac_cv_type_signal=int
4167 echo "$ac_t""$ac_cv_type_signal" 1>&6
4168 cat >> confdefs.h <<EOF
4169 #define RETSIGTYPE $ac_cv_type_signal
4173 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4174 echo "configure:4175: checking for dlopen in -ldl" >&5
4175 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4179 ac_save_LIBS="$LIBS"
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 /* Override any gcc2 internal prototype to avoid an error. */
4185 /* We use char because int might match the return type of a gcc2
4186 builtin and then its argument prototype would still apply. */
4193 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4195 eval "ac_cv_lib_$ac_lib_var=yes"
4197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4200 eval "ac_cv_lib_$ac_lib_var=no"
4203 LIBS="$ac_save_LIBS"
4206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4207 echo "$ac_t""yes" 1>&6
4208 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4210 echo "$ac_t""no" 1>&6
4213 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4214 echo "configure:4215: checking for cos in -lm" >&5
4215 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4217 echo $ac_n "(cached) $ac_c" 1>&6
4219 ac_save_LIBS="$LIBS"
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 /* Override any gcc2 internal prototype to avoid an error. */
4225 /* We use char because int might match the return type of a gcc2
4226 builtin and then its argument prototype would still apply. */
4233 if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4235 eval "ac_cv_lib_$ac_lib_var=yes"
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 eval "ac_cv_lib_$ac_lib_var=no"
4243 LIBS="$ac_save_LIBS"
4246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4247 echo "$ac_t""yes" 1>&6
4248 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4249 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4251 echo "$ac_t""no" 1>&6
4254 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4255 echo "configure:4256: checking for pow in -lm" >&5
4256 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 ac_save_LIBS="$LIBS"
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4265 /* Override any gcc2 internal prototype to avoid an error. */
4266 /* We use char because int might match the return type of a gcc2
4267 builtin and then its argument prototype would still apply. */
4274 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4276 eval "ac_cv_lib_$ac_lib_var=yes"
4278 echo "configure: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4281 eval "ac_cv_lib_$ac_lib_var=no"
4284 LIBS="$ac_save_LIBS"
4287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4288 echo "$ac_t""yes" 1>&6
4289 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4290 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4291 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4292 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4295 echo "$ac_t""no" 1>&6
4300 if test "x${THREAD_LIB}" = xerror; then
4301 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4302 echo "configure:4303: checking for pthread_attr_init in -lpthread" >&5
4303 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4307 ac_save_LIBS="$LIBS"
4308 LIBS="-lpthread $LIBS"
4309 cat > conftest.$ac_ext <<EOF
4310 #line 4311 "configure"
4311 #include "confdefs.h"
4312 /* Override any gcc2 internal prototype to avoid an error. */
4313 /* We use char because int might match the return type of a gcc2
4314 builtin and then its argument prototype would still apply. */
4315 char pthread_attr_init();
4321 if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4323 eval "ac_cv_lib_$ac_lib_var=yes"
4325 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4328 eval "ac_cv_lib_$ac_lib_var=no"
4331 LIBS="$ac_save_LIBS"
4334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4335 echo "$ac_t""yes" 1>&6
4336 THREAD_LIB="-lpthread"
4338 echo "$ac_t""no" 1>&6
4342 if test "x${THREAD_LIB}" = xerror; then
4343 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4344 echo "configure:4345: checking for pthread_attr_init in -lpthreads" >&5
4345 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4349 ac_save_LIBS="$LIBS"
4350 LIBS="-lpthreads $LIBS"
4351 cat > conftest.$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4354 /* Override any gcc2 internal prototype to avoid an error. */
4355 /* We use char because int might match the return type of a gcc2
4356 builtin and then its argument prototype would still apply. */
4357 char pthread_attr_init();
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4365 eval "ac_cv_lib_$ac_lib_var=yes"
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4370 eval "ac_cv_lib_$ac_lib_var=no"
4373 LIBS="$ac_save_LIBS"
4376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4377 echo "$ac_t""yes" 1>&6
4378 THREAD_LIB="-lpthreads"
4380 echo "$ac_t""no" 1>&6
4384 if test "x${THREAD_LIB}" = xerror; then
4385 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4386 echo "configure:4387: checking for pthread_attr_init in -lc_r" >&5
4387 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4391 ac_save_LIBS="$LIBS"
4393 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4399 char pthread_attr_init();
4405 if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4407 eval "ac_cv_lib_$ac_lib_var=yes"
4409 echo "configure: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4412 eval "ac_cv_lib_$ac_lib_var=no"
4415 LIBS="$ac_save_LIBS"
4418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4419 echo "$ac_t""yes" 1>&6
4422 echo "$ac_t""no" 1>&6
4426 if test "x${THREAD_LIB}" = xerror; then
4427 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4428 echo "configure:4429: checking for pthread_attr_init" >&5
4429 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4435 /* System header to define __stub macros and hopefully few prototypes,
4436 which can conflict with char pthread_attr_init(); below. */
4438 /* Override any gcc2 internal prototype to avoid an error. */
4439 /* We use char because int might match the return type of a gcc2
4440 builtin and then its argument prototype would still apply. */
4441 char pthread_attr_init();
4445 /* The GNU C library defines this for functions which it implements
4446 to always fail with ENOSYS. Some functions are actually named
4447 something starting with __ and the normal name is an alias. */
4448 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4451 pthread_attr_init();
4456 if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4458 eval "ac_cv_func_pthread_attr_init=yes"
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4463 eval "ac_cv_func_pthread_attr_init=no"
4468 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4472 echo "$ac_t""no" 1>&6
4478 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4479 echo "configure:4480: checking for cthread_fork in -lthreads" >&5
4480 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4481 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4484 ac_save_LIBS="$LIBS"
4485 LIBS="-lthreads $LIBS"
4486 cat > conftest.$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4489 /* Override any gcc2 internal prototype to avoid an error. */
4490 /* We use char because int might match the return type of a gcc2
4491 builtin and then its argument prototype would still apply. */
4492 char cthread_fork();
4498 if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4500 eval "ac_cv_lib_$ac_lib_var=yes"
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 eval "ac_cv_lib_$ac_lib_var=no"
4508 LIBS="$ac_save_LIBS"
4511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4512 echo "$ac_t""yes" 1>&6
4513 THREAD_LIB="-lthreads"
4515 echo "$ac_t""no" 1>&6
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4522 #include <pthread.h>
4524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4525 egrep "pthread_cond_t" >/dev/null 2>&1; then
4528 cat >> confdefs.h <<\EOF
4529 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 #include <strings.h>
4540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4541 egrep "strncasecmp" >/dev/null 2>&1; then
4544 cat >> confdefs.h <<\EOF
4545 #define STRNCASECMP_IN_STRINGS_H 1
4552 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4556 echo "configure:4557: checking for $ac_hdr" >&5
4557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4566 { (eval echo configure:4567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4568 if test -z "$ac_err"; then
4570 eval "ac_cv_header_$ac_safe=yes"
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4576 eval "ac_cv_header_$ac_safe=no"
4580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4581 echo "$ac_t""yes" 1>&6
4582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4583 cat >> confdefs.h <<EOF
4584 #define $ac_tr_hdr 1
4588 echo "$ac_t""no" 1>&6
4592 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4596 echo "configure:4597: checking for $ac_hdr" >&5
4597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4600 cat > conftest.$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4606 { (eval echo configure:4607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4608 if test -z "$ac_err"; then
4610 eval "ac_cv_header_$ac_safe=yes"
4613 echo "configure: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4616 eval "ac_cv_header_$ac_safe=no"
4620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4621 echo "$ac_t""yes" 1>&6
4622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4623 cat >> confdefs.h <<EOF
4624 #define $ac_tr_hdr 1
4628 echo "$ac_t""no" 1>&6
4632 for ac_hdr in dlfcn.h image.h
4634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4636 echo "configure:4637: checking for $ac_hdr" >&5
4637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4638 echo $ac_n "(cached) $ac_c" 1>&6
4640 cat > conftest.$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4646 { (eval echo configure:4647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4648 if test -z "$ac_err"; then
4650 eval "ac_cv_header_$ac_safe=yes"
4653 echo "configure: failed program was:" >&5
4654 cat conftest.$ac_ext >&5
4656 eval "ac_cv_header_$ac_safe=no"
4660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4661 echo "$ac_t""yes" 1>&6
4662 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4663 cat >> confdefs.h <<EOF
4664 #define $ac_tr_hdr 1
4668 echo "$ac_t""no" 1>&6
4672 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4676 echo "configure:4677: checking for $ac_hdr" >&5
4677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4680 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4686 { (eval echo configure:4687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4688 if test -z "$ac_err"; then
4690 eval "ac_cv_header_$ac_safe=yes"
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4696 eval "ac_cv_header_$ac_safe=no"
4700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4701 echo "$ac_t""yes" 1>&6
4702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4703 cat >> confdefs.h <<EOF
4704 #define $ac_tr_hdr 1
4708 echo "$ac_t""no" 1>&6
4712 for ac_hdr in machine/param.h sys/shm.h
4714 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4716 echo "configure:4717: checking for $ac_hdr" >&5
4717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4726 { (eval echo configure:4727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4728 if test -z "$ac_err"; then
4730 eval "ac_cv_header_$ac_safe=yes"
4733 echo "configure: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4736 eval "ac_cv_header_$ac_safe=no"
4740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4742 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4743 cat >> confdefs.h <<EOF
4744 #define $ac_tr_hdr 1
4748 echo "$ac_t""no" 1>&6
4752 for ac_hdr in linux/version.h
4754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4756 echo "configure:4757: checking for $ac_hdr" >&5
4757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4760 cat > conftest.$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4766 { (eval echo configure:4767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4768 if test -z "$ac_err"; then
4770 eval "ac_cv_header_$ac_safe=yes"
4773 echo "configure: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4776 eval "ac_cv_header_$ac_safe=no"
4780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4781 echo "$ac_t""yes" 1>&6
4782 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4783 cat >> confdefs.h <<EOF
4784 #define $ac_tr_hdr 1
4788 echo "$ac_t""no" 1>&6
4793 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4794 echo "configure:4795: checking whether time.h and sys/time.h may both be included" >&5
4795 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4801 #include <sys/types.h>
4802 #include <sys/time.h>
4808 if { (eval echo configure:4809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4810 ac_cv_header_time=yes
4812 echo "configure: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4815 ac_cv_header_time=no
4820 echo "$ac_t""$ac_cv_header_time" 1>&6
4821 if test $ac_cv_header_time = yes; then
4822 cat >> confdefs.h <<\EOF
4823 #define TIME_WITH_SYS_TIME 1
4829 cat > conftest.$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4835 egrep "nanosleep" >/dev/null 2>&1; then
4838 cat >> confdefs.h <<\EOF
4839 #define HAVE_DECL_NANOSLEEP 1
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4850 #include <sys/time.h>
4852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4853 egrep "timespec" >/dev/null 2>&1; then
4856 cat >> confdefs.h <<\EOF
4857 #define HAVE_STRUCT_TIMESPEC 1
4865 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4869 echo "configure:4870: checking for $ac_hdr" >&5
4870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4879 { (eval echo configure:4880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4881 if test -z "$ac_err"; then
4883 eval "ac_cv_header_$ac_safe=yes"
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4889 eval "ac_cv_header_$ac_safe=no"
4893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4894 echo "$ac_t""yes" 1>&6
4895 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4896 cat >> confdefs.h <<EOF
4897 #define $ac_tr_hdr 1
4901 echo "$ac_t""no" 1>&6
4906 if test x$SYS != xmingw32
4908 if test x$x_includes = xNONE; then
4909 x_includes=/usr/X11R6/include
4911 if test x$x_libraries = xNONE; then
4912 x_libraries=/usr/X11R6/lib
4914 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4915 for ac_hdr in X11/extensions/dpms.h
4917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4919 echo "configure:4920: checking for $ac_hdr" >&5
4920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4929 { (eval echo configure:4930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4931 if test -z "$ac_err"; then
4933 eval "ac_cv_header_$ac_safe=yes"
4936 echo "configure: failed program was:" >&5
4937 cat conftest.$ac_ext >&5
4939 eval "ac_cv_header_$ac_safe=no"
4943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4944 echo "$ac_t""yes" 1>&6
4945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4946 cat >> confdefs.h <<EOF
4947 #define $ac_tr_hdr 1
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4953 #include <X11/extensions/dpms.h>
4955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956 egrep "DPMSInfo" >/dev/null 2>&1; then
4959 cat >> confdefs.h <<\EOF
4960 #define DPMSINFO_IN_DPMS_H 1
4969 echo "$ac_t""no" 1>&6
4973 CPPFLAGS="$save_CPPFLAGS"
4976 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4977 echo "configure:4978: checking for ntohl in sys/param.h" >&5
4978 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4981 CFLAGS="${save_CFLAGS} -Wall -Werror"
4982 cat > conftest.$ac_ext <<EOF
4983 #line 4984 "configure"
4984 #include "confdefs.h"
4985 #include <sys/param.h>
4987 void foo() { int meuh; ntohl(meuh); }
4990 if { (eval echo configure:4991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4992 ac_cv_c_ntohl_sys_param_h=yes
4994 echo "configure: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4997 ac_cv_c_ntohl_sys_param_h=no
5002 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5003 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5004 cat >> confdefs.h <<\EOF
5005 #define NTOHL_IN_SYS_PARAM_H 1
5010 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5011 echo "configure:5012: checking if \$CC accepts -finline-limit" >&5
5012 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5015 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5024 if { (eval echo configure:5025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5026 ac_cv_c_inline_limit=yes
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5031 ac_cv_c_inline_limit=no
5036 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5037 if test x"$ac_cv_c_inline_limit" != x"no"; then
5038 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5041 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5042 echo "configure:5043: checking if \$CC accepts -Wall -Winline" >&5
5043 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5046 CFLAGS="${save_CFLAGS} -Wall -Winline"
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5055 if { (eval echo configure:5056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5057 ac_cv_c_Wall_Winline=yes
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5062 ac_cv_c_Wall_Winline=no
5067 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5068 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5069 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
5071 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5072 echo "configure:5073: checking if \$CC accepts -wall -winline" >&5
5073 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5076 CFLAGS="${save_CFLAGS} -wall -winline"
5077 cat > conftest.$ac_ext <<EOF
5078 #line 5079 "configure"
5079 #include "confdefs.h"
5085 if { (eval echo configure:5086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5087 ac_cv_c_wall_winline=yes
5089 echo "configure: failed program was:" >&5
5090 cat conftest.$ac_ext >&5
5092 ac_cv_c_wall_winline=no
5097 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5098 if test x"$ac_cv_c_wall_winline" != x"no"; then
5099 save_CFLAGS="${save_CFLAGS} -wall -winline"
5103 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5104 echo "configure:5105: checking if \$CC accepts -pipe" >&5
5105 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5106 echo $ac_n "(cached) $ac_c" 1>&6
5108 CFLAGS="${save_CFLAGS} -pipe"
5109 cat > conftest.$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5117 if { (eval echo configure:5118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5121 echo "configure: failed program was:" >&5
5122 cat conftest.$ac_ext >&5
5129 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5130 if test x"$ac_cv_c_pipe" != x"no"; then
5131 save_CFLAGS="${save_CFLAGS} -pipe"
5134 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5135 echo "configure:5136: checking if \$CC accepts -O3" >&5
5136 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 CFLAGS="${save_CFLAGS} -O3"
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5148 if { (eval echo configure:5149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5160 echo "$ac_t""$ac_cv_c_o3" 1>&6
5161 if test x"$ac_cv_c_o3" != x"no"; then
5162 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5164 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5165 echo "configure:5166: checking if \$CC accepts -O2" >&5
5166 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6
5169 CFLAGS="${save_CFLAGS} -O2"
5170 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5178 if { (eval echo configure:5179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5190 echo "$ac_t""$ac_cv_c_o2" 1>&6
5191 if test x"$ac_cv_c_o2" != x"no"; then
5192 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5194 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5195 echo "configure:5196: checking if \$CC accepts -O" >&5
5196 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 CFLAGS="${save_CFLAGS} -O"
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5208 if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5220 echo "$ac_t""$ac_cv_c_o" 1>&6
5221 if test x"$ac_cv_c_o" != x"no"; then
5222 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5227 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5228 echo "configure:5229: checking if \$CC accepts -ffast-math" >&5
5229 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 CFLAGS="${save_CFLAGS} -ffast-math"
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5241 if { (eval echo configure:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5243 ac_cv_c_fast_math=yes
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5248 ac_cv_c_fast_math=no
5253 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5254 if test x"$ac_cv_c_fast_math" != x"no"; then
5255 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5258 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5259 echo "configure:5260: checking if \$CC accepts -funroll-loops" >&5
5260 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5263 CFLAGS="${save_CFLAGS} -funroll-loops"
5264 cat > conftest.$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5272 if { (eval echo configure:5273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5274 ac_cv_c_unroll_loops=yes
5276 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5279 ac_cv_c_unroll_loops=no
5284 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5285 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5286 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5289 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5290 echo "configure:5291: checking if \$CC accepts -fomit-frame-pointer" >&5
5291 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5294 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5295 cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5303 if { (eval echo configure:5304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5305 ac_cv_c_omit_frame_pointer=yes
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5310 ac_cv_c_omit_frame_pointer=no
5315 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5316 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5317 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5320 if test x$SYS = xmingw32
5322 echo $ac_n "checking if \$CC accepts -mms-bitfields""... $ac_c" 1>&6
5323 echo "configure:5324: checking if \$CC accepts -mms-bitfields" >&5
5324 if eval "test \"`echo '$''{'ac_cv_c_mms_bitfields'+set}'`\" = set"; then
5325 echo $ac_n "(cached) $ac_c" 1>&6
5327 CFLAGS="${save_CFLAGS} -mms-bitfields"
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5336 if { (eval echo configure:5337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5338 ac_cv_c_mms_bitfields=yes
5340 echo "configure: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5343 ac_cv_c_mms_bitfields=no
5348 echo "$ac_t""$ac_cv_c_mms_bitfields" 1>&6
5349 if test x"$ac_cv_c_mms_bitfields" != x"no"; then
5350 save_CFLAGS="${save_CFLAGS} -mms-bitfields"
5351 plugins_CFLAGS="${plugins_CFLAGS} -mms-bitfields"
5353 save_CFLAGS="${save_CFLAGS} -fnative-struct"
5354 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
5358 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5359 echo "configure:5360: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5360 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5361 echo $ac_n "(cached) $ac_c" 1>&6
5363 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5364 cat > conftest.$ac_ext <<EOF
5365 #line 5366 "configure"
5366 #include "confdefs.h"
5372 if { (eval echo configure:5373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5376 echo "configure: failed program was:" >&5
5377 cat conftest.$ac_ext >&5
5384 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5385 if test x"$ac_cv_ld_darwin" != x"no"; then
5386 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5389 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5390 echo "configure:5391: checking if \$CC accepts -shared" >&5
5391 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5394 CFLAGS="${save_CFLAGS} -shared"
5395 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5403 if { (eval echo configure:5404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5405 ac_cv_ld_plugins=yes
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5415 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5416 if test x"$ac_cv_ld_plugins" != x"no"; then
5417 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5420 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5421 echo "configure:5422: checking for variadic cpp macros" >&5
5422 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5423 echo $ac_n "(cached) $ac_c" 1>&6
5425 CFLAGS="${save_CFLAGS}"
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5430 #define a(b,c...) printf(b,##c)
5432 a("foo");a("%s","bar");a("%s%s","baz","quux");
5435 if { (eval echo configure:5436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5437 ac_cv_cpp_variadic_macros=yes
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5442 ac_cv_cpp_variadic_macros=no
5447 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5448 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5449 cat >> confdefs.h <<\EOF
5450 #define HAVE_VARIADIC_MACROS 1
5455 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5456 echo "configure:5457: checking __attribute__ ((aligned ())) support" >&5
5457 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5458 echo $ac_n "(cached) $ac_c" 1>&6
5460 ac_cv_c_attribute_aligned=0
5461 CFLAGS="${save_CFLAGS} -Werror"
5462 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5463 cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure"
5465 #include "confdefs.h"
5468 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5471 if { (eval echo configure:5472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5473 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5475 echo "configure: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5482 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5483 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5484 cat >> confdefs.h <<EOF
5485 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5490 CFLAGS="${save_CFLAGS}"
5491 CPPFLAGS="${save_CPPFLAGS}"
5492 LDFLAGS="${save_LDFLAGS}"
5494 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5495 echo "configure:5496: checking for boolean_t in sys/types.h" >&5
5496 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5499 cat > conftest.$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5502 #include <sys/types.h>
5507 if { (eval echo configure:5508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5509 ac_cv_c_boolean_t_sys_types_h=yes
5511 echo "configure: failed program was:" >&5
5512 cat conftest.$ac_ext >&5
5514 ac_cv_c_boolean_t_sys_types_h=no
5519 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5520 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5521 cat >> confdefs.h <<\EOF
5522 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5527 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5528 echo "configure:5529: checking for boolean_t in pthread.h" >&5
5529 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5530 echo $ac_n "(cached) $ac_c" 1>&6
5532 cat > conftest.$ac_ext <<EOF
5533 #line 5534 "configure"
5534 #include "confdefs.h"
5535 #include <pthread.h>
5540 if { (eval echo configure:5541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5542 ac_cv_c_boolean_t_pthread_h=yes
5544 echo "configure: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5547 ac_cv_c_boolean_t_pthread_h=no
5552 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5553 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5554 cat >> confdefs.h <<\EOF
5555 #define BOOLEAN_T_IN_PTHREAD_H 1
5560 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5561 echo "configure:5562: checking for boolean_t in cthreads.h" >&5
5562 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5565 cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5568 #include <cthreads.h>
5573 if { (eval echo configure:5574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5575 ac_cv_c_boolean_t_cthreads_h=yes
5577 echo "configure: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5580 ac_cv_c_boolean_t_cthreads_h=no
5585 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5586 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5587 cat >> confdefs.h <<\EOF
5588 #define BOOLEAN_T_IN_CTHREADS_H 1
5593 case x"${target_cpu}" in
5598 ARCH="${target_cpu}"
5602 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"
5603 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone filter_crop fx_scope"
5605 NETWORK_MODULES="udp http rtp ipv4"
5607 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5608 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5609 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5610 SSE_MODULES="imdctsse downmixsse"
5611 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5613 if test x$SYS != xbeos
5615 PLUGINS="${PLUGINS} ${NETWORK_MODULES}"
5618 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5619 echo "configure:5620: checking if \$CC groks MMX inline assembly" >&5
5620 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 cat > conftest.$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5628 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5631 if { (eval echo configure:5632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5633 ac_cv_mmx_inline=yes
5635 echo "configure: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5643 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5644 if test x"$ac_cv_mmx_inline" != x"no"; then
5645 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5648 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5649 echo "configure:5650: checking if \$CC groks MMX EXT inline assembly" >&5
5650 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5658 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5661 if { (eval echo configure:5662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5663 ac_cv_mmxext_inline=yes
5665 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5668 ac_cv_mmxext_inline=no
5673 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5674 if test x"$ac_cv_mmxext_inline" != x"no"; then
5675 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5678 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5679 echo "configure:5680: checking if \$CC groks 3D Now! inline assembly" >&5
5680 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5683 cat > conftest.$ac_ext <<EOF
5684 #line 5685 "configure"
5685 #include "confdefs.h"
5688 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5691 if { (eval echo configure:5692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5693 ac_cv_3dnow_inline=yes
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5698 ac_cv_3dnow_inline=no
5703 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5704 if test x"$ac_cv_3dnow_inline" != x"no"; then
5705 cat >> confdefs.h <<\EOF
5706 #define CAN_COMPILE_3DNOW 1
5709 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5712 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5713 echo "configure:5714: checking if \$CC groks SSE inline assembly" >&5
5714 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5715 echo $ac_n "(cached) $ac_c" 1>&6
5717 cat > conftest.$ac_ext <<EOF
5718 #line 5719 "configure"
5719 #include "confdefs.h"
5722 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5725 if { (eval echo configure:5726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5727 ac_cv_sse_inline=yes
5729 echo "configure: failed program was:" >&5
5730 cat conftest.$ac_ext >&5
5737 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5738 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5739 cat >> confdefs.h <<\EOF
5740 #define CAN_COMPILE_SSE 1
5743 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5746 # don't try to grok altivec with native mingw32 it doesn't work right now
5747 # we should be able to remove this test with future versions of mingw32
5748 if test x$SYS != xmingw32; then
5749 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5750 echo "configure:5751: checking if \$CC groks Altivec inline assembly" >&5
5751 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5752 echo $ac_n "(cached) $ac_c" 1>&6
5754 cat > conftest.$ac_ext <<EOF
5755 #line 5756 "configure"
5756 #include "confdefs.h"
5759 asm volatile("vperm 0,1,2,3");
5762 if { (eval echo configure:5763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5764 ac_cv_altivec_inline=yes
5766 echo "configure: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
5770 CFLAGS="$CFLAGS -Wa,-m7400"
5771 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5776 asm volatile("vperm 0,1,2,3");
5779 if { (eval echo configure:5780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5781 ac_cv_altivec_inline="-Wa,-m7400"
5783 echo "configure: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5786 ac_cv_altivec_inline=no
5795 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5796 if test x"$ac_cv_altivec_inline" != x"no"; then
5797 cat >> confdefs.h <<\EOF
5798 #define CAN_COMPILE_ALTIVEC 1
5801 if test x"$ac_cv_altivec_inline" != x"yes"; then
5802 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5803 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5804 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5805 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5807 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5810 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5811 echo "configure:5812: checking if \$CC groks Altivec C extensions" >&5
5812 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5816 CFLAGS="$CFLAGS -faltivec"
5818 cat > conftest.$ac_ext <<EOF
5819 #line 5820 "configure"
5820 #include "confdefs.h"
5823 vec_mtvscr((vector unsigned int)(0));
5826 if { (eval echo configure:5827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5828 ac_cv_c_altivec=-faltivec
5830 echo "configure: failed program was:" >&5
5831 cat conftest.$ac_ext >&5
5835 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5841 vec_mtvscr((vector unsigned int)(0));
5844 if { (eval echo configure:5845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5846 ac_cv_c_altivec="-fvec"
5848 echo "configure: failed program was:" >&5
5849 cat conftest.$ac_ext >&5
5861 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5862 if test x"$ac_cv_c_altivec" != x"no"; then
5863 cat >> confdefs.h <<\EOF
5864 #define CAN_COMPILE_C_ALTIVEC 1
5867 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5868 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5869 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5870 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5871 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5874 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5875 echo "configure:5876: checking if linker needs -framework vecLib" >&5
5876 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5877 echo $ac_n "(cached) $ac_c" 1>&6
5879 save_LDFLAGS=$LDFLAGS
5880 LDFLAGS="$LDFLAGS -framework vecLib"
5881 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5889 if { (eval echo configure:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5891 ac_cv_ld_altivec=yes
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5899 LDFLAGS=$save_LDFLAGS
5903 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5904 if test x"$ac_cv_ld_altivec" != x"no"; then
5905 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5906 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5907 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5908 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5913 # Check whether --with- or --without- was given.
5914 if test "${with_+set}" = set; then
5919 # Check whether --with- or --without- was given.
5920 if test "${with_+set}" = set; then
5926 # Check whether --with-tuning or --without-tuning was given.
5927 if test "${with_tuning+set}" = set; then
5928 withval="$with_tuning"
5932 if test "x$with_tuning" != "x"; then
5933 TUNING="$with_tuning"
5935 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5937 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5941 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5944 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5947 # Check whether --enable-optimizations or --disable-optimizations was given.
5948 if test "${enable_optimizations+set}" = set; then
5949 enableval="$enable_optimizations"
5950 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5956 # Check whether --enable-altivec or --disable-altivec was given.
5957 if test "${enable_altivec+set}" = set; then
5958 enableval="$enable_altivec"
5959 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5960 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5962 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5963 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5968 # Check whether --enable-debug or --disable-debug was given.
5969 if test "${enable_debug+set}" = set; then
5970 enableval="$enable_debug"
5971 if test x$enable_debug = xyes; then DEBUG=1; fi
5976 # Check whether --enable-release or --disable-release was given.
5977 if test "${enable_release+set}" = set; then
5978 enableval="$enable_release"
5979 if test x$enable_release = xyes; then RELEASE=1; fi
5981 VERSION="${VERSION}_`date +%Y-%m-%d`"
5986 # Check whether --with- or --without- was given.
5987 if test "${with_+set}" = set; then
5993 # Check whether --enable-dvd or --disable-dvd was given.
5994 if test "${enable_dvd+set}" = set; then
5995 enableval="$enable_dvd"
5999 if test "x$enable_dvd" != "xno"
6001 # Check whether --with-dvdcss or --without-dvdcss was given.
6002 if test "${with_dvdcss+set}" = set; then
6003 withval="$with_dvdcss"
6007 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
6008 if test "${with_dvdcss_tree+set}" = set; then
6009 withval="$with_dvdcss_tree"
6013 case "x$with_dvdcss" in
6015 if test "x$with_dvdcss_tree" = x
6017 for ac_hdr in dvdcss/dvdcss.h
6019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6021 echo "configure:6022: checking for $ac_hdr" >&5
6022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6023 echo $ac_n "(cached) $ac_c" 1>&6
6025 cat > conftest.$ac_ext <<EOF
6026 #line 6027 "configure"
6027 #include "confdefs.h"
6030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6031 { (eval echo configure:6032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6033 if test -z "$ac_err"; then
6035 eval "ac_cv_header_$ac_safe=yes"
6038 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6041 eval "ac_cv_header_$ac_safe=no"
6045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6046 echo "$ac_t""yes" 1>&6
6047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6048 cat >> confdefs.h <<EOF
6049 #define $ac_tr_hdr 1
6051 PLUGINS="${PLUGINS} dvd"
6052 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
6054 echo "$ac_t""no" 1>&6
6055 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
6056 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
6061 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
6062 echo "configure:6063: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
6063 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
6064 if test "x$real_dvdcss_tree" = x
6066 echo "$ac_t""no" 1>&6
6067 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6069 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6071 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6072 BUILTINS="${BUILTINS} dvd"
6073 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6074 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6076 echo "$ac_t""no" 1>&6
6077 { 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; }
6082 PLUGINS="${PLUGINS} dvd"
6083 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6084 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6087 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6088 echo "configure:6089: checking for dvdcss headers in ${with_dvdcss}" >&5
6089 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6091 echo "$ac_t""yes" 1>&6
6092 PLUGINS="${PLUGINS} dvd"
6093 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6094 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6096 echo "$ac_t""no" 1>&6
6097 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6103 # Check whether --enable-dvdread or --disable-dvdread was given.
6104 if test "${enable_dvdread+set}" = set; then
6105 enableval="$enable_dvdread"
6109 if test "x$enable_dvdread" != "xno"
6111 # Check whether --with-dvdread or --without-dvdread was given.
6112 if test "${with_dvdread+set}" = set; then
6113 withval="$with_dvdread"
6117 if test "x$with_dvdread" = x
6122 test_LDFLAGS="-L${with_dvdread}/lib"
6123 test_CFLAGS="-I${with_dvdread}/include"
6125 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6126 for ac_hdr in dvdread/dvd_reader.h
6128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6130 echo "configure:6131: checking for $ac_hdr" >&5
6131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6140 { (eval echo configure:6141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6142 if test -z "$ac_err"; then
6144 eval "ac_cv_header_$ac_safe=yes"
6147 echo "configure: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6150 eval "ac_cv_header_$ac_safe=no"
6154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6155 echo "$ac_t""yes" 1>&6
6156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6157 cat >> confdefs.h <<EOF
6158 #define $ac_tr_hdr 1
6161 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure"
6163 #include "confdefs.h"
6164 #include <dvdread/dvd_reader.h>
6166 void foo() { int i=DVD_VIDEO_LB_LEN; }
6169 if { (eval echo configure:6170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6172 PLUGINS="${PLUGINS} dvdread"
6173 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6174 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6181 if test "x$enable_dvdread" != x
6183 { echo "configure: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" 1>&2; exit 1; }
6190 echo "$ac_t""no" 1>&6
6191 if test "x$enable_dvdread" != x
6193 if test "x$with_dvdread" != x
6195 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6197 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6204 CPPFLAGS="$save_CPPFLAGS"
6207 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6208 if test "${enable_dvbpsi+set}" = set; then
6209 enableval="$enable_dvbpsi"
6213 if test "x$enable_dvbpsi" != "xno"
6215 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6216 if test "${with_dvbpsi+set}" = set; then
6217 withval="$with_dvbpsi"
6221 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6222 if test "${with_dvbpsi+set}" = set; then
6223 withval="$with_dvbpsi"
6227 case "x$with_dvbpsi" in
6229 if test "x$with_dvbpsi_tree" = x
6231 for ac_hdr in dvbpsi/dr.h
6233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6235 echo "configure:6236: checking for $ac_hdr" >&5
6236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6237 echo $ac_n "(cached) $ac_c" 1>&6
6239 cat > conftest.$ac_ext <<EOF
6240 #line 6241 "configure"
6241 #include "confdefs.h"
6244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6245 { (eval echo configure:6246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6247 if test -z "$ac_err"; then
6249 eval "ac_cv_header_$ac_safe=yes"
6252 echo "configure: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6255 eval "ac_cv_header_$ac_safe=no"
6259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6260 echo "$ac_t""yes" 1>&6
6261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6262 cat >> confdefs.h <<EOF
6263 #define $ac_tr_hdr 1
6265 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6266 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
6268 echo "$ac_t""no" 1>&6
6273 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6274 echo "configure:6275: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6275 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6276 if test "x$real_dvbpsi_tree" = x
6278 echo "$ac_t""no" 1>&6
6279 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6281 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6283 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6284 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
6285 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6286 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6288 echo "$ac_t""no" 1>&6
6289 { echo "configure: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" 1>&2; exit 1; }
6296 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6297 echo "configure:6298: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6298 if test "x$with_dvbpsi" = x
6303 test_LDFLAGS="-L${with_dvbpsi}/lib"
6304 test_CFLAGS="-I${with_dvbpsi}/include"
6306 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6307 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6308 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6309 echo "configure:6310: checking for dvbpsi/dr.h" >&5
6310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6313 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6316 #include <dvbpsi/dr.h>
6318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6319 { (eval echo configure:6320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6321 if test -z "$ac_err"; then
6323 eval "ac_cv_header_$ac_safe=yes"
6326 echo "configure: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6329 eval "ac_cv_header_$ac_safe=no"
6333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6334 echo "$ac_t""yes" 1>&6
6336 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6337 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6338 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6341 echo "$ac_t""no" 1>&6
6343 if test "x$enable_dvbpsi" != x
6345 { echo "configure: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" 1>&2; exit 1; }
6350 CPPFLAGS="$save_CPPFLAGS"
6355 # Check whether --enable-vcd or --disable-vcd was given.
6356 if test "${enable_vcd+set}" = set; then
6357 enableval="$enable_vcd"
6362 if test x$enable_vcd != xno
6364 cat > conftest.$ac_ext <<EOF
6365 #line 6366 "configure"
6366 #include "confdefs.h"
6367 #include <linux/cdrom.h>
6369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370 egrep "cdrom_msf0" >/dev/null 2>&1; then
6373 PLUGINS="${PLUGINS} vcd"
6379 cat > conftest.$ac_ext <<EOF
6380 #line 6381 "configure"
6381 #include "confdefs.h"
6382 #include <sys/cdio.h>
6384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6385 egrep "ioc_toc_header " >/dev/null 2>&1; then
6388 PLUGINS="${PLUGINS} vcd"
6389 cat >> confdefs.h <<\EOF
6390 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6398 if test "x${SYS}" = "xbsdi"
6400 PLUGINS="${PLUGINS} vcd"
6403 if test "x${SYS}" = "xdarwin"
6405 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6406 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6410 # Check whether --enable-satellite or --disable-satellite was given.
6411 if test "${enable_satellite+set}" = set; then
6412 enableval="$enable_satellite"
6413 if test x$enable_satellite = xyes
6415 PLUGINS="${PLUGINS} satellite"
6420 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
6422 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6423 echo "configure:6424: checking for inet_pton" >&5
6424 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6427 cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 /* System header to define __stub macros and hopefully few prototypes,
6431 which can conflict with char inet_pton(); below. */
6433 /* Override any gcc2 internal prototype to avoid an error. */
6434 /* We use char because int might match the return type of a gcc2
6435 builtin and then its argument prototype would still apply. */
6440 /* The GNU C library defines this for functions which it implements
6441 to always fail with ENOSYS. Some functions are actually named
6442 something starting with __ and the normal name is an alias. */
6443 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6453 eval "ac_cv_func_inet_pton=yes"
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6458 eval "ac_cv_func_inet_pton=no"
6463 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6465 PLUGINS="${PLUGINS} ipv6"
6467 echo "$ac_t""no" 1>&6
6471 if test "x$SYS" = "xmingw32"
6473 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6474 echo "configure:6475: checking for getaddrinfo in ws2tcpip.h" >&5
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 #include <ws2tcpip.h>
6480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6481 egrep "addrinfo" >/dev/null 2>&1; then
6483 echo "$ac_t""yes" 1>&6
6484 PLUGINS="${PLUGINS} ipv6"
6487 echo "$ac_t""no" 1>&6
6493 # Check whether --enable-avi or --disable-avi was given.
6494 if test "${enable_avi+set}" = set; then
6495 enableval="$enable_avi"
6499 if test x$enable_avi != xno
6501 PLUGINS="${PLUGINS} avi"
6505 # Check whether --with- or --without- was given.
6506 if test "${with_+set}" = set; then
6512 # Check whether --enable-mad or --disable-mad was given.
6513 if test "${enable_mad+set}" = set; then
6514 enableval="$enable_mad"
6518 if test x$enable_mad = xyes
6520 # Check whether --with-mad or --without-mad was given.
6521 if test "${with_mad+set}" = set; then
6526 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6528 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6529 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6532 # Check whether --with-mad-tree or --without-mad-tree was given.
6533 if test "${with_mad_tree+set}" = set; then
6534 withval="$with_mad_tree"
6538 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6540 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6541 if test "x$real_mad_tree" = x
6543 echo "$ac_t""no" 1>&6
6544 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6546 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6547 echo "configure:6548: checking for mad.h in ${real_mad_tree}/libmad" >&5
6548 if test -f ${real_mad_tree}/libmad/mad.h
6550 echo "$ac_t""yes" 1>&6
6551 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6552 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6553 save_LDFLAGS=$LDFLAGS
6554 LDFLAGS=$mad_LDFLAGS
6555 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6556 echo "configure:6557: checking for mad_bit_init in -lmad" >&5
6557 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6559 echo $ac_n "(cached) $ac_c" 1>&6
6561 ac_save_LIBS="$LIBS"
6563 cat > conftest.$ac_ext <<EOF
6564 #line 6565 "configure"
6565 #include "confdefs.h"
6566 /* Override any gcc2 internal prototype to avoid an error. */
6567 /* We use char because int might match the return type of a gcc2
6568 builtin and then its argument prototype would still apply. */
6569 char mad_bit_init();
6575 if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6577 eval "ac_cv_lib_$ac_lib_var=yes"
6579 echo "configure: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6582 eval "ac_cv_lib_$ac_lib_var=no"
6585 LIBS="$ac_save_LIBS"
6588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6589 echo "$ac_t""yes" 1>&6
6591 BUILTINS="${BUILTINS} mad"
6592 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6595 echo "$ac_t""no" 1>&6
6596 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6600 LDFLAGS=$save_LDFLAGS
6602 echo "$ac_t""no" 1>&6
6603 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6607 save_LDFLAGS=$LDFLAGS
6608 CFLAGS="$CFLAGS $mad_CFLAGS"
6609 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6614 echo "configure:6615: checking for $ac_hdr" >&5
6615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6618 cat > conftest.$ac_ext <<EOF
6619 #line 6620 "configure"
6620 #include "confdefs.h"
6623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6624 { (eval echo configure:6625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6626 if test -z "$ac_err"; then
6628 eval "ac_cv_header_$ac_safe=yes"
6631 echo "configure: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6634 eval "ac_cv_header_$ac_safe=no"
6638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6639 echo "$ac_t""yes" 1>&6
6640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6641 cat >> confdefs.h <<EOF
6642 #define $ac_tr_hdr 1
6646 echo "$ac_t""no" 1>&6
6647 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6651 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6652 echo "configure:6653: checking for mad_bit_init in -lmad" >&5
6653 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6654 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6655 echo $ac_n "(cached) $ac_c" 1>&6
6657 ac_save_LIBS="$LIBS"
6659 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure"
6661 #include "confdefs.h"
6662 /* Override any gcc2 internal prototype to avoid an error. */
6663 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */
6665 char mad_bit_init();
6671 if { (eval echo configure:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6673 eval "ac_cv_lib_$ac_lib_var=yes"
6675 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5
6678 eval "ac_cv_lib_$ac_lib_var=no"
6681 LIBS="$ac_save_LIBS"
6684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6685 echo "$ac_t""yes" 1>&6
6687 PLUGINS="${PLUGINS} mad"
6688 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6690 echo "$ac_t""no" 1>&6
6691 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6695 LDFLAGS=$save_LDFLAGS
6699 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6700 if test "${enable_ffmpeg+set}" = set; then
6701 enableval="$enable_ffmpeg"
6705 if test "x$enable_ffmpeg" = "xyes"
6707 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6708 if test "${with_ffmpeg+set}" = set; then
6709 withval="$with_ffmpeg"
6713 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6715 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6716 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6719 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6720 if test "${with_ffmpeg_tree+set}" = set; then
6721 withval="$with_ffmpeg_tree"
6725 if test "x$with_ffmpeg_tree" != "x"
6727 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6728 echo "configure:6729: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6729 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6730 if test "x$real_ffmpeg_tree" = x
6732 echo "$ac_t""no" 1>&6
6733 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6735 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6737 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6738 BUILTINS="${BUILTINS} ffmpeg"
6739 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6740 if test x$SYS != xbeos
6742 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
6744 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6746 echo "$ac_t""no" 1>&6
6747 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6751 save_LDFLAGS=$LDFLAGS
6752 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6753 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS"
6754 if test x$SYS != xbeos
6756 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
6758 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6759 echo "configure:6760: checking for avcodec_init in -lavcodec" >&5
6760 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6764 ac_save_LIBS="$LIBS"
6765 LIBS="-lavcodec $LIBS"
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 /* Override any gcc2 internal prototype to avoid an error. */
6770 /* We use char because int might match the return type of a gcc2
6771 builtin and then its argument prototype would still apply. */
6772 char avcodec_init();
6778 if { (eval echo configure:6779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6780 eval "ac_cv_lib_$ac_lib_var=yes"
6782 echo "configure: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6785 eval "ac_cv_lib_$ac_lib_var=no"
6788 LIBS="$ac_save_LIBS"
6791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6792 echo "$ac_t""yes" 1>&6
6794 BUILTINS="${BUILTINS} ffmpeg"
6795 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
6796 if test x$SYS != xbeos
6798 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
6801 echo "$ac_t""no" 1>&6
6802 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6806 LDFLAGS=$save_LDFLAGS
6811 if test x$SYS = xbeos
6813 PLUGINS="${PLUGINS} beos"
6816 # Check whether --enable-a52 or --disable-a52 was given.
6817 if test "${enable_a52+set}" = set; then
6818 enableval="$enable_a52"
6822 if test "x$enable_a52" != "xno"
6824 # Check whether --with-a52-tree or --without-a52-tree was given.
6825 if test "${with_a52_tree+set}" = set; then
6826 withval="$with_a52_tree"
6830 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6832 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6833 if test "x$real_a52_tree" = x
6835 echo "$ac_t""no" 1>&6
6836 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6838 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6839 echo "configure:6840: checking for a52.h in ${real_a52_tree}/include" >&5
6840 if test -f ${real_a52_tree}/include/a52.h
6842 echo "$ac_t""yes" 1>&6
6843 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6844 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6845 save_LDFLAGS=$LDFLAGS
6846 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6847 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6848 echo "configure:6849: checking for a52_free in -la52" >&5
6849 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6851 echo $ac_n "(cached) $ac_c" 1>&6
6853 ac_save_LIBS="$LIBS"
6854 LIBS="-la52 -lm $LIBS"
6855 cat > conftest.$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6858 /* Override any gcc2 internal prototype to avoid an error. */
6859 /* We use char because int might match the return type of a gcc2
6860 builtin and then its argument prototype would still apply. */
6867 if { (eval echo configure:6868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6869 eval "ac_cv_lib_$ac_lib_var=yes"
6871 echo "configure: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6874 eval "ac_cv_lib_$ac_lib_var=no"
6877 LIBS="$ac_save_LIBS"
6880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6881 echo "$ac_t""yes" 1>&6
6883 BUILTINS="${BUILTINS} a52"
6884 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6885 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6888 echo "$ac_t""no" 1>&6
6890 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6892 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6894 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6899 LDFLAGS=$save_LDFLAGS
6901 echo "$ac_t""no" 1>&6
6902 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6904 else for ac_hdr in a52dec/a52.h
6906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6908 echo "configure:6909: checking for $ac_hdr" >&5
6909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6910 echo $ac_n "(cached) $ac_c" 1>&6
6912 cat > conftest.$ac_ext <<EOF
6913 #line 6914 "configure"
6914 #include "confdefs.h"
6917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6918 { (eval echo configure:6919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6920 if test -z "$ac_err"; then
6922 eval "ac_cv_header_$ac_safe=yes"
6925 echo "configure: failed program was:" >&5
6926 cat conftest.$ac_ext >&5
6928 eval "ac_cv_header_$ac_safe=no"
6932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6933 echo "$ac_t""yes" 1>&6
6934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6935 cat >> confdefs.h <<EOF
6936 #define $ac_tr_hdr 1
6939 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6940 echo "configure:6941: checking for a52_free in -la52" >&5
6941 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6943 echo $ac_n "(cached) $ac_c" 1>&6
6945 ac_save_LIBS="$LIBS"
6946 LIBS="-la52 -lm $LIBS"
6947 cat > conftest.$ac_ext <<EOF
6948 #line 6949 "configure"
6949 #include "confdefs.h"
6950 /* Override any gcc2 internal prototype to avoid an error. */
6951 /* We use char because int might match the return type of a gcc2
6952 builtin and then its argument prototype would still apply. */
6959 if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6961 eval "ac_cv_lib_$ac_lib_var=yes"
6963 echo "configure: failed program was:" >&5
6964 cat conftest.$ac_ext >&5
6966 eval "ac_cv_lib_$ac_lib_var=no"
6969 LIBS="$ac_save_LIBS"
6972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6973 echo "$ac_t""yes" 1>&6
6975 BUILTINS="${BUILTINS} a52"
6976 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6977 a52_CFLAGS="${a52_CFLAGS}"
6980 echo "$ac_t""no" 1>&6
6985 echo "$ac_t""no" 1>&6
6992 # Check whether --enable-vorbis or --disable-vorbis was given.
6993 if test "${enable_vorbis+set}" = set; then
6994 enableval="$enable_vorbis"
6998 if test "x$enable_vorbis" != "xno"
7000 for ac_hdr in ogg/ogg.h
7002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7004 echo "configure:7005: checking for $ac_hdr" >&5
7005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7006 echo $ac_n "(cached) $ac_c" 1>&6
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7014 { (eval echo configure:7015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7016 if test -z "$ac_err"; then
7018 eval "ac_cv_header_$ac_safe=yes"
7021 echo "configure: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7024 eval "ac_cv_header_$ac_safe=no"
7028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7029 echo "$ac_t""yes" 1>&6
7030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7031 cat >> confdefs.h <<EOF
7032 #define $ac_tr_hdr 1
7035 #PLUGINS="${PLUGINS} vorbis"
7036 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7039 echo "$ac_t""no" 1>&6
7046 # Check whether --with- or --without- was given.
7047 if test "${with_+set}" = set; then
7053 # Check whether --enable-x11 or --disable-x11 was given.
7054 if test "${enable_x11+set}" = set; then
7055 enableval="$enable_x11"
7059 if test x$enable_x11 != xno &&
7060 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
7061 if test x$x_includes = xNONE; then
7062 x_includes=/usr/X11R6/include
7064 if test x$x_libraries = xNONE; then
7065 x_libraries=/usr/X11R6/lib
7067 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
7068 for ac_hdr in X11/Xlib.h
7070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7072 echo "configure:7073: checking for $ac_hdr" >&5
7073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7082 { (eval echo configure:7083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7084 if test -z "$ac_err"; then
7086 eval "ac_cv_header_$ac_safe=yes"
7089 echo "configure: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7092 eval "ac_cv_header_$ac_safe=no"
7096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7097 echo "$ac_t""yes" 1>&6
7098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7099 cat >> confdefs.h <<EOF
7100 #define $ac_tr_hdr 1
7103 PLUGINS="${PLUGINS} x11"
7104 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
7105 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
7108 echo "$ac_t""no" 1>&6
7112 CPPFLAGS="$save_CPPFLAGS"
7115 # Check whether --enable-xvideo or --disable-xvideo was given.
7116 if test "${enable_xvideo+set}" = set; then
7117 enableval="$enable_xvideo"
7121 if test x$enable_xvideo != xno &&
7122 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
7123 if test x$x_includes = xNONE; then
7124 x_includes=/usr/X11R6/include
7126 if test x$x_libraries = xNONE; then
7127 x_libraries=/usr/X11R6/lib
7129 save_CPPFLAGS=$CPPFLAGS
7130 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
7131 for ac_hdr in X11/extensions/Xv.h
7133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7135 echo "configure:7136: checking for $ac_hdr" >&5
7136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7145 { (eval echo configure:7146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7147 if test -z "$ac_err"; then
7149 eval "ac_cv_header_$ac_safe=yes"
7152 echo "configure: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7155 eval "ac_cv_header_$ac_safe=no"
7159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7160 echo "$ac_t""yes" 1>&6
7161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7162 cat >> confdefs.h <<EOF
7163 #define $ac_tr_hdr 1
7167 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
7168 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7169 echo "configure:7170: checking for XvSetPortAttribute in -lXv_pic" >&5
7170 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7172 echo $ac_n "(cached) $ac_c" 1>&6
7174 ac_save_LIBS="$LIBS"
7175 LIBS="-lXv_pic $LIBS"
7176 cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179 /* Override any gcc2 internal prototype to avoid an error. */
7180 /* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */
7182 char XvSetPortAttribute();
7185 XvSetPortAttribute()
7188 if { (eval echo configure:7189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7190 eval "ac_cv_lib_$ac_lib_var=yes"
7192 echo "configure: failed program was:" >&5
7193 cat conftest.$ac_ext >&5
7195 eval "ac_cv_lib_$ac_lib_var=no"
7198 LIBS="$ac_save_LIBS"
7201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7202 echo "$ac_t""yes" 1>&6
7203 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7204 PLUGINS="${PLUGINS} xvideo"
7205 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
7206 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7208 echo "$ac_t""no" 1>&6
7209 # We don't have Xv_pic, let's make xvideo.a as builtin
7210 BUILTINS="${BUILTINS} xvideo"
7211 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
7212 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7215 CFLAGS="$save_CFLAGS"
7217 CPPFLAGS="$save_CPPFLAGS"
7219 echo "$ac_t""no" 1>&6
7225 # Check whether --enable-sdl or --disable-sdl was given.
7226 if test "${enable_sdl+set}" = set; then
7227 enableval="$enable_sdl"
7231 if test "x$enable_sdl" != "xno"
7234 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7235 if test "${with_sdl_config_path+set}" = set; then
7236 withval="$with_sdl_config_path"
7237 if test "x$with_sdl_config_path" != "xno"
7239 SDL_PATH="$with_sdl_config_path:$PATH"
7243 # Extract the first word of "sdl12-config", so it can be a program name with args.
7244 set dummy sdl12-config; ac_word=$2
7245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7246 echo "configure:7247: checking for $ac_word" >&5
7247 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7250 case "$SDL12_CONFIG" in
7252 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7255 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7259 ac_dummy="$SDL_PATH"
7260 for ac_dir in $ac_dummy; do
7261 test -z "$ac_dir" && ac_dir=.
7262 if test -f $ac_dir/$ac_word; then
7263 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7268 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7272 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7273 if test -n "$SDL12_CONFIG"; then
7274 echo "$ac_t""$SDL12_CONFIG" 1>&6
7276 echo "$ac_t""no" 1>&6
7279 SDL_CONFIG=${SDL12_CONFIG}
7280 SDL_HEADER="SDL12/SDL.h"
7281 if test x${SDL_CONFIG} = xno
7283 # Extract the first word of "sdl11-config", so it can be a program name with args.
7284 set dummy sdl11-config; ac_word=$2
7285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7286 echo "configure:7287: checking for $ac_word" >&5
7287 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7290 case "$SDL11_CONFIG" in
7292 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7295 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7299 ac_dummy="$SDL_PATH"
7300 for ac_dir in $ac_dummy; do
7301 test -z "$ac_dir" && ac_dir=.
7302 if test -f $ac_dir/$ac_word; then
7303 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7308 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7312 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7313 if test -n "$SDL11_CONFIG"; then
7314 echo "$ac_t""$SDL11_CONFIG" 1>&6
7316 echo "$ac_t""no" 1>&6
7319 SDL_CONFIG=${SDL11_CONFIG}
7320 SDL_HEADER="SDL11/SDL.h"
7322 if test x${SDL_CONFIG} = xno
7324 # Extract the first word of "sdl-config", so it can be a program name with args.
7325 set dummy sdl-config; ac_word=$2
7326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7327 echo "configure:7328: checking for $ac_word" >&5
7328 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7329 echo $ac_n "(cached) $ac_c" 1>&6
7331 case "$SDL_CONFIG" in
7333 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7336 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7340 ac_dummy="$SDL_PATH"
7341 for ac_dir in $ac_dummy; do
7342 test -z "$ac_dir" && ac_dir=.
7343 if test -f $ac_dir/$ac_word; then
7344 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7349 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7353 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7354 if test -n "$SDL_CONFIG"; then
7355 echo "$ac_t""$SDL_CONFIG" 1>&6
7357 echo "$ac_t""no" 1>&6
7360 SDL_HEADER="SDL/SDL.h"
7362 if test x${SDL_CONFIG} != xno
7364 PLUGINS="${PLUGINS} sdl"
7365 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7366 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7367 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7368 for ac_hdr in ${SDL_HEADER}
7370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7372 echo "configure:7373: checking for $ac_hdr" >&5
7373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7374 echo $ac_n "(cached) $ac_c" 1>&6
7376 cat > conftest.$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7382 { (eval echo configure:7383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7384 if test -z "$ac_err"; then
7386 eval "ac_cv_header_$ac_safe=yes"
7389 echo "configure: failed program was:" >&5
7390 cat conftest.$ac_ext >&5
7392 eval "ac_cv_header_$ac_safe=no"
7396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7397 echo "$ac_t""yes" 1>&6
7398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7399 cat >> confdefs.h <<EOF
7400 #define $ac_tr_hdr 1
7402 cat >> confdefs.h <<EOF
7403 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7407 echo "$ac_t""no" 1>&6
7408 { echo "configure: error: The development package for SDL is not installed.
7409 Please install it and try again. Alternatively you can also configure with
7410 --disable-sdl." 1>&2; exit 1; }
7415 CPPFLAGS="$save_CPPFLAGS"
7416 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7418 { echo "configure: error: The development package for SDL is not installed.
7419 Please install it and try again. Alternatively you can also configure with
7420 --disable-sdl." 1>&2; exit 1; }
7422 elif test "x$enable_sdl" = "xyes"
7424 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7425 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7430 # Check whether --enable-qte or --disable-qte was given.
7431 if test "${enable_qte+set}" = set; then
7432 enableval="$enable_qte"
7436 if test "x${enable_qte}" != "xno"
7438 # Check whether --with-qte or --without-qte was given.
7439 if test "${with_qte+set}" = set; then
7444 if test "x${with_qte}" = "x"
7446 test_LDFLAGS="-L${QTDIR}/lib"
7447 test_CFLAGS="-I${QTDIR}/include"
7449 test_LDFLAGS="-L${with_qte}/lib"
7450 test_CFLAGS="-I${with_qte}/include"
7453 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
7456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7458 echo "configure:7459: checking for $ac_hdr" >&5
7459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7460 echo $ac_n "(cached) $ac_c" 1>&6
7462 cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7468 { (eval echo configure:7469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7470 if test -z "$ac_err"; then
7472 eval "ac_cv_header_$ac_safe=yes"
7475 echo "configure: failed program was:" >&5
7476 cat conftest.$ac_ext >&5
7478 eval "ac_cv_header_$ac_safe=no"
7482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7483 echo "$ac_t""yes" 1>&6
7484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7485 cat >> confdefs.h <<EOF
7486 #define $ac_tr_hdr 1
7489 qte_CFLAGS="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
7490 qte_LDFLAGS="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
7491 if test "x${with_qte}" = "x"
7493 PLUGINS="${PLUGINS} qte"
7495 BUILTINS="${BUILTINS} qte"
7499 echo "$ac_t""no" 1>&6
7503 CPPFLAGS="${save_CPPFLAGS}"
7506 # Check whether --enable-directx or --disable-directx was given.
7507 if test "${enable_directx+set}" = set; then
7508 enableval="$enable_directx"
7512 if test "x$enable_directx" != "xno"
7514 if test x$SYS = xmingw32
7516 # Check whether --with-directx or --without-directx was given.
7517 if test "${with_directx+set}" = set; then
7518 withval="$with_directx"
7522 if test "x$with_directx" = "x"
7524 for ac_hdr in ddraw.h
7526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7528 echo "configure:7529: checking for $ac_hdr" >&5
7529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7530 echo $ac_n "(cached) $ac_c" 1>&6
7532 cat > conftest.$ac_ext <<EOF
7533 #line 7534 "configure"
7534 #include "confdefs.h"
7537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7538 { (eval echo configure:7539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7540 if test -z "$ac_err"; then
7542 eval "ac_cv_header_$ac_safe=yes"
7545 echo "configure: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7548 eval "ac_cv_header_$ac_safe=no"
7552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7553 echo "$ac_t""yes" 1>&6
7554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7555 cat >> confdefs.h <<EOF
7556 #define $ac_tr_hdr 1
7558 PLUGINS="${PLUGINS} directx"
7559 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7561 echo "$ac_t""no" 1>&6
7566 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7567 echo "configure:7568: checking for directX headers in ${with_directx}" >&5
7568 if test -f ${with_directx}/ddraw.h
7570 PLUGINS="${PLUGINS} directx"
7571 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7572 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7573 echo "$ac_t""yes" 1>&6
7575 echo "$ac_t""no" 1>&6
7576 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7582 # Check whether --enable-fb or --disable-fb was given.
7583 if test "${enable_fb+set}" = set; then
7584 enableval="$enable_fb"
7588 if test x$enable_fb != xno
7590 for ac_hdr in linux/fb.h
7592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7594 echo "configure:7595: checking for $ac_hdr" >&5
7595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7596 echo $ac_n "(cached) $ac_c" 1>&6
7598 cat > conftest.$ac_ext <<EOF
7599 #line 7600 "configure"
7600 #include "confdefs.h"
7603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7604 { (eval echo configure:7605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7606 if test -z "$ac_err"; then
7608 eval "ac_cv_header_$ac_safe=yes"
7611 echo "configure: failed program was:" >&5
7612 cat conftest.$ac_ext >&5
7614 eval "ac_cv_header_$ac_safe=no"
7618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7619 echo "$ac_t""yes" 1>&6
7620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7621 cat >> confdefs.h <<EOF
7622 #define $ac_tr_hdr 1
7625 PLUGINS="${PLUGINS} fb"
7628 echo "$ac_t""no" 1>&6
7634 # Check whether --enable-mga or --disable-mga was given.
7635 if test "${enable_mga+set}" = set; then
7636 enableval="$enable_mga"
7637 if test x$enable_mga = xyes
7639 PLUGINS="${PLUGINS} mga xmga"
7644 # Check whether --enable-ggi or --disable-ggi was given.
7645 if test "${enable_ggi+set}" = set; then
7646 enableval="$enable_ggi"
7650 if test x$enable_ggi = xyes
7652 PLUGINS="${PLUGINS} ggi"
7653 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7654 # Check whether --with-ggi or --without-ggi was given.
7655 if test "${with_ggi+set}" = set; then
7657 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7659 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7660 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7666 # Check whether --enable-glide or --disable-glide was given.
7667 if test "${enable_glide+set}" = set; then
7668 enableval="$enable_glide"
7672 if test x$enable_glide = xyes
7674 PLUGINS="${PLUGINS} glide"
7675 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7676 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7677 # Check whether --with-glide or --without-glide was given.
7678 if test "${with_glide+set}" = set; then
7679 withval="$with_glide"
7680 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7682 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7683 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7689 # Check whether --enable-aa or --disable-aa was given.
7690 if test "${enable_aa+set}" = set; then
7691 enableval="$enable_aa"
7695 if test x$enable_aa = xyes
7697 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7698 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7699 echo "configure:7700: checking for aalib.h" >&5
7700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7703 cat > conftest.$ac_ext <<EOF
7704 #line 7705 "configure"
7705 #include "confdefs.h"
7708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7709 { (eval echo configure:7710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7711 if test -z "$ac_err"; then
7713 eval "ac_cv_header_$ac_safe=yes"
7716 echo "configure: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7719 eval "ac_cv_header_$ac_safe=no"
7723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7724 echo "$ac_t""yes" 1>&6
7727 echo "$ac_t""no" 1>&6
7731 if test x$have_aa = xtrue
7733 PLUGINS="${PLUGINS} aa"
7734 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7739 # Check whether --with- or --without- was given.
7740 if test "${with_+set}" = set; then
7746 # Check whether --enable-dsp or --disable-dsp was given.
7747 if test "${enable_dsp+set}" = set; then
7748 enableval="$enable_dsp"
7753 if test x$enable_dsp != xno &&
7754 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7756 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7760 echo "configure:7761: checking for $ac_hdr" >&5
7761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7762 echo $ac_n "(cached) $ac_c" 1>&6
7764 cat > conftest.$ac_ext <<EOF
7765 #line 7766 "configure"
7766 #include "confdefs.h"
7769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7770 { (eval echo configure:7771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7772 if test -z "$ac_err"; then
7774 eval "ac_cv_header_$ac_safe=yes"
7777 echo "configure: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7780 eval "ac_cv_header_$ac_safe=no"
7784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7785 echo "$ac_t""yes" 1>&6
7786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7787 cat >> confdefs.h <<EOF
7788 #define $ac_tr_hdr 1
7791 PLUGINS="${PLUGINS} dsp"
7792 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7793 echo "configure:7794: checking for main in -lossaudio" >&5
7794 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7798 ac_save_LIBS="$LIBS"
7799 LIBS="-lossaudio $LIBS"
7800 cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7808 if { (eval echo configure:7809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7810 eval "ac_cv_lib_$ac_lib_var=yes"
7812 echo "configure: failed program was:" >&5
7813 cat conftest.$ac_ext >&5
7815 eval "ac_cv_lib_$ac_lib_var=no"
7818 LIBS="$ac_save_LIBS"
7821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7822 echo "$ac_t""yes" 1>&6
7823 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7825 echo "$ac_t""no" 1>&6
7830 echo "$ac_t""no" 1>&6
7836 # Check whether --enable-esd or --disable-esd was given.
7837 if test "${enable_esd+set}" = set; then
7838 enableval="$enable_esd"
7839 if test x$enable_esd = xyes
7841 # Extract the first word of "esd-config", so it can be a program name with args.
7842 set dummy esd-config; ac_word=$2
7843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7844 echo "configure:7845: checking for $ac_word" >&5
7845 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7848 case "$ESD_CONFIG" in
7850 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7853 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7858 for ac_dir in $ac_dummy; do
7859 test -z "$ac_dir" && ac_dir=.
7860 if test -f $ac_dir/$ac_word; then
7861 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7866 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7870 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7871 if test -n "$ESD_CONFIG"; then
7872 echo "$ac_t""$ESD_CONFIG" 1>&6
7874 echo "$ac_t""no" 1>&6
7877 if test x${ESD_CONFIG} != xno
7879 PLUGINS="${PLUGINS} esd"
7880 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7881 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7887 # Check whether --enable-arts or --disable-arts was given.
7888 if test "${enable_arts+set}" = set; then
7889 enableval="$enable_arts"
7890 if test x$enable_arts = xyes
7892 # Extract the first word of "artsc-config", so it can be a program name with args.
7893 set dummy artsc-config; ac_word=$2
7894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7895 echo "configure:7896: checking for $ac_word" >&5
7896 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7899 case "$ARTS_CONFIG" in
7901 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7904 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7909 for ac_dir in $ac_dummy; do
7910 test -z "$ac_dir" && ac_dir=.
7911 if test -f $ac_dir/$ac_word; then
7912 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7917 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7921 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7922 if test -n "$ARTS_CONFIG"; then
7923 echo "$ac_t""$ARTS_CONFIG" 1>&6
7925 echo "$ac_t""no" 1>&6
7928 if test x${ARTS_CONFIG} != xno
7930 PLUGINS="${PLUGINS} arts"
7931 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7932 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7938 # Check whether --enable-alsa or --disable-alsa was given.
7939 if test "${enable_alsa+set}" = set; then
7940 enableval="$enable_alsa"
7941 if test x$enable_alsa = xyes
7943 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7944 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7945 echo "configure:7946: checking for alsa/asoundlib.h" >&5
7946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
7949 cat > conftest.$ac_ext <<EOF
7950 #line 7951 "configure"
7951 #include "confdefs.h"
7952 #include <alsa/asoundlib.h>
7954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7955 { (eval echo configure:7956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7957 if test -z "$ac_err"; then
7959 eval "ac_cv_header_$ac_safe=yes"
7962 echo "configure: failed program was:" >&5
7963 cat conftest.$ac_ext >&5
7965 eval "ac_cv_header_$ac_safe=no"
7969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7970 echo "$ac_t""yes" 1>&6
7971 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7972 echo "configure:7973: checking for main in -lasound" >&5
7973 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6
7977 ac_save_LIBS="$LIBS"
7978 LIBS="-lasound $LIBS"
7979 cat > conftest.$ac_ext <<EOF
7980 #line 7981 "configure"
7981 #include "confdefs.h"
7987 if { (eval echo configure:7988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7989 eval "ac_cv_lib_$ac_lib_var=yes"
7991 echo "configure: failed program was:" >&5
7992 cat conftest.$ac_ext >&5
7994 eval "ac_cv_lib_$ac_lib_var=no"
7997 LIBS="$ac_save_LIBS"
8000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8001 echo "$ac_t""yes" 1>&6
8004 echo "$ac_t""no" 1>&6
8009 echo "$ac_t""no" 1>&6
8013 if test x$have_alsa = xtrue
8015 PLUGINS="${PLUGINS} alsa"
8016 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8022 # Check whether --enable-waveout or --disable-waveout was given.
8023 if test "${enable_waveout+set}" = set; then
8024 enableval="$enable_waveout"
8028 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
8030 PLUGINS="${PLUGINS} waveout"
8031 waveout_LDFLAGS="-lwinmm"
8035 # Check whether --with- or --without- was given.
8036 if test "${with_+set}" = set; then
8042 # Check whether --enable-gtk or --disable-gtk was given.
8043 if test "${enable_gtk+set}" = set; then
8044 enableval="$enable_gtk"
8048 if test x$enable_gtk != xno
8051 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8052 if test "${with_gtk_config_path+set}" = set; then
8053 withval="$with_gtk_config_path"
8054 if test "x$with_gtk_config_path" != "xno"
8056 GTK_PATH="$with_gtk_config_path:$PATH"
8060 # look for gtk-config
8061 # Extract the first word of "gtk12-config", so it can be a program name with args.
8062 set dummy gtk12-config; ac_word=$2
8063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8064 echo "configure:8065: checking for $ac_word" >&5
8065 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8066 echo $ac_n "(cached) $ac_c" 1>&6
8068 case "$GTK12_CONFIG" in
8070 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8073 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8077 ac_dummy="$GTK_PATH"
8078 for ac_dir in $ac_dummy; do
8079 test -z "$ac_dir" && ac_dir=.
8080 if test -f $ac_dir/$ac_word; then
8081 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8086 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8090 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8091 if test -n "$GTK12_CONFIG"; then
8092 echo "$ac_t""$GTK12_CONFIG" 1>&6
8094 echo "$ac_t""no" 1>&6
8097 GTK_CONFIG=${GTK12_CONFIG}
8098 if test x${GTK_CONFIG} = xno
8100 # Extract the first word of "gtk-config", so it can be a program name with args.
8101 set dummy gtk-config; ac_word=$2
8102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8103 echo "configure:8104: checking for $ac_word" >&5
8104 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8107 case "$GTK_CONFIG" in
8109 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8112 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8116 ac_dummy="$GTK_PATH"
8117 for ac_dir in $ac_dummy; do
8118 test -z "$ac_dir" && ac_dir=.
8119 if test -f $ac_dir/$ac_word; then
8120 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8125 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8129 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8130 if test -n "$GTK_CONFIG"; then
8131 echo "$ac_t""$GTK_CONFIG" 1>&6
8133 echo "$ac_t""no" 1>&6
8137 if test x${GTK_CONFIG} != xno
8139 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
8141 { 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; }
8143 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8144 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8145 # now look for the gtk.h header
8146 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
8147 ac_cv_gtk_headers=yes
8148 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8150 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8151 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8152 echo "configure:8153: checking for $ac_hdr" >&5
8153 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8154 echo $ac_n "(cached) $ac_c" 1>&6
8156 cat > conftest.$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8162 { (eval echo configure:8163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8164 if test -z "$ac_err"; then
8166 eval "ac_cv_header_$ac_safe=yes"
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8172 eval "ac_cv_header_$ac_safe=no"
8176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8177 echo "$ac_t""yes" 1>&6
8178 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8179 cat >> confdefs.h <<EOF
8180 #define $ac_tr_hdr 1
8184 echo "$ac_t""no" 1>&6
8185 ac_cv_gtk_headers=no
8186 echo "Cannot find gtk development headers."
8191 if test "x$ac_cv_gtk_headers" = xyes
8193 PLUGINS="${PLUGINS} gtk"
8194 ALIASES="${ALIASES} gvlc"
8196 CPPFLAGS="$save_CPPFLAGS"
8200 # Check whether --enable-familiar or --disable-familiar was given.
8201 if test "${enable_familiar+set}" = set; then
8202 enableval="$enable_familiar"
8206 if test "x${enable_familiar}" = "xyes"
8209 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8210 if test "${with_gtk_config_path+set}" = set; then
8211 withval="$with_gtk_config_path"
8212 if test "x${with_gtk_config_path}" != "xno"
8214 GTK_PATH="${with_gtk_config_path}:${PATH}"
8218 # look for gtk-config
8219 # Extract the first word of "gtk12-config", so it can be a program name with args.
8220 set dummy gtk12-config; ac_word=$2
8221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8222 echo "configure:8223: checking for $ac_word" >&5
8223 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8224 echo $ac_n "(cached) $ac_c" 1>&6
8226 case "$GTK12_CONFIG" in
8228 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8231 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8235 ac_dummy="${GTK_PATH}"
8236 for ac_dir in $ac_dummy; do
8237 test -z "$ac_dir" && ac_dir=.
8238 if test -f $ac_dir/$ac_word; then
8239 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8244 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8248 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8249 if test -n "$GTK12_CONFIG"; then
8250 echo "$ac_t""$GTK12_CONFIG" 1>&6
8252 echo "$ac_t""no" 1>&6
8255 GTK_CONFIG=${GTK12_CONFIG}
8256 if test "x${GTK_CONFIG}" = "xno"
8258 # Extract the first word of "gtk-config", so it can be a program name with args.
8259 set dummy gtk-config; ac_word=$2
8260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8261 echo "configure:8262: checking for $ac_word" >&5
8262 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8263 echo $ac_n "(cached) $ac_c" 1>&6
8265 case "$GTK_CONFIG" in
8267 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8270 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8274 ac_dummy="${GTK_PATH}"
8275 for ac_dir in $ac_dummy; do
8276 test -z "$ac_dir" && ac_dir=.
8277 if test -f $ac_dir/$ac_word; then
8278 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8283 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8287 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8288 if test -n "$GTK_CONFIG"; then
8289 echo "$ac_t""$GTK_CONFIG" 1>&6
8291 echo "$ac_t""no" 1>&6
8295 if test "x${GTK_CONFIG}" != "xno"
8297 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8299 { 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-familiar." 1>&2; exit 1; }
8301 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk gthread`"
8302 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk gthread | sed 's,-rdynamic,,'`"
8303 # now look for the gtk.h header
8304 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8305 ac_cv_gtk_headers=yes
8306 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8308 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8310 echo "configure:8311: checking for $ac_hdr" >&5
8311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8312 echo $ac_n "(cached) $ac_c" 1>&6
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8320 { (eval echo configure:8321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8322 if test -z "$ac_err"; then
8324 eval "ac_cv_header_$ac_safe=yes"
8327 echo "configure: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8330 eval "ac_cv_header_$ac_safe=no"
8334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8335 echo "$ac_t""yes" 1>&6
8336 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8337 cat >> confdefs.h <<EOF
8338 #define $ac_tr_hdr 1
8342 echo "$ac_t""no" 1>&6
8343 ac_cv_gtk_headers=no
8344 echo "Cannot find gtk development headers."
8349 if test "x${ac_cv_gtk_headers}" = "xyes"
8351 PLUGINS="${PLUGINS} familiar"
8354 CPPFLAGS="${save_CPPFLAGS}"
8358 # Check whether --enable-gnome or --disable-gnome was given.
8359 if test "${enable_gnome+set}" = set; then
8360 enableval="$enable_gnome"
8361 if test x$enable_gnome = xyes; then
8362 # look for gnome-config
8363 # Extract the first word of "gnome-config", so it can be a program name with args.
8364 set dummy gnome-config; ac_word=$2
8365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8366 echo "configure:8367: checking for $ac_word" >&5
8367 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8368 echo $ac_n "(cached) $ac_c" 1>&6
8370 case "$GNOME_CONFIG" in
8372 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8375 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8380 for ac_dir in $ac_dummy; do
8381 test -z "$ac_dir" && ac_dir=.
8382 if test -f $ac_dir/$ac_word; then
8383 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8388 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8392 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8393 if test -n "$GNOME_CONFIG"; then
8394 echo "$ac_t""$GNOME_CONFIG" 1>&6
8396 echo "$ac_t""no" 1>&6
8399 if test -x ${GNOME_CONFIG}
8401 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8402 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8404 # now look for the gnome.h header
8405 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
8406 for ac_hdr in gnome.h
8408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8410 echo "configure:8411: checking for $ac_hdr" >&5
8411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8412 echo $ac_n "(cached) $ac_c" 1>&6
8414 cat > conftest.$ac_ext <<EOF
8415 #line 8416 "configure"
8416 #include "confdefs.h"
8419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8420 { (eval echo configure:8421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8422 if test -z "$ac_err"; then
8424 eval "ac_cv_header_$ac_safe=yes"
8427 echo "configure: failed program was:" >&5
8428 cat conftest.$ac_ext >&5
8430 eval "ac_cv_header_$ac_safe=no"
8434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8435 echo "$ac_t""yes" 1>&6
8436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8437 cat >> confdefs.h <<EOF
8438 #define $ac_tr_hdr 1
8441 PLUGINS="${PLUGINS} gnome"
8442 ALIASES="${ALIASES} gnome-vlc"
8445 echo "$ac_t""no" 1>&6
8446 { echo "configure: error: Can't find gnome headers. Please install the gnome
8447 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8452 CPPFLAGS="$save_CPPFLAGS"
8457 # Check whether --enable-qt or --disable-qt was given.
8458 if test "${enable_qt+set}" = set; then
8459 enableval="$enable_qt"
8460 if test x$enable_qt = xyes; then
8461 PLUGINS="${PLUGINS} qt"
8462 ALIASES="${ALIASES} qvlc"
8463 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8464 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8465 if test -x ${QTDIR}/bin/moc
8467 MOC=${QTDIR}/bin/moc
8475 # Check whether --enable-kde or --disable-kde was given.
8476 if test "${enable_kde+set}" = set; then
8477 enableval="$enable_kde"
8478 if test x$enable_kde = xyes; then
8479 PLUGINS="${PLUGINS} kde"
8480 ALIASES="${ALIASES} kvlc"
8481 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8482 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8483 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8484 if test -x ${QTDIR}/bin/moc
8486 MOC=${QTDIR}/bin/moc
8494 # Check whether --enable-opie or --disable-opie was given.
8495 if test "${enable_opie+set}" = set; then
8496 enableval="$enable_opie"
8497 if test "x${enable_opie}" = "xyes"; then
8498 # Check whether --with-qte or --without-qte was given.
8499 if test "${with_qte+set}" = set; then
8504 if test "x${with_qte}" = "x"
8506 test_LDFLAGS="-L${QTDIR}/lib"
8507 test_CFLAGS="-I${QTDIR}/include"
8509 test_LDFLAGS="-L${with_qte}/lib"
8510 test_CFLAGS="-I${with_qte}/include"
8513 PLUGINS="${PLUGINS} opie"
8514 opie_LDFLAGS="${opie_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
8515 opie_CFLAGS="${opie_CFLAGS} ${test_CFLAGS}-DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
8516 if test -x ${QTDIR}/bin/moc
8518 MOC=${QTDIR}/bin/moc
8526 # Check whether --enable-macosx or --disable-macosx was given.
8527 if test "${enable_macosx+set}" = set; then
8528 enableval="$enable_macosx"
8529 if test x$enable_macosx = xyes
8531 BUILTINS="${BUILTINS} macosx"
8532 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8535 for ac_hdr in Cocoa/Cocoa.h
8537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8539 echo "configure:8540: checking for $ac_hdr" >&5
8540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8541 echo $ac_n "(cached) $ac_c" 1>&6
8543 cat > conftest.$ac_ext <<EOF
8544 #line 8545 "configure"
8545 #include "confdefs.h"
8548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8549 { (eval echo configure:8550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8551 if test -z "$ac_err"; then
8553 eval "ac_cv_header_$ac_safe=yes"
8556 echo "configure: failed program was:" >&5
8557 cat conftest.$ac_ext >&5
8559 eval "ac_cv_header_$ac_safe=no"
8563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8564 echo "$ac_t""yes" 1>&6
8565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8566 cat >> confdefs.h <<EOF
8567 #define $ac_tr_hdr 1
8569 BUILTINS="${BUILTINS} macosx"
8570 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8573 echo "$ac_t""no" 1>&6
8580 # Check whether --enable-qnx or --disable-qnx was given.
8581 if test "${enable_qnx+set}" = set; then
8582 enableval="$enable_qnx"
8586 if test x$enable_qnx != xno
8590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8592 echo "configure:8593: checking for $ac_hdr" >&5
8593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8594 echo $ac_n "(cached) $ac_c" 1>&6
8596 cat > conftest.$ac_ext <<EOF
8597 #line 8598 "configure"
8598 #include "confdefs.h"
8601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8602 { (eval echo configure:8603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8604 if test -z "$ac_err"; then
8606 eval "ac_cv_header_$ac_safe=yes"
8609 echo "configure: failed program was:" >&5
8610 cat conftest.$ac_ext >&5
8612 eval "ac_cv_header_$ac_safe=no"
8616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8617 echo "$ac_t""yes" 1>&6
8618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8619 cat >> confdefs.h <<EOF
8620 #define $ac_tr_hdr 1
8623 PLUGINS="${PLUGINS} qnx"
8624 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8627 echo "$ac_t""no" 1>&6
8633 # Check whether --enable-intfwin or --disable-intfwin was given.
8634 if test "${enable_intfwin+set}" = set; then
8635 enableval="$enable_intfwin"
8636 if test "x$enable_intfwin" != "xno"
8638 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8639 if test "${with_bcbuilder+set}" = set; then
8640 withval="$with_bcbuilder"
8644 if test "x$with_bcbuilder" != "x"
8646 BCBUILDER="$with_bcbuilder"
8648 PLUGINS="${PLUGINS} intfwin"
8653 # Check whether --enable-ncurses or --disable-ncurses was given.
8654 if test "${enable_ncurses+set}" = set; then
8655 enableval="$enable_ncurses"
8656 if test x$enable_ncurses = xyes; then
8657 PLUGINS="${PLUGINS} ncurses"
8658 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8663 # Check whether --enable-lirc or --disable-lirc was given.
8664 if test "${enable_lirc+set}" = set; then
8665 enableval="$enable_lirc"
8669 if test x$enable_lirc = xyes
8671 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8672 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8673 echo "configure:8674: checking for lirc/lirc_client.h" >&5
8674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8675 echo $ac_n "(cached) $ac_c" 1>&6
8677 cat > conftest.$ac_ext <<EOF
8678 #line 8679 "configure"
8679 #include "confdefs.h"
8680 #include <lirc/lirc_client.h>
8682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8683 { (eval echo configure:8684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8685 if test -z "$ac_err"; then
8687 eval "ac_cv_header_$ac_safe=yes"
8690 echo "configure: failed program was:" >&5
8691 cat conftest.$ac_ext >&5
8693 eval "ac_cv_header_$ac_safe=no"
8697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8698 echo "$ac_t""yes" 1>&6
8699 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8700 echo "configure:8701: checking for lirc_init in -llirc_client" >&5
8701 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8703 echo $ac_n "(cached) $ac_c" 1>&6
8705 ac_save_LIBS="$LIBS"
8706 LIBS="-llirc_client $LIBS"
8707 cat > conftest.$ac_ext <<EOF
8708 #line 8709 "configure"
8709 #include "confdefs.h"
8710 /* Override any gcc2 internal prototype to avoid an error. */
8711 /* We use char because int might match the return type of a gcc2
8712 builtin and then its argument prototype would still apply. */
8719 if { (eval echo configure:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8721 eval "ac_cv_lib_$ac_lib_var=yes"
8723 echo "configure: failed program was:" >&5
8724 cat conftest.$ac_ext >&5
8726 eval "ac_cv_lib_$ac_lib_var=no"
8729 LIBS="$ac_save_LIBS"
8732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8733 echo "$ac_t""yes" 1>&6
8736 echo "$ac_t""no" 1>&6
8741 echo "$ac_t""no" 1>&6
8745 if test x$have_lirc = xtrue
8747 PLUGINS="${PLUGINS} lirc"
8748 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8752 # Check whether --with- or --without- was given.
8753 if test "${with_+set}" = set; then
8759 # Check whether --with-words or --without-words was given.
8760 if test "${with_words+set}" = set; then
8761 withval="$with_words"
8765 case "x$with_words" in
8767 ac_cv_c_bigendian=yes
8770 ac_cv_c_bigendian=no
8773 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8774 echo "configure:8775: checking whether the byte order is big-endian" >&5
8775 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8776 echo $ac_n "(cached) $ac_c" 1>&6
8778 ac_cv_c_bigendian=unknown
8779 cat >conftest.c <<EOF
8780 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8781 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8782 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8783 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8784 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8785 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8786 int main(void) { _a(); _e(); return 0; }
8789 if test -f conftest.c
8791 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8792 && test -f conftest.o
8794 if test "`strings conftest.o | grep BIGenDianSyS`"
8796 ac_cv_c_bigendian=yes
8798 if test "`strings conftest.o | grep LiTTleEnDian`"
8800 ac_cv_c_bigendian=no
8807 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8808 if test x$ac_cv_c_bigendian = xunknown
8810 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8814 if test $ac_cv_c_bigendian = yes
8816 cat >> confdefs.h <<\EOF
8817 #define WORDS_BIGENDIAN 1
8823 # Check whether --enable-gprof or --disable-gprof was given.
8824 if test "${enable_gprof+set}" = set; then
8825 enableval="$enable_gprof"
8826 if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
8831 # Check whether --enable-cprof or --disable-cprof was given.
8832 if test "${enable_cprof+set}" = set; then
8833 enableval="$enable_cprof"
8834 if test "x$enable_cprof" = "xyes";
8836 LDFLAGS="${LDFLAGS} -lcprof"
8843 # Check whether --enable-pth or --disable-pth was given.
8844 if test "${enable_pth+set}" = set; then
8845 enableval="$enable_pth"
8846 if test "x$enable_pth" = "xyes"; then
8847 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8848 echo "configure:8849: checking for pth_init in -lpth" >&5
8849 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8851 echo $ac_n "(cached) $ac_c" 1>&6
8853 ac_save_LIBS="$LIBS"
8855 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure"
8857 #include "confdefs.h"
8858 /* Override any gcc2 internal prototype to avoid an error. */
8859 /* We use char because int might match the return type of a gcc2
8860 builtin and then its argument prototype would still apply. */
8867 if { (eval echo configure:8868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8869 eval "ac_cv_lib_$ac_lib_var=yes"
8871 echo "configure: failed program was:" >&5
8872 cat conftest.$ac_ext >&5
8874 eval "ac_cv_lib_$ac_lib_var=no"
8877 LIBS="$ac_save_LIBS"
8880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8881 echo "$ac_t""yes" 1>&6
8882 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8883 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8884 cat >> confdefs.h <<EOF
8885 #define $ac_tr_lib 1
8891 echo "$ac_t""no" 1>&6
8894 cat > conftest.$ac_ext <<EOF
8895 #line 8896 "configure"
8896 #include "confdefs.h"
8899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8900 egrep "pth_init" >/dev/null 2>&1; then
8903 cat >> confdefs.h <<\EOF
8904 #define PTH_INIT_IN_PTH_H 1
8916 # Check whether --enable-st or --disable-st was given.
8917 if test "${enable_st+set}" = set; then
8918 enableval="$enable_st"
8919 if test "x$enable_st" = "xyes"; then
8920 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8921 echo "configure:8922: checking for st_init in -lst" >&5
8922 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
8926 ac_save_LIBS="$LIBS"
8928 cat > conftest.$ac_ext <<EOF
8929 #line 8930 "configure"
8930 #include "confdefs.h"
8931 /* Override any gcc2 internal prototype to avoid an error. */
8932 /* We use char because int might match the return type of a gcc2
8933 builtin and then its argument prototype would still apply. */
8940 if { (eval echo configure:8941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8942 eval "ac_cv_lib_$ac_lib_var=yes"
8944 echo "configure: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8947 eval "ac_cv_lib_$ac_lib_var=no"
8950 LIBS="$ac_save_LIBS"
8953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8954 echo "$ac_t""yes" 1>&6
8955 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8956 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8957 cat >> confdefs.h <<EOF
8958 #define $ac_tr_lib 1
8964 echo "$ac_t""no" 1>&6
8967 cat > conftest.$ac_ext <<EOF
8968 #line 8969 "configure"
8969 #include "confdefs.h"
8972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8973 egrep "st_init" >/dev/null 2>&1; then
8976 cat >> confdefs.h <<\EOF
8977 #define ST_INIT_IN_ST_H 1
8989 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
8991 # Check whether --enable-plugins or --disable-plugins was given.
8992 if test "${enable_plugins+set}" = set; then
8993 enableval="$enable_plugins"
8994 if test x$enable_plugins = xno
8996 BUILTINS="${BUILTINS} ${PLUGINS}"
9002 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
9004 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9006 BUILTINS="${BUILTINS} ${PLUGINS}"
9010 cat >> confdefs.h <<EOF
9011 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
9014 cat >> confdefs.h <<EOF
9015 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
9019 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9020 cat >> confdefs.h <<EOF
9021 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
9024 cat >> confdefs.h <<EOF
9025 #define MODULE_SYMBOL $VLC_SYMBOL
9029 DATA_PATH="${ac_tool_prefix}/share/videolan"
9031 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9136 cat > confcache <<\EOF
9137 # This file is a shell script that caches the results of configure
9138 # tests run on this system so they can be shared between configure
9139 # scripts and configure runs. It is not useful on other systems.
9140 # If it contains results you don't want to keep, you may remove or edit it.
9142 # By default, configure uses ./config.cache as the cache file,
9143 # creating it if it does not exist already. You can give configure
9144 # the --cache-file=FILE option to use a different cache file; that is
9145 # what configure does when it calls configure scripts in
9146 # subdirectories, so they share the cache.
9147 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9148 # config.status only pays attention to the cache file if you give it the
9149 # --recheck option to rerun configure.
9152 # The following way of writing the cache mishandles newlines in values,
9153 # but we know of no workaround that is simple, portable, and efficient.
9154 # So, don't put newlines in cache variables' values.
9155 # Ultrix sh set writes to stderr and can't be redirected directly,
9156 # and sets the high bit in the cache file unless we assign to the vars.
9158 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9160 # `set' does not quote correctly, so add quotes (double-quote substitution
9161 # turns \\\\ into \\, and sed turns \\ into \).
9163 -e "s/'/'\\\\''/g" \
9164 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9167 # `set' quotes correctly as required by POSIX, so do not add quotes.
9168 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9171 if cmp -s $cache_file confcache; then
9174 if test -w $cache_file; then
9175 echo "updating cache $cache_file"
9176 cat confcache > $cache_file
9178 echo "not updating unwritable cache $cache_file"
9183 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9185 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9186 # Let make expand exec_prefix.
9187 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9189 # Any assignment to VPATH causes Sun make to only execute
9190 # the first set of double-colon rules, so remove it if not needed.
9191 # If there is a colon in the path, we need to keep it.
9192 if test "x$srcdir" = x.; then
9193 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9196 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9198 DEFS=-DHAVE_CONFIG_H
9200 # Without the "./", some shells look in PATH for config.status.
9201 : ${CONFIG_STATUS=./config.status}
9203 echo creating $CONFIG_STATUS
9204 rm -f $CONFIG_STATUS
9205 cat > $CONFIG_STATUS <<EOF
9207 # Generated automatically by configure.
9208 # Run this file to recreate the current configuration.
9209 # This directory was configured as follows,
9210 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9212 # $0 $ac_configure_args
9214 # Compiler output produced by configure, useful for debugging
9215 # configure, is in ./config.log if it exists.
9217 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9220 case "\$ac_option" in
9221 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9222 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9223 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9224 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9225 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9227 -help | --help | --hel | --he | --h)
9228 echo "\$ac_cs_usage"; exit 0 ;;
9229 *) echo "\$ac_cs_usage"; exit 1 ;;
9233 ac_given_srcdir=$srcdir
9234 ac_given_INSTALL="$INSTALL"
9236 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9238 cat >> $CONFIG_STATUS <<EOF
9240 # Protect against being on the right side of a sed subst in config.status.
9241 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9242 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9246 s%@CFLAGS@%$CFLAGS%g
9247 s%@CPPFLAGS@%$CPPFLAGS%g
9248 s%@CXXFLAGS@%$CXXFLAGS%g
9249 s%@FFLAGS@%$FFLAGS%g
9251 s%@LDFLAGS@%$LDFLAGS%g
9253 s%@exec_prefix@%$exec_prefix%g
9254 s%@prefix@%$prefix%g
9255 s%@program_transform_name@%$program_transform_name%g
9256 s%@bindir@%$bindir%g
9257 s%@sbindir@%$sbindir%g
9258 s%@libexecdir@%$libexecdir%g
9259 s%@datadir@%$datadir%g
9260 s%@sysconfdir@%$sysconfdir%g
9261 s%@sharedstatedir@%$sharedstatedir%g
9262 s%@localstatedir@%$localstatedir%g
9263 s%@libdir@%$libdir%g
9264 s%@includedir@%$includedir%g
9265 s%@oldincludedir@%$oldincludedir%g
9266 s%@infodir@%$infodir%g
9267 s%@mandir@%$mandir%g
9269 s%@host_alias@%$host_alias%g
9270 s%@host_cpu@%$host_cpu%g
9271 s%@host_vendor@%$host_vendor%g
9272 s%@host_os@%$host_os%g
9273 s%@target@%$target%g
9274 s%@target_alias@%$target_alias%g
9275 s%@target_cpu@%$target_cpu%g
9276 s%@target_vendor@%$target_vendor%g
9277 s%@target_os@%$target_os%g
9279 s%@build_alias@%$build_alias%g
9280 s%@build_cpu@%$build_cpu%g
9281 s%@build_vendor@%$build_vendor%g
9282 s%@build_os@%$build_os%g
9283 s%@SET_MAKE@%$SET_MAKE%g
9286 s%@RANLIB@%$RANLIB%g
9289 s%@ALLOCA@%$ALLOCA%g
9290 s%@GLIBC21@%$GLIBC21%g
9291 s%@LIBICONV@%$LIBICONV%g
9292 s%@USE_NLS@%$USE_NLS%g
9293 s%@MSGFMT@%$MSGFMT%g
9294 s%@GMSGFMT@%$GMSGFMT%g
9295 s%@XGETTEXT@%$XGETTEXT%g
9296 s%@INTLBISON@%$INTLBISON%g
9297 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9298 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9299 s%@CATALOGS@%$CATALOGS%g
9300 s%@CATOBJEXT@%$CATOBJEXT%g
9301 s%@GMOFILES@%$GMOFILES%g
9302 s%@INTLLIBS@%$INTLLIBS%g
9303 s%@INTLOBJS@%$INTLOBJS%g
9304 s%@POFILES@%$POFILES%g
9306 s%@DATADIRNAME@%$DATADIRNAME%g
9307 s%@INSTOBJEXT@%$INSTOBJEXT%g
9308 s%@GENCAT@%$GENCAT%g
9309 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9310 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9311 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9312 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9313 s%@INSTALL_DATA@%$INSTALL_DATA%g
9314 s%@WINDRES@%$WINDRES%g
9315 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9316 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9317 s%@SDL_CONFIG@%$SDL_CONFIG%g
9318 s%@ESD_CONFIG@%$ESD_CONFIG%g
9319 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9320 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9321 s%@GTK_CONFIG@%$GTK_CONFIG%g
9322 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9323 s%@DATA_PATH@%$DATA_PATH%g
9324 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9327 s%@PLUGINS@%$PLUGINS%g
9328 s%@BUILTINS@%$BUILTINS%g
9329 s%@ALIASES@%$ALIASES%g
9334 s%@OPTIMS@%$OPTIMS%g
9335 s%@TUNING@%$TUNING%g
9336 s%@RELEASE@%$RELEASE%g
9338 s%@BCBUILDER@%$BCBUILDER%g
9339 s%@PACKAGE@%$PACKAGE%g
9340 s%@VERSION@%$VERSION%g
9341 s%@NEED_GETOPT@%$NEED_GETOPT%g
9342 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9343 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9344 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9345 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9346 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9347 s%@a52_CFLAGS@%$a52_CFLAGS%g
9348 s%@arts_CFLAGS@%$arts_CFLAGS%g
9349 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9350 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9351 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
9352 s%@directx_CFLAGS@%$directx_CFLAGS%g
9353 s%@esd_CFLAGS@%$esd_CFLAGS%g
9354 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
9355 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9356 s%@glide_CFLAGS@%$glide_CFLAGS%g
9357 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9358 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9359 s%@kde_CFLAGS@%$kde_CFLAGS%g
9360 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9361 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9362 s%@mad_CFLAGS@%$mad_CFLAGS%g
9363 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9364 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9365 s%@opie_CFLAGS@%$opie_CFLAGS%g
9366 s%@qt_CFLAGS@%$qt_CFLAGS%g
9367 s%@qte_CFLAGS@%$qte_CFLAGS%g
9368 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9369 s%@x11_CFLAGS@%$x11_CFLAGS%g
9370 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9371 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9372 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9373 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9374 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9375 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9376 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9377 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9378 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9379 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
9380 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9381 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9382 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9383 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9384 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
9385 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9386 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
9387 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
9388 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9389 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9390 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9391 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9392 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9393 s%@http_LDFLAGS@%$http_LDFLAGS%g
9394 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9395 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9396 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9397 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9398 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9399 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9400 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9401 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9402 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9403 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9404 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9405 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9406 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9407 s%@opie_LDFLAGS@%$opie_LDFLAGS%g
9408 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9409 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9410 s%@qte_LDFLAGS@%$qte_LDFLAGS%g
9411 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9412 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9413 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9414 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9415 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9416 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9417 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9422 cat >> $CONFIG_STATUS <<\EOF
9424 # Split the substitutions into bite-sized pieces for seds with
9425 # small command number limits, like on Digital OSF/1 and HP-UX.
9426 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9427 ac_file=1 # Number of current file.
9428 ac_beg=1 # First line for current file.
9429 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9432 while $ac_more_lines; do
9433 if test $ac_beg -gt 1; then
9434 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9436 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9438 if test ! -s conftest.s$ac_file; then
9440 rm -f conftest.s$ac_file
9442 if test -z "$ac_sed_cmds"; then
9443 ac_sed_cmds="sed -f conftest.s$ac_file"
9445 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9447 ac_file=`expr $ac_file + 1`
9449 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9452 if test -z "$ac_sed_cmds"; then
9457 cat >> $CONFIG_STATUS <<EOF
9459 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
9461 cat >> $CONFIG_STATUS <<\EOF
9462 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9463 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9465 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9466 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9467 *) ac_file_in="${ac_file}.in" ;;
9470 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9472 # Remove last slash and all that follows it. Not all systems have dirname.
9473 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9474 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9475 # The file is in a subdirectory.
9476 test ! -d "$ac_dir" && mkdir "$ac_dir"
9477 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9478 # A "../" for each directory in $ac_dir_suffix.
9479 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9481 ac_dir_suffix= ac_dots=
9484 case "$ac_given_srcdir" in
9486 if test -z "$ac_dots"; then top_srcdir=.
9487 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9488 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9490 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9491 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9494 case "$ac_given_INSTALL" in
9495 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9496 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9499 echo creating "$ac_file"
9501 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9503 *Makefile*) ac_comsub="1i\\
9504 # $configure_input" ;;
9508 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9510 s%@configure_input@%$configure_input%g
9511 s%@srcdir@%$srcdir%g
9512 s%@top_srcdir@%$top_srcdir%g
9513 s%@INSTALL@%$INSTALL%g
9514 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9518 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9519 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9521 # ac_d sets the value in "#define NAME VALUE" lines.
9522 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9523 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9526 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9527 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9528 ac_uB='\([ ]\)%\1#\2define\3'
9531 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9532 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9533 ac_eB='$%\1#\2define\3'
9537 if test "${CONFIG_HEADERS+set}" != set; then
9539 cat >> $CONFIG_STATUS <<EOF
9540 CONFIG_HEADERS="include/defs.h"
9542 cat >> $CONFIG_STATUS <<\EOF
9544 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9547 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9548 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9549 *) ac_file_in="${ac_file}.in" ;;
9552 echo creating $ac_file
9554 rm -f conftest.frag conftest.in conftest.out
9555 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9556 cat $ac_file_inputs > conftest.in
9560 # Transform confdefs.h into a sed script conftest.vals that substitutes
9561 # the proper values into config.h.in to produce config.h. And first:
9562 # Protect against being on the right side of a sed subst in config.status.
9563 # Protect against being in an unquoted here document in config.status.
9565 cat > conftest.hdr <<\EOF
9568 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9572 sed -n -f conftest.hdr confdefs.h > conftest.vals
9575 # This sed command replaces #undef with comments. This is necessary, for
9576 # example, in the case of _POSIX_SOURCE, which is predefined and required
9577 # on some systems where configure will not decide to define it.
9578 cat >> conftest.vals <<\EOF
9579 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9582 # Break up conftest.vals because some shells have a limit on
9583 # the size of here documents, and old seds have small limits too.
9588 ac_lines=`grep -c . conftest.vals`
9589 # grep -c gives empty output for an empty file on some AIX systems.
9590 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9591 # Write a limited-size here document to conftest.frag.
9592 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9593 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9595 sed -f conftest.frag conftest.in > conftest.out
9597 mv conftest.out conftest.in
9599 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9601 mv conftest.tail conftest.vals
9605 cat >> $CONFIG_STATUS <<\EOF
9606 rm -f conftest.frag conftest.h
9607 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9608 cat conftest.in >> conftest.h
9610 if cmp -s $ac_file conftest.h 2>/dev/null; then
9611 echo "$ac_file is unchanged"
9614 # Remove last slash and all that follows it. Not all systems have dirname.
9615 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9616 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9617 # The file is in a subdirectory.
9618 test ! -d "$ac_dir" && mkdir "$ac_dir"
9621 mv conftest.h $ac_file
9626 cat >> $CONFIG_STATUS <<EOF
9630 cat >> $CONFIG_STATUS <<\EOF
9631 for ac_file in $CONFIG_FILES; do
9632 # Support "outfile[:infile[:infile...]]"
9634 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9636 # PO directories have a Makefile.in generated from Makefile.in.in.
9637 case "$ac_file" in */Makefile.in)
9638 # Adjust a relative srcdir.
9639 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9640 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9641 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9642 # In autoconf-2.13 it is called $ac_given_srcdir.
9643 # In autoconf-2.50 it is called $srcdir.
9644 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9645 case "$ac_given_srcdir" in
9646 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9647 /*) top_srcdir="$ac_given_srcdir" ;;
9648 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9650 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9651 rm -f "$ac_dir/POTFILES"
9652 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9653 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9654 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9655 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9663 chmod +x $CONFIG_STATUS
9664 rm -fr confdefs* $ac_clean_files
9665 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9670 --------------------
9671 vlc version : ${VERSION}
9673 architecture : ${ARCH}
9674 optimizations : ${OPTIMS}
9676 debug mode : ${DEBUG}
9677 release : ${RELEASE}
9678 cprof/gprof support : ${CPROF}/${GPROF}
9679 need builtin getopt : ${NEED_GETOPT}
9680 built-in modules :${BUILTINS}
9681 plug-in modules :${PLUGINS}
9682 vlc aliases :${ALIASES}
9684 You may now tune Makefile.opts at your convenience, for instance to choose
9685 which modules get compiled as plugins.
9687 To build vlc and its plugins, type \`$VLC_MAKE'.