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 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
54 --enable-satellite satellite card support (default disabled)"
56 --enable-avi AVI demux module (default enabled)"
60 --enable-mad libmad module (default disabled)"
62 --with-mad=PATH path to libmad"
64 --enable-ffmpeg ffmpeg codec (default disabled)"
66 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
68 --enable-a52 AC3 support with liba52 (default enabled)"
70 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
74 --enable-x11 X11 support (default enabled)"
76 --enable-xvideo XVideo support (default enabled)"
78 --enable-sdl SDL support (default enabled)"
80 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
82 --enable-directx Win32 DirectX support (default enabled on Win32)"
84 --with-directx=PATH Win32 DirectX headers and libraries"
86 --enable-fb Linux framebuffer support (default enabled on Linux)"
88 --enable-mga Linux kernel Matrox support (default disabled)"
90 --enable-ggi GGI support (default disabled)"
92 --with-ggi=PATH path to libggi"
94 --enable-glide Glide (3dfx) support (default disabled)"
96 --with-glide=PATH path to libglide"
98 --enable-aa aalib output (default disabled)"
102 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
104 --enable-esd Esound library support (default disabled)"
106 --enable-arts aRts sound server (default disabled)"
108 --enable-alsa ALSA sound support for Linux (default disabled)"
110 --enable-waveout Win32 waveOut module (default enabled on Win32)"
114 --enable-gtk Gtk+ support (default enabled)"
116 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
118 --enable-gnome Gnome interface support (default disabled)"
120 --enable-qt Qt interface support (default disabled)"
122 --enable-kde KDE interface support (default disabled)"
124 --enable-macosx MacOS X support (default enabled on MacOS X)"
126 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
128 --enable-intfwin Win32 interface support (default disabled)"
130 --with-bcbuilder=PATH Borland C++ Builder installation path"
132 --enable-ncurses ncurses interface support (default disabled)"
134 --enable-lirc lirc support (default disabled)"
138 --with-words=endianness set endianness (big or little)"
140 --enable-gprof gprof profiling (default disabled)"
142 --enable-cprof cprof profiling (default disabled)"
144 --enable-pth GNU Pth support (default disabled)"
146 --enable-st State Threads (default disabled)"
148 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
150 # Initialize some variables set by options.
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
154 cache_file
=.
/config.cache
163 program_transform_name
=s
,x
,x
,
171 bindir
='${exec_prefix}/bin'
172 sbindir
='${exec_prefix}/sbin'
173 libexecdir
='${exec_prefix}/libexec'
174 datadir
='${prefix}/share'
175 sysconfdir
='${prefix}/etc'
176 sharedstatedir
='${prefix}/com'
177 localstatedir
='${prefix}/var'
178 libdir
='${exec_prefix}/lib'
179 includedir
='${prefix}/include'
180 oldincludedir
='/usr/include'
181 infodir
='${prefix}/info'
182 mandir
='${prefix}/man'
184 # Initialize some other variables.
187 SHELL
=${CONFIG_SHELL-/bin/sh}
188 # Maximum number of lines to put in a shell here document.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
203 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
207 # Accept the important Cygnus configure options, so we can diagnose typos.
211 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
213 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
214 bindir
="$ac_optarg" ;;
216 -build |
--build |
--buil |
--bui |
--bu)
218 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
219 build
="$ac_optarg" ;;
221 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
222 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
223 ac_prev
=cache_file
;;
224 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
225 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
226 cache_file
="$ac_optarg" ;;
228 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
230 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
232 datadir
="$ac_optarg" ;;
234 -disable-* |
--disable-*)
235 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
236 # Reject names that are not valid shell variable names.
237 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
238 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
240 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
241 eval "enable_${ac_feature}=no" ;;
243 -enable-* |
--enable-*)
244 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
245 # Reject names that are not valid shell variable names.
246 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
247 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
249 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
254 eval "enable_${ac_feature}='$ac_optarg'" ;;
256 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
257 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
258 |
--exec |
--exe |
--ex)
259 ac_prev
=exec_prefix
;;
260 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
261 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
262 |
--exec=* |
--exe=* |
--ex=*)
263 exec_prefix
="$ac_optarg" ;;
265 -gas |
--gas |
--ga |
--g)
266 # Obsolete; use --with-gas.
269 -help |
--help |
--hel |
--he)
270 # Omit some internal or obsolete options to make the list less imposing.
271 # This message is too long to be a string in the A/UX 3.1 sh.
273 Usage: configure [options] [host]
274 Options: [defaults in brackets after descriptions]
276 --cache-file=FILE cache test results in FILE
277 --help print this message
278 --no-create do not create output files
279 --quiet, --silent do not print \`checking...' messages
280 --version print the version of autoconf that created configure
281 Directory and file names:
282 --prefix=PREFIX install architecture-independent files in PREFIX
284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
286 --bindir=DIR user executables in DIR [EPREFIX/bin]
287 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
288 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
289 --datadir=DIR read-only architecture-independent data in DIR
291 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
292 --sharedstatedir=DIR modifiable architecture-independent data in DIR
294 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
295 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
296 --includedir=DIR C header files in DIR [PREFIX/include]
297 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
298 --infodir=DIR info documentation in DIR [PREFIX/info]
299 --mandir=DIR man documentation in DIR [PREFIX/man]
300 --srcdir=DIR find the sources in DIR [configure dir or ..]
301 --program-prefix=PREFIX prepend PREFIX to installed program names
302 --program-suffix=SUFFIX append SUFFIX to installed program names
303 --program-transform-name=PROGRAM
304 run sed PROGRAM on installed program names
308 --build=BUILD configure for building on BUILD [BUILD=HOST]
309 --host=HOST configure for HOST [guessed]
310 --target=TARGET configure for TARGET [TARGET=HOST]
311 Features and packages:
312 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
313 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
314 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
315 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
316 --x-includes=DIR X include files are in DIR
317 --x-libraries=DIR X library files are in DIR
319 if test -n "$ac_help"; then
320 echo "--enable and --with options recognized:$ac_help"
324 -host |
--host |
--hos |
--ho)
326 -host=* |
--host=* |
--hos=* |
--ho=*)
329 -includedir |
--includedir |
--includedi |
--included |
--include \
330 |
--includ |
--inclu |
--incl |
--inc)
331 ac_prev
=includedir
;;
332 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
333 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
334 includedir
="$ac_optarg" ;;
336 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
338 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
339 infodir
="$ac_optarg" ;;
341 -libdir |
--libdir |
--libdi |
--libd)
343 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
344 libdir
="$ac_optarg" ;;
346 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
347 |
--libexe |
--libex |
--libe)
348 ac_prev
=libexecdir
;;
349 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
350 |
--libexe=* |
--libex=* |
--libe=*)
351 libexecdir
="$ac_optarg" ;;
353 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
354 |
--localstate |
--localstat |
--localsta |
--localst \
355 |
--locals |
--local |
--loca |
--loc |
--lo)
356 ac_prev
=localstatedir
;;
357 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
358 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
359 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
360 localstatedir
="$ac_optarg" ;;
362 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
364 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
365 mandir
="$ac_optarg" ;;
368 # Obsolete; use --without-fp.
371 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
375 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
376 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
379 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
380 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
381 |
--oldin |
--oldi |
--old |
--ol |
--o)
382 ac_prev
=oldincludedir
;;
383 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
384 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
385 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
386 oldincludedir
="$ac_optarg" ;;
388 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
390 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
391 prefix
="$ac_optarg" ;;
393 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
394 |
--program-pre |
--program-pr |
--program-p)
395 ac_prev
=program_prefix
;;
396 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
397 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
398 program_prefix
="$ac_optarg" ;;
400 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
401 |
--program-suf |
--program-su |
--program-s)
402 ac_prev
=program_suffix
;;
403 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
404 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
405 program_suffix
="$ac_optarg" ;;
407 -program-transform-name |
--program-transform-name \
408 |
--program-transform-nam |
--program-transform-na \
409 |
--program-transform-n |
--program-transform- \
410 |
--program-transform |
--program-transfor \
411 |
--program-transfo |
--program-transf \
412 |
--program-trans |
--program-tran \
413 |
--progr-tra |
--program-tr |
--program-t)
414 ac_prev
=program_transform_name
;;
415 -program-transform-name=* |
--program-transform-name=* \
416 |
--program-transform-nam=* |
--program-transform-na=* \
417 |
--program-transform-n=* |
--program-transform-=* \
418 |
--program-transform=* |
--program-transfor=* \
419 |
--program-transfo=* |
--program-transf=* \
420 |
--program-trans=* |
--program-tran=* \
421 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
422 program_transform_name
="$ac_optarg" ;;
424 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
425 |
-silent |
--silent |
--silen |
--sile |
--sil)
428 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
430 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
432 sbindir
="$ac_optarg" ;;
434 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
435 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
436 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
438 ac_prev
=sharedstatedir
;;
439 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
440 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
441 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
443 sharedstatedir
="$ac_optarg" ;;
445 -site |
--site |
--sit)
447 -site=* |
--site=* |
--sit=*)
450 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
452 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
453 srcdir
="$ac_optarg" ;;
455 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
456 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
457 ac_prev
=sysconfdir
;;
458 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
459 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
460 sysconfdir
="$ac_optarg" ;;
462 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
464 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
465 target
="$ac_optarg" ;;
467 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
470 -version |
--version |
--versio |
--versi |
--vers)
471 echo "configure generated by autoconf version 2.13"
475 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
476 # Reject names that are not valid shell variable names.
477 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
478 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
480 ac_package
=`echo $ac_package| sed 's/-/_/g'`
485 eval "with_${ac_package}='$ac_optarg'" ;;
487 -without-* |
--without-*)
488 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
489 # Reject names that are not valid shell variable names.
490 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
491 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
493 ac_package
=`echo $ac_package| sed 's/-/_/g'`
494 eval "with_${ac_package}=no" ;;
497 # Obsolete; use --with-x.
500 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
501 |
--x-incl |
--x-inc |
--x-in |
--x-i)
502 ac_prev
=x_includes
;;
503 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
504 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
505 x_includes
="$ac_optarg" ;;
507 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
508 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
509 ac_prev
=x_libraries
;;
510 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
511 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
512 x_libraries
="$ac_optarg" ;;
514 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
518 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
519 echo "configure: warning: $ac_option: invalid host type" 1>&2
521 if test "x$nonopt" != xNONE
; then
522 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
530 if test -n "$ac_prev"; then
531 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
534 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
536 # File descriptor usage:
539 # 2 errors and warnings
540 # 3 some systems may open it to /dev/tty
541 # 4 used on the Kubota Titan
542 # 6 checking for... messages and results
543 # 5 compiler messages saved in config.log
544 if test "$silent" = yes; then
552 This file contains any messages produced by compilers while
553 running configure, to aid debugging if configure makes a mistake.
556 # Strip out --no-create and --no-recursion so they do not pile up.
557 # Also quote any args containing shell metacharacters.
562 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
563 |
--no-cr |
--no-c) ;;
564 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
565 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
566 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
567 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
568 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
573 # Only set these to C if already set. These must not be set unconditionally
574 # because not all systems understand e.g. LANG=C (notably SCO).
575 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
576 # Non-C LC_CTYPE values break the ctype check.
577 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
578 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
579 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
580 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
582 # confdefs.h avoids OS command line length limits that DEFS can exceed.
583 rm -rf conftest
* confdefs.h
584 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
587 # A filename unique to this package, relative to the directory that
588 # configure is in, which we can look for to find out if srcdir is correct.
589 ac_unique_file
=include
/main.h
591 # Find the source files, if location was not specified.
592 if test -z "$srcdir"; then
593 ac_srcdir_defaulted
=yes
594 # Try the directory containing this script, then its parent.
596 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
597 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
599 if test ! -r $srcdir/$ac_unique_file; then
603 ac_srcdir_defaulted
=no
605 if test ! -r $srcdir/$ac_unique_file; then
606 if test "$ac_srcdir_defaulted" = yes; then
607 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
609 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
612 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
614 # Prefer explicitly selected file to automatically selected ones.
615 if test -z "$CONFIG_SITE"; then
616 if test "x$prefix" != xNONE
; then
617 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
619 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
622 for ac_site_file
in $CONFIG_SITE; do
623 if test -r "$ac_site_file"; then
624 echo "loading site script $ac_site_file"
629 if test -r "$cache_file"; then
630 echo "loading cache $cache_file"
633 echo "creating cache $cache_file"
638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
639 ac_cpp
='$CPP $CPPFLAGS'
640 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
641 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
642 cross_compiling
=$ac_cv_prog_cc_cross
646 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
647 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
648 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
655 ac_n
= ac_c
='\c' ac_t
=
661 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
662 if test -f $ac_dir/install-sh
; then
664 ac_install_sh
="$ac_aux_dir/install-sh -c"
666 elif test -f $ac_dir/install.sh
; then
668 ac_install_sh
="$ac_aux_dir/install.sh -c"
672 if test -z "$ac_aux_dir"; then
673 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
675 ac_config_guess
=$ac_aux_dir/config.guess
676 ac_config_sub
=$ac_aux_dir/config.sub
677 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
680 # Do some error checking and defaulting for the host and target type.
682 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
685 # 1. You are not allowed to specify --host, --target, and nonopt at the
687 # 2. Host defaults to nonopt.
688 # 3. If nonopt is not specified, then host defaults to the current host,
689 # as determined by config.guess.
690 # 4. Target and build default to nonopt.
691 # 5. If nonopt is not specified, then target and build default to host.
693 # The aliases save the names the user supplied, while $host etc.
694 # will get canonicalized.
695 case $host---$target---$nonopt in
696 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
697 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
701 # Make sure we can run config.sub.
702 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
703 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
706 echo $ac_n "checking host system type""... $ac_c" 1>&6
707 echo "configure:708: checking host system type" >&5
710 case "$host_alias" in
714 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
715 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
717 *) host_alias
=$nonopt ;;
721 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
722 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
723 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
724 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
725 echo "$ac_t""$host" 1>&6
727 echo $ac_n "checking target system type""... $ac_c" 1>&6
728 echo "configure:729: checking target system type" >&5
731 case "$target_alias" in
734 NONE
) target_alias
=$host_alias ;;
735 *) target_alias
=$nonopt ;;
739 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
740 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
741 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
742 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
743 echo "$ac_t""$target" 1>&6
745 echo $ac_n "checking build system type""... $ac_c" 1>&6
746 echo "configure:747: checking build system type" >&5
749 case "$build_alias" in
752 NONE
) build_alias
=$host_alias ;;
753 *) build_alias
=$nonopt ;;
757 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
758 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
759 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
760 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
761 echo "$ac_t""$build" 1>&6
763 test "$host_alias" != "$target_alias" &&
764 test "$program_prefix$program_suffix$program_transform_name" = \
766 program_prefix
=${target_alias}-
773 save_CFLAGS
="${CFLAGS}"
774 save_CPPFLAGS
="${CPPFLAGS}"
775 save_LDFLAGS
="${LDFLAGS}"
777 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
778 echo "configure:779: checking whether ${MAKE-make} sets \${MAKE}" >&5
779 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
780 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 cat > conftestmake
<<\EOF
785 @
echo 'ac_maketemp="${MAKE}"'
787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
788 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
789 if test -n "$ac_maketemp"; then
790 eval ac_cv_prog_make_
${ac_make}_set
=yes
792 eval ac_cv_prog_make_
${ac_make}_set
=no
796 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
797 echo "$ac_t""yes" 1>&6
800 echo "$ac_t""no" 1>&6
801 SET_MAKE
="MAKE=${MAKE-make}"
804 # Extract the first word of "gcc", so it can be a program name with args.
805 set dummy gcc
; ac_word
=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 if test -n "$CC"; then
812 ac_cv_prog_CC
="$CC" # Let the user override the test.
814 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
816 for ac_dir
in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir
=.
818 if test -f $ac_dir/$ac_word; then
827 if test -n "$CC"; then
828 echo "$ac_t""$CC" 1>&6
830 echo "$ac_t""no" 1>&6
833 if test -z "$CC"; then
834 # Extract the first word of "cc", so it can be a program name with args.
835 set dummy cc
; ac_word
=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 if test -n "$CC"; then
842 ac_cv_prog_CC
="$CC" # Let the user override the test.
844 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
847 for ac_dir
in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir
=.
849 if test -f $ac_dir/$ac_word; then
850 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
859 if test $ac_prog_rejected = yes; then
860 # We found a bogon in the path, so make sure we never use it.
861 set dummy
$ac_cv_prog_CC
863 if test $# -gt 0; then
864 # We chose a different compiler from the bogus one.
865 # However, it has the same basename, so the bogon will be chosen
866 # first if we set CC to just the basename; use the full file name.
868 set dummy
"$ac_dir/$ac_word" "$@"
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
879 echo "$ac_t""no" 1>&6
882 if test -z "$CC"; then
885 # Extract the first word of "cl", so it can be a program name with args.
886 set dummy cl
; ac_word
=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$CC"; then
893 ac_cv_prog_CC
="$CC" # Let the user override the test.
895 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
897 for ac_dir
in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir
=.
899 if test -f $ac_dir/$ac_word; then
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
924 ac_cpp
='$CPP $CPPFLAGS'
925 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
926 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
927 cross_compiling
=$ac_cv_prog_cc_cross
929 cat > conftest.
$ac_ext << EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 if { (eval echo configure
:937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
937 ac_cv_prog_cc_works
=yes
938 # If we can't run a trivial program, we are probably using a cross compiler.
939 if (.
/conftest
; exit) 2>/dev
/null
; then
940 ac_cv_prog_cc_cross
=no
942 ac_cv_prog_cc_cross
=yes
945 echo "configure: failed program was:" >&5
946 cat conftest.
$ac_ext >&5
947 ac_cv_prog_cc_works
=no
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp
='$CPP $CPPFLAGS'
953 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling
=$ac_cv_prog_cc_cross
957 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
958 if test $ac_cv_prog_cc_works = no
; then
959 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
963 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
964 cross_compiling
=$ac_cv_prog_cc_cross
966 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
967 echo "configure:968: checking whether we are using GNU C" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 cat > conftest.c
<<EOF
976 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
983 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
985 if test $ac_cv_prog_gcc = yes; then
991 ac_test_CFLAGS
="${CFLAGS+set}"
992 ac_save_CFLAGS
="$CFLAGS"
994 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${CC-cc} accepts -g" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 echo 'void f(){}' > conftest.c
1000 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1009 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1010 if test "$ac_test_CFLAGS" = set; then
1011 CFLAGS
="$ac_save_CFLAGS"
1012 elif test $ac_cv_prog_cc_g = yes; then
1013 if test "$GCC" = yes; then
1019 if test "$GCC" = yes; then
1026 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1027 echo "configure:1028: checking how to run the C preprocessor" >&5
1028 # On Suns, sometimes $CPP names a directory.
1029 if test -n "$CPP" && test -d "$CPP"; then
1032 if test -z "$CPP"; then
1033 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 # This must be in double quotes, not single quotes, because CPP may get
1037 # substituted into the Makefile and "${CC-cc}" will confuse make.
1039 # On the NeXT, cc -E runs the code through the compiler's parser,
1040 # not just through cpp.
1041 cat > conftest.
$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure
:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050 if test -z "$ac_err"; then
1054 echo "configure: failed program was:" >&5
1055 cat conftest.
$ac_ext >&5
1057 CPP
="${CC-cc} -E -traditional-cpp"
1058 cat > conftest.
$ac_ext <<EOF
1059 #line 1060 "configure"
1060 #include "confdefs.h"
1064 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1065 { (eval echo configure
:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1066 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1067 if test -z "$ac_err"; then
1071 echo "configure: failed program was:" >&5
1072 cat conftest.
$ac_ext >&5
1074 CPP
="${CC-cc} -nologo -E"
1075 cat > conftest.
$ac_ext <<EOF
1076 #line 1077 "configure"
1077 #include "confdefs.h"
1081 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1082 { (eval echo configure
:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1083 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1084 if test -z "$ac_err"; then
1088 echo "configure: failed program was:" >&5
1089 cat conftest.
$ac_ext >&5
1098 ac_cv_prog_CPP
="$CPP"
1100 CPP
="$ac_cv_prog_CPP"
1102 ac_cv_prog_CPP
="$CPP"
1104 echo "$ac_t""$CPP" 1>&6
1107 if test $host != $build; then
1108 ac_tool_prefix
=${host_alias}-
1113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1114 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$RANLIB"; then
1121 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1123 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1125 for ac_dir
in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir
=.
1127 if test -f $ac_dir/$ac_word; then
1128 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1135 RANLIB
="$ac_cv_prog_RANLIB"
1136 if test -n "$RANLIB"; then
1137 echo "$ac_t""$RANLIB" 1>&6
1139 echo "$ac_t""no" 1>&6
1143 if test -z "$ac_cv_prog_RANLIB"; then
1144 if test -n "$ac_tool_prefix"; then
1145 # Extract the first word of "ranlib", so it can be a program name with args.
1146 set dummy ranlib
; ac_word
=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 if test -n "$RANLIB"; then
1153 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1155 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1157 for ac_dir
in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir
=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_RANLIB
="ranlib"
1165 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1168 RANLIB
="$ac_cv_prog_RANLIB"
1169 if test -n "$RANLIB"; then
1170 echo "$ac_t""$RANLIB" 1>&6
1172 echo "$ac_t""no" 1>&6
1180 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1181 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1183 echo "configure:1184: checking for $ac_word" >&5
1184 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 if test -n "$STRIP"; then
1188 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1190 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1192 for ac_dir
in $ac_dummy; do
1193 test -z "$ac_dir" && ac_dir
=.
1194 if test -f $ac_dir/$ac_word; then
1195 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1202 STRIP
="$ac_cv_prog_STRIP"
1203 if test -n "$STRIP"; then
1204 echo "$ac_t""$STRIP" 1>&6
1206 echo "$ac_t""no" 1>&6
1210 if test -z "$ac_cv_prog_STRIP"; then
1211 if test -n "$ac_tool_prefix"; then
1212 # Extract the first word of "strip", so it can be a program name with args.
1213 set dummy strip
; ac_word
=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 if test -n "$STRIP"; then
1220 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1222 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1224 for ac_dir
in $ac_dummy; do
1225 test -z "$ac_dir" && ac_dir
=.
1226 if test -f $ac_dir/$ac_word; then
1227 ac_cv_prog_STRIP
="strip"
1232 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1235 STRIP
="$ac_cv_prog_STRIP"
1236 if test -n "$STRIP"; then
1237 echo "$ac_t""$STRIP" 1>&6
1239 echo "$ac_t""no" 1>&6
1248 # Extract the first word of "gmake", so it can be a program name with args.
1249 set dummy gmake
; ac_word
=$2
1250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1251 echo "configure:1252: checking for $ac_word" >&5
1252 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1257 ac_cv_path_GMAKE
="$GMAKE" # Let the user override the test with a path.
1260 ac_cv_path_GMAKE
="$GMAKE" # Let the user override the test with a dos path.
1263 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1265 for ac_dir
in $ac_dummy; do
1266 test -z "$ac_dir" && ac_dir
=.
1267 if test -f $ac_dir/$ac_word; then
1268 ac_cv_path_GMAKE
="$ac_dir/$ac_word"
1273 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE
="no"
1277 GMAKE
="$ac_cv_path_GMAKE"
1278 if test -n "$GMAKE"; then
1279 echo "$ac_t""$GMAKE" 1>&6
1281 echo "$ac_t""no" 1>&6
1284 if test "x$GMAKE" = "xno"; then
1285 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1286 echo "configure:1287: checking whether GNU make is installed" >&5
1287 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 if make --version |
grep -q -i gnu
; then
1293 echo "This software needs you to install GNU make to compile properly."
1294 echo "You can get it from http://www.gnu.org/."
1299 echo "$ac_t""$ac_cv_gmake" 1>&6
1305 ALL_LINGUAS
="de en_GB fr ja no ru nl"
1307 cat >> confdefs.h
<<EOF
1308 #define VLC_PACKAGE "$PACKAGE"
1311 cat >> confdefs.h
<<EOF
1312 #define VLC_VERSION "$VERSION"
1315 # Extract the first word of "ranlib", so it can be a program name with args.
1316 set dummy ranlib
; ac_word
=$2
1317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318 echo "configure:1319: checking for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 if test -n "$RANLIB"; then
1323 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1325 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1327 for ac_dir
in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir
=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_prog_RANLIB
="ranlib"
1335 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1338 RANLIB
="$ac_cv_prog_RANLIB"
1339 if test -n "$RANLIB"; then
1340 echo "$ac_t""$RANLIB" 1>&6
1342 echo "$ac_t""no" 1>&6
1346 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1347 echo "configure:1348: checking for strerror in -lcposix" >&5
1348 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 ac_save_LIBS
="$LIBS"
1353 LIBS
="-lcposix $LIBS"
1354 cat > conftest.
$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 /* Override any gcc2 internal prototype to avoid an error. */
1358 /* We use char because int might match the return type of a gcc2
1359 builtin and then its argument prototype would still apply. */
1366 if { (eval echo configure
:1367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1368 eval "ac_cv_lib_$ac_lib_var=yes"
1370 echo "configure: failed program was:" >&5
1371 cat conftest.
$ac_ext >&5
1373 eval "ac_cv_lib_$ac_lib_var=no"
1376 LIBS
="$ac_save_LIBS"
1379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1380 echo "$ac_t""yes" 1>&6
1381 LIBS
="$LIBS -lcposix"
1383 echo "$ac_t""no" 1>&6
1388 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1389 echo "configure:1390: checking for ANSI C header files" >&5
1390 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 cat > conftest.
$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1401 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1402 { (eval echo configure
:1403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1403 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1404 if test -z "$ac_err"; then
1406 ac_cv_header_stdc
=yes
1409 echo "configure: failed program was:" >&5
1410 cat conftest.
$ac_ext >&5
1412 ac_cv_header_stdc
=no
1416 if test $ac_cv_header_stdc = yes; then
1417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1418 cat > conftest.
$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1424 egrep "memchr" >/dev
/null
2>&1; then
1428 ac_cv_header_stdc
=no
1434 if test $ac_cv_header_stdc = yes; then
1435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1436 cat > conftest.
$ac_ext <<EOF
1437 #line 1438 "configure"
1438 #include "confdefs.h"
1441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1442 egrep "free" >/dev
/null
2>&1; then
1446 ac_cv_header_stdc
=no
1452 if test $ac_cv_header_stdc = yes; then
1453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1454 if test "$cross_compiling" = yes; then
1457 cat > conftest.
$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1461 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1462 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1464 int main () { int i; for (i = 0; i < 256; i++)
1465 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1469 if { (eval echo configure
:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1473 echo "configure: failed program was:" >&5
1474 cat conftest.
$ac_ext >&5
1476 ac_cv_header_stdc
=no
1484 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1485 if test $ac_cv_header_stdc = yes; then
1486 cat >> confdefs.h
<<\EOF
1487 #define STDC_HEADERS 1
1492 echo $ac_n "checking for working const""... $ac_c" 1>&6
1493 echo "configure:1494: checking for working const" >&5
1494 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 cat > conftest.
$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1503 /* Ultrix mips cc rejects this. */
1504 typedef int charset[2]; const charset x;
1505 /* SunOS 4.1.1 cc rejects this. */
1506 char const *const *ccp;
1508 /* NEC SVR4.0.2 mips cc rejects this. */
1509 struct point {int x, y;};
1510 static struct point const zero = {0,0};
1511 /* AIX XL C 1.02.0.0 rejects this.
1512 It does not let you subtract one const X* pointer from another in an arm
1513 of an if-expression whose if-part is not a constant expression */
1514 const char *g = "string";
1515 ccp = &g + (g ? g-g : 0);
1516 /* HPUX 7.0 cc rejects these. */
1519 ccp = (char const *const *) p;
1520 { /* SCO 3.2v4 cc rejects this. */
1522 char const *s = 0 ? (char *) 0 : (char const *) 0;
1526 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1528 const int *foo = &x[0];
1531 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1532 typedef const int *iptr;
1536 { /* AIX XL C 1.02.0.0 rejects this saying
1537 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1538 struct s { int j; const int *ap[3]; };
1539 struct s *b; b->j = 5;
1541 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1547 if { (eval echo configure
:1548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1551 echo "configure: failed program was:" >&5
1552 cat conftest.
$ac_ext >&5
1559 echo "$ac_t""$ac_cv_c_const" 1>&6
1560 if test $ac_cv_c_const = no
; then
1561 cat >> confdefs.h
<<\EOF
1567 echo $ac_n "checking for inline""... $ac_c" 1>&6
1568 echo "configure:1569: checking for inline" >&5
1569 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1573 for ac_kw
in inline __inline__ __inline
; do
1574 cat > conftest.
$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1582 if { (eval echo configure
:1583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1584 ac_cv_c_inline
=$ac_kw; break
1586 echo "configure: failed program was:" >&5
1587 cat conftest.
$ac_ext >&5
1594 echo "$ac_t""$ac_cv_c_inline" 1>&6
1595 case "$ac_cv_c_inline" in
1597 no
) cat >> confdefs.h
<<\EOF
1601 *) cat >> confdefs.h
<<EOF
1602 #define inline $ac_cv_c_inline
1607 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1608 echo "configure:1609: checking for off_t" >&5
1609 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 cat > conftest.
$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1615 #include <sys/types.h>
1621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1622 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1624 ac_cv_type_off_t
=yes
1632 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1633 if test $ac_cv_type_off_t = no
; then
1634 cat >> confdefs.h
<<\EOF
1640 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1641 echo "configure:1642: checking for size_t" >&5
1642 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1645 cat > conftest.
$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1648 #include <sys/types.h>
1654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1655 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1657 ac_cv_type_size_t
=yes
1660 ac_cv_type_size_t
=no
1665 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1666 if test $ac_cv_type_size_t = no
; then
1667 cat >> confdefs.h
<<\EOF
1668 #define size_t unsigned
1673 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1674 # for constant arguments. Useless!
1675 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1676 echo "configure:1677: checking for working alloca.h" >&5
1677 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 cat > conftest.
$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1685 char *p = alloca(2 * sizeof(int));
1688 if { (eval echo configure
:1689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1690 ac_cv_header_alloca_h
=yes
1692 echo "configure: failed program was:" >&5
1693 cat conftest.
$ac_ext >&5
1695 ac_cv_header_alloca_h
=no
1700 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1701 if test $ac_cv_header_alloca_h = yes; then
1702 cat >> confdefs.h
<<\EOF
1703 #define HAVE_ALLOCA_H 1
1708 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1709 echo "configure:1710: checking for alloca" >&5
1710 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1713 cat > conftest.
$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1718 # define alloca __builtin_alloca
1721 # include <malloc.h>
1722 # define alloca _alloca
1725 # include <alloca.h>
1730 # ifndef alloca /* predefined by HP cc +Olibcalls */
1739 char *p = (char *) alloca(1);
1742 if { (eval echo configure
:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1744 ac_cv_func_alloca_works
=yes
1746 echo "configure: failed program was:" >&5
1747 cat conftest.
$ac_ext >&5
1749 ac_cv_func_alloca_works
=no
1754 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1755 if test $ac_cv_func_alloca_works = yes; then
1756 cat >> confdefs.h
<<\EOF
1757 #define HAVE_ALLOCA 1
1762 if test $ac_cv_func_alloca_works = no
; then
1763 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1764 # that cause trouble. Some versions do not even contain alloca or
1765 # contain a buggy version. If you still want to use their alloca,
1766 # use ar to extract alloca.o from them instead of compiling alloca.c.
1767 ALLOCA
=alloca.
${ac_objext}
1768 cat >> confdefs.h
<<\EOF
1773 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether alloca needs Cray hooks" >&5
1775 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 cat > conftest.
$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 #if defined(CRAY) && ! defined(CRAY2)
1788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1789 egrep "webecray" >/dev
/null
2>&1; then
1800 echo "$ac_t""$ac_cv_os_cray" 1>&6
1801 if test $ac_cv_os_cray = yes; then
1802 for ac_func
in _getb67 GETB67 getb67
; do
1803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1804 echo "configure:1805: checking for $ac_func" >&5
1805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 cat > conftest.
$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $ac_func(); below. */
1814 /* Override any gcc2 internal prototype to avoid an error. */
1815 /* We use char because int might match the return type of a gcc2
1816 builtin and then its argument prototype would still apply. */
1821 /* The GNU C library defines this for functions which it implements
1822 to always fail with ENOSYS. Some functions are actually named
1823 something starting with __ and the normal name is an alias. */
1824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1832 if { (eval echo configure
:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1834 eval "ac_cv_func_$ac_func=yes"
1836 echo "configure: failed program was:" >&5
1837 cat conftest.
$ac_ext >&5
1839 eval "ac_cv_func_$ac_func=no"
1844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1845 echo "$ac_t""yes" 1>&6
1846 cat >> confdefs.h
<<EOF
1847 #define CRAY_STACKSEG_END $ac_func
1852 echo "$ac_t""no" 1>&6
1858 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1859 echo "configure:1860: checking stack direction for C alloca" >&5
1860 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 if test "$cross_compiling" = yes; then
1864 ac_cv_c_stack_direction
=0
1866 cat > conftest.
$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1869 find_stack_direction ()
1871 static char *addr = 0;
1876 return find_stack_direction ();
1879 return (&dummy > addr) ? 1 : -1;
1883 exit (find_stack_direction() < 0);
1886 if { (eval echo configure
:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1888 ac_cv_c_stack_direction
=1
1890 echo "configure: failed program was:" >&5
1891 cat conftest.
$ac_ext >&5
1893 ac_cv_c_stack_direction
=-1
1900 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1901 cat >> confdefs.h
<<EOF
1902 #define STACK_DIRECTION $ac_cv_c_stack_direction
1907 for ac_hdr
in unistd.h
1909 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_hdr" >&5
1912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 cat > conftest.
$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1920 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1921 { (eval echo configure
:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1922 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1923 if test -z "$ac_err"; then
1925 eval "ac_cv_header_$ac_safe=yes"
1928 echo "configure: failed program was:" >&5
1929 cat conftest.
$ac_ext >&5
1931 eval "ac_cv_header_$ac_safe=no"
1935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1936 echo "$ac_t""yes" 1>&6
1937 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1938 cat >> confdefs.h
<<EOF
1939 #define $ac_tr_hdr 1
1943 echo "$ac_t""no" 1>&6
1947 for ac_func
in getpagesize
1949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1950 echo "configure:1951: checking for $ac_func" >&5
1951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 cat > conftest.
$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1957 /* System header to define __stub macros and hopefully few prototypes,
1958 which can conflict with char $ac_func(); below. */
1960 /* Override any gcc2 internal prototype to avoid an error. */
1961 /* We use char because int might match the return type of a gcc2
1962 builtin and then its argument prototype would still apply. */
1967 /* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1978 if { (eval echo configure
:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1980 eval "ac_cv_func_$ac_func=yes"
1982 echo "configure: failed program was:" >&5
1983 cat conftest.
$ac_ext >&5
1985 eval "ac_cv_func_$ac_func=no"
1990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1991 echo "$ac_t""yes" 1>&6
1992 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1993 cat >> confdefs.h
<<EOF
1994 #define $ac_tr_func 1
1998 echo "$ac_t""no" 1>&6
2002 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2003 echo "configure:2004: checking for working mmap" >&5
2004 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 if test "$cross_compiling" = yes; then
2008 ac_cv_func_mmap_fixed_mapped
=no
2010 cat > conftest.
$ac_ext <<EOF
2011 #line 2012 "configure"
2012 #include "confdefs.h"
2014 /* Thanks to Mike Haertel and Jim Avera for this test.
2015 Here is a matrix of mmap possibilities:
2016 mmap private not fixed
2017 mmap private fixed at somewhere currently unmapped
2018 mmap private fixed at somewhere already mapped
2019 mmap shared not fixed
2020 mmap shared fixed at somewhere currently unmapped
2021 mmap shared fixed at somewhere already mapped
2022 For private mappings, we should verify that changes cannot be read()
2023 back from the file, nor mmap's back from the file at a different
2024 address. (There have been systems where private was not correctly
2025 implemented like the infamous i386 svr4.0, and systems where the
2026 VM page cache was not coherent with the filesystem buffer cache
2027 like early versions of FreeBSD and possibly contemporary NetBSD.)
2028 For shared mappings, we should conversely verify that changes get
2029 propogated back to all the places they're supposed to be.
2031 Grep wants private fixed already mapped.
2032 The main things grep needs to know about mmap are:
2033 * does it exist and is it safe to write into the mmap'd area
2034 * how to use it (BSD variants) */
2035 #include <sys/types.h>
2037 #include <sys/mman.h>
2039 /* This mess was copied from the GNU getpagesize.h. */
2040 #ifndef HAVE_GETPAGESIZE
2041 # ifdef HAVE_UNISTD_H
2042 # include <unistd.h>
2045 /* Assume that all systems that can run configure have sys/param.h. */
2046 # ifndef HAVE_SYS_PARAM_H
2047 # define HAVE_SYS_PARAM_H 1
2050 # ifdef _SC_PAGESIZE
2051 # define getpagesize() sysconf(_SC_PAGESIZE)
2052 # else /* no _SC_PAGESIZE */
2053 # ifdef HAVE_SYS_PARAM_H
2054 # include <sys/param.h>
2055 # ifdef EXEC_PAGESIZE
2056 # define getpagesize() EXEC_PAGESIZE
2057 # else /* no EXEC_PAGESIZE */
2059 # define getpagesize() NBPG * CLSIZE
2062 # endif /* no CLSIZE */
2063 # else /* no NBPG */
2065 # define getpagesize() NBPC
2066 # else /* no NBPC */
2068 # define getpagesize() PAGESIZE
2069 # endif /* PAGESIZE */
2070 # endif /* no NBPC */
2071 # endif /* no NBPG */
2072 # endif /* no EXEC_PAGESIZE */
2073 # else /* no HAVE_SYS_PARAM_H */
2074 # define getpagesize() 8192 /* punt totally */
2075 # endif /* no HAVE_SYS_PARAM_H */
2076 # endif /* no _SC_PAGESIZE */
2078 #endif /* no HAVE_GETPAGESIZE */
2081 extern "C" { void *malloc(unsigned); }
2089 char *data, *data2, *data3;
2093 pagesize = getpagesize();
2096 * First, make a file with some known garbage in it.
2098 data = malloc(pagesize);
2101 for (i = 0; i < pagesize; ++i)
2102 *(data + i) = rand();
2104 fd = creat("conftestmmap", 0600);
2107 if (write(fd, data, pagesize) != pagesize)
2112 * Next, try to mmap the file at a fixed address which
2113 * already has something else allocated at it. If we can,
2114 * also make sure that we see the same garbage.
2116 fd = open("conftestmmap", O_RDWR);
2119 data2 = malloc(2 * pagesize);
2122 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2123 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2124 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2126 for (i = 0; i < pagesize; ++i)
2127 if (*(data + i) != *(data2 + i))
2131 * Finally, make sure that changes to the mapped area
2132 * do not percolate back to the file as seen by read().
2133 * (This is a bug on some variants of i386 svr4.0.)
2135 for (i = 0; i < pagesize; ++i)
2136 *(data2 + i) = *(data2 + i) + 1;
2137 data3 = malloc(pagesize);
2140 if (read(fd, data3, pagesize) != pagesize)
2142 for (i = 0; i < pagesize; ++i)
2143 if (*(data + i) != *(data3 + i))
2146 unlink("conftestmmap");
2151 if { (eval echo configure
:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2153 ac_cv_func_mmap_fixed_mapped
=yes
2155 echo "configure: failed program was:" >&5
2156 cat conftest.
$ac_ext >&5
2158 ac_cv_func_mmap_fixed_mapped
=no
2165 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2166 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2167 cat >> confdefs.h
<<\EOF
2174 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2175 echo "configure:2176: checking whether we are using the GNU C Library 2.1 or newer" >&5
2176 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 cat > conftest.
$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2183 #include <features.h>
2184 #ifdef __GNU_LIBRARY__
2185 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2192 egrep "Lucky GNU user" >/dev
/null
2>&1; then
2194 ac_cv_gnu_library_2_1
=yes
2197 ac_cv_gnu_library_2_1
=no
2205 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2207 GLIBC21
="$ac_cv_gnu_library_2_1"
2211 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2212 stdlib.h string.h unistd.h sys
/param.h
2214 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2215 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2216 echo "configure:2217: checking for $ac_hdr" >&5
2217 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 cat > conftest.
$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2225 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2226 { (eval echo configure
:2227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2227 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2228 if test -z "$ac_err"; then
2230 eval "ac_cv_header_$ac_safe=yes"
2233 echo "configure: failed program was:" >&5
2234 cat conftest.
$ac_ext >&5
2236 eval "ac_cv_header_$ac_safe=no"
2240 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2241 echo "$ac_t""yes" 1>&6
2242 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2243 cat >> confdefs.h
<<EOF
2244 #define $ac_tr_hdr 1
2248 echo "$ac_t""no" 1>&6
2252 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2253 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2254 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2257 echo "configure:2258: checking for $ac_func" >&5
2258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 cat > conftest.
$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 /* System header to define __stub macros and hopefully few prototypes,
2265 which can conflict with char $ac_func(); below. */
2267 /* Override any gcc2 internal prototype to avoid an error. */
2268 /* We use char because int might match the return type of a gcc2
2269 builtin and then its argument prototype would still apply. */
2274 /* The GNU C library defines this for functions which it implements
2275 to always fail with ENOSYS. Some functions are actually named
2276 something starting with __ and the normal name is an alias. */
2277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2285 if { (eval echo configure
:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2287 eval "ac_cv_func_$ac_func=yes"
2289 echo "configure: failed program was:" >&5
2290 cat conftest.
$ac_ext >&5
2292 eval "ac_cv_func_$ac_func=no"
2297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2298 echo "$ac_t""yes" 1>&6
2299 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2300 cat >> confdefs.h
<<EOF
2301 #define $ac_tr_func 1
2305 echo "$ac_t""no" 1>&6
2312 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2313 if test "${with_libiconv_prefix+set}" = set; then
2314 withval
="$with_libiconv_prefix"
2316 for dir
in `echo "$withval" | tr : ' '`; do
2317 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
2318 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
2324 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2325 echo "configure:2326: checking for iconv" >&5
2326 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2330 am_cv_func_iconv
="no, consider installing GNU libiconv"
2332 cat > conftest.
$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2338 iconv_t cd = iconv_open("","");
2339 iconv(cd,NULL,NULL,NULL,NULL);
2343 if { (eval echo configure
:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2345 am_cv_func_iconv
=yes
2347 echo "configure: failed program was:" >&5
2348 cat conftest.
$ac_ext >&5
2351 if test "$am_cv_func_iconv" != yes; then
2352 am_save_LIBS
="$LIBS"
2353 LIBS
="$LIBS -liconv"
2354 cat > conftest.
$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2360 iconv_t cd = iconv_open("","");
2361 iconv(cd,NULL,NULL,NULL,NULL);
2365 if { (eval echo configure
:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2368 am_cv_func_iconv
=yes
2370 echo "configure: failed program was:" >&5
2371 cat conftest.
$ac_ext >&5
2374 LIBS
="$am_save_LIBS"
2379 echo "$ac_t""$am_cv_func_iconv" 1>&6
2380 if test "$am_cv_func_iconv" = yes; then
2381 cat >> confdefs.h
<<\EOF
2382 #define HAVE_ICONV 1
2385 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2386 echo "configure:2387: checking for iconv declaration" >&5
2387 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2391 cat > conftest.
$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2401 #if defined(__STDC__) || defined(__cplusplus)
2402 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2411 if { (eval echo configure
:2412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2413 am_cv_proto_iconv_arg1
=""
2415 echo "configure: failed program was:" >&5
2416 cat conftest.
$ac_ext >&5
2418 am_cv_proto_iconv_arg1
="const"
2421 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);"
2424 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2425 echo "$ac_t""${ac_t:-
2426 }$am_cv_proto_iconv" 1>&6
2427 cat >> confdefs.h
<<EOF
2428 #define ICONV_CONST $am_cv_proto_iconv_arg1
2433 if test "$am_cv_lib_iconv" = yes; then
2439 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2440 echo "configure:2441: checking for nl_langinfo and CODESET" >&5
2441 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 cat > conftest.
$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2447 #include <langinfo.h>
2449 char* cs = nl_langinfo(CODESET);
2452 if { (eval echo configure
:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2454 am_cv_langinfo_codeset
=yes
2456 echo "configure: failed program was:" >&5
2457 cat conftest.
$ac_ext >&5
2459 am_cv_langinfo_codeset
=no
2465 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2466 if test $am_cv_langinfo_codeset = yes; then
2467 cat >> confdefs.h
<<\EOF
2468 #define HAVE_LANGINFO_CODESET 1
2473 if test $ac_cv_header_locale_h = yes; then
2474 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2475 echo "configure:2476: checking for LC_MESSAGES" >&5
2476 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2479 cat > conftest.
$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2487 if { (eval echo configure
:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2489 am_cv_val_LC_MESSAGES
=yes
2491 echo "configure: failed program was:" >&5
2492 cat conftest.
$ac_ext >&5
2494 am_cv_val_LC_MESSAGES
=no
2499 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2500 if test $am_cv_val_LC_MESSAGES = yes; then
2501 cat >> confdefs.h
<<\EOF
2502 #define HAVE_LC_MESSAGES 1
2507 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2508 echo "configure:2509: checking whether NLS is requested" >&5
2509 # Check whether --enable-nls or --disable-nls was given.
2510 if test "${enable_nls+set}" = set; then
2511 enableval
="$enable_nls"
2517 echo "$ac_t""$USE_NLS" 1>&6
2520 BUILD_INCLUDED_LIBINTL
=no
2521 USE_INCLUDED_LIBINTL
=no
2524 if test "$USE_NLS" = "yes"; then
2525 cat >> confdefs.h
<<\EOF
2526 #define ENABLE_NLS 1
2529 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2530 echo "configure:2531: checking whether included gettext is requested" >&5
2531 # Check whether --with-included-gettext or --without-included-gettext was given.
2532 if test "${with_included_gettext+set}" = set; then
2533 withval
="$with_included_gettext"
2534 nls_cv_force_use_gnu_gettext
=$withval
2536 nls_cv_force_use_gnu_gettext
=no
2539 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2541 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2542 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2548 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2549 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2550 echo "configure:2551: checking for libintl.h" >&5
2551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 cat > conftest.
$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 #include <libintl.h>
2559 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2560 { (eval echo configure
:2561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2561 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2562 if test -z "$ac_err"; then
2564 eval "ac_cv_header_$ac_safe=yes"
2567 echo "configure: failed program was:" >&5
2568 cat conftest.
$ac_ext >&5
2570 eval "ac_cv_header_$ac_safe=no"
2574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2575 echo "$ac_t""yes" 1>&6
2576 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2577 echo "configure:2578: checking for GNU gettext in libc" >&5
2578 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 cat > conftest.
$ac_ext <<EOF
2582 #line 2583 "configure"
2583 #include "confdefs.h"
2584 #include <libintl.h>
2585 extern int _nl_msg_cat_cntr;
2587 bindtextdomain ("", "");
2588 return (int) gettext ("") + _nl_msg_cat_cntr
2591 if { (eval echo configure
:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2593 gt_cv_func_gnugettext1_libc
=yes
2595 echo "configure: failed program was:" >&5
2596 cat conftest.
$ac_ext >&5
2598 gt_cv_func_gnugettext1_libc
=no
2603 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2605 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2606 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2607 echo "configure:2608: checking for GNU gettext in libintl" >&5
2608 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 gt_save_LIBS
="$LIBS"
2612 LIBS
="$LIBS -lintl $LIBICONV"
2613 cat > conftest.
$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2616 #include <libintl.h>
2617 extern int _nl_msg_cat_cntr;
2619 bindtextdomain ("", "");
2620 return (int) gettext ("") + _nl_msg_cat_cntr
2623 if { (eval echo configure
:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2625 gt_cv_func_gnugettext1_libintl
=yes
2627 echo "configure: failed program was:" >&5
2628 cat conftest.
$ac_ext >&5
2630 gt_cv_func_gnugettext1_libintl
=no
2633 LIBS
="$gt_save_LIBS"
2636 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2639 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2640 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2641 && test "$PACKAGE" != gettext; }; then
2642 cat >> confdefs.h
<<\EOF
2643 #define HAVE_GETTEXT 1
2647 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2648 INTLLIBS
="-lintl $LIBICONV"
2651 gt_save_LIBS
="$LIBS"
2652 LIBS
="$LIBS $INTLLIBS"
2653 for ac_func
in dcgettext
2655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2656 echo "configure:2657: checking for $ac_func" >&5
2657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 cat > conftest.
$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2663 /* System header to define __stub macros and hopefully few prototypes,
2664 which can conflict with char $ac_func(); below. */
2666 /* Override any gcc2 internal prototype to avoid an error. */
2667 /* We use char because int might match the return type of a gcc2
2668 builtin and then its argument prototype would still apply. */
2673 /* The GNU C library defines this for functions which it implements
2674 to always fail with ENOSYS. Some functions are actually named
2675 something starting with __ and the normal name is an alias. */
2676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2684 if { (eval echo configure
:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2686 eval "ac_cv_func_$ac_func=yes"
2688 echo "configure: failed program was:" >&5
2689 cat conftest.
$ac_ext >&5
2691 eval "ac_cv_func_$ac_func=no"
2696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2697 echo "$ac_t""yes" 1>&6
2698 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2699 cat >> confdefs.h
<<EOF
2700 #define $ac_tr_func 1
2704 echo "$ac_t""no" 1>&6
2708 LIBS
="$gt_save_LIBS"
2710 # Extract the first word of "msgfmt", so it can be a program name with args.
2711 set dummy msgfmt
; ac_word
=$2
2712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2713 echo "configure:2714: checking for $ac_word" >&5
2714 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2719 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2722 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2723 for ac_dir
in $PATH; do
2724 test -z "$ac_dir" && ac_dir
=.
2725 if test -f $ac_dir/$ac_word; then
2726 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
2727 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2733 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
2737 MSGFMT
="$ac_cv_path_MSGFMT"
2738 if test "$MSGFMT" != ":"; then
2739 echo "$ac_t""$MSGFMT" 1>&6
2741 echo "$ac_t""no" 1>&6
2744 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2745 set dummy gmsgfmt
; ac_word
=$2
2746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2747 echo "configure:2748: checking for $ac_word" >&5
2748 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2753 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2756 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2759 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2761 for ac_dir
in $ac_dummy; do
2762 test -z "$ac_dir" && ac_dir
=.
2763 if test -f $ac_dir/$ac_word; then
2764 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2769 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2773 GMSGFMT
="$ac_cv_path_GMSGFMT"
2774 if test -n "$GMSGFMT"; then
2775 echo "$ac_t""$GMSGFMT" 1>&6
2777 echo "$ac_t""no" 1>&6
2781 # Extract the first word of "xgettext", so it can be a program name with args.
2782 set dummy xgettext
; ac_word
=$2
2783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2784 echo "configure:2785: checking for $ac_word" >&5
2785 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2790 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2793 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2794 for ac_dir
in $PATH; do
2795 test -z "$ac_dir" && ac_dir
=.
2796 if test -f $ac_dir/$ac_word; then
2797 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
2798 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2804 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2808 XGETTEXT
="$ac_cv_path_XGETTEXT"
2809 if test "$XGETTEXT" != ":"; then
2810 echo "$ac_t""$XGETTEXT" 1>&6
2812 echo "$ac_t""no" 1>&6
2820 echo "$ac_t""no" 1>&6
2824 if test "$CATOBJEXT" = "NONE"; then
2825 nls_cv_use_gnu_gettext
=yes
2829 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2830 INTLOBJS
="\$(GETTOBJS)"
2831 # Extract the first word of "msgfmt", so it can be a program name with args.
2832 set dummy msgfmt
; ac_word
=$2
2833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_word" >&5
2835 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2840 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2843 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2844 for ac_dir
in $PATH; do
2845 test -z "$ac_dir" && ac_dir
=.
2846 if test -f $ac_dir/$ac_word; then
2847 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
2848 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2854 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
2858 MSGFMT
="$ac_cv_path_MSGFMT"
2859 if test "$MSGFMT" != ":"; then
2860 echo "$ac_t""$MSGFMT" 1>&6
2862 echo "$ac_t""no" 1>&6
2865 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2866 set dummy gmsgfmt
; ac_word
=$2
2867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2868 echo "configure:2869: checking for $ac_word" >&5
2869 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2874 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2877 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2880 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2882 for ac_dir
in $ac_dummy; do
2883 test -z "$ac_dir" && ac_dir
=.
2884 if test -f $ac_dir/$ac_word; then
2885 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2890 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2894 GMSGFMT
="$ac_cv_path_GMSGFMT"
2895 if test -n "$GMSGFMT"; then
2896 echo "$ac_t""$GMSGFMT" 1>&6
2898 echo "$ac_t""no" 1>&6
2901 # Extract the first word of "xgettext", so it can be a program name with args.
2902 set dummy xgettext
; ac_word
=$2
2903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2904 echo "configure:2905: checking for $ac_word" >&5
2905 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2910 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2913 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2914 for ac_dir
in $PATH; do
2915 test -z "$ac_dir" && ac_dir
=.
2916 if test -f $ac_dir/$ac_word; then
2917 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
2918 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2924 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2928 XGETTEXT
="$ac_cv_path_XGETTEXT"
2929 if test "$XGETTEXT" != ":"; then
2930 echo "$ac_t""$XGETTEXT" 1>&6
2932 echo "$ac_t""no" 1>&6
2936 BUILD_INCLUDED_LIBINTL
=yes
2937 USE_INCLUDED_LIBINTL
=yes
2939 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
2940 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2943 if test "$GMSGFMT" != ":"; then
2944 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
2947 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2952 if test "$XGETTEXT" != ":"; then
2953 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
2956 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2966 if test "$PACKAGE" = gettext; then
2967 BUILD_INCLUDED_LIBINTL
=yes
2970 for ac_prog
in bison
2972 # Extract the first word of "$ac_prog", so it can be a program name with args.
2973 set dummy
$ac_prog; ac_word
=$2
2974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2975 echo "configure:2976: checking for $ac_word" >&5
2976 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 if test -n "$INTLBISON"; then
2980 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
2982 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2984 for ac_dir
in $ac_dummy; do
2985 test -z "$ac_dir" && ac_dir
=.
2986 if test -f $ac_dir/$ac_word; then
2987 ac_cv_prog_INTLBISON
="$ac_prog"
2994 INTLBISON
="$ac_cv_prog_INTLBISON"
2995 if test -n "$INTLBISON"; then
2996 echo "$ac_t""$INTLBISON" 1>&6
2998 echo "$ac_t""no" 1>&6
3001 test -n "$INTLBISON" && break
3004 if test -z "$INTLBISON"; then
3007 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3008 echo "configure:3009: checking version of bison" >&5
3009 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3010 case $ac_prog_version in
3011 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
3012 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
3013 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
3014 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
3016 echo "$ac_t""$ac_prog_version" 1>&6
3018 if test $ac_verc_fail = yes; then
3022 for lang
in $ALL_LINGUAS; do
3023 GMOFILES
="$GMOFILES $lang.gmo"
3024 POFILES
="$POFILES $lang.po"
3038 nls_cv_header_libgt
=
3050 if test "x$CATOBJEXT" != "x"; then
3051 if test "x$ALL_LINGUAS" = "x"; then
3054 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3055 echo "configure:3056: checking for catalogs to be installed" >&5
3057 for presentlang
in $ALL_LINGUAS; do
3059 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
3060 # Use the presentlang catalog if desiredlang is
3061 # a. equal to presentlang, or
3062 # b. a variant of presentlang (because in this case,
3063 # presentlang can be used as a fallback for messages
3064 # which are not translated in the desiredlang catalog).
3065 case "$desiredlang" in
3066 "$presentlang"*) useit
=yes;;
3069 if test $useit = yes; then
3070 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
3073 LINGUAS
=$NEW_LINGUAS
3074 echo "$ac_t""$LINGUAS" 1>&6
3077 if test -n "$LINGUAS"; then
3078 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3083 if test -n "$ac_aux_dir"; then
3084 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
3086 if test -z "$MKINSTALLDIRS"; then
3087 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
3091 INTL_LIBTOOL_SUFFIX_PREFIX
=
3095 # Find a good install program. We prefer a C program (faster),
3096 # so one script is as good as another. But avoid the broken or
3097 # incompatible versions:
3098 # SysV /etc/install, /usr/sbin/install
3099 # SunOS /usr/etc/install
3100 # IRIX /sbin/install
3102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3105 # ./install, which can be erroneously created by make from ./install.sh.
3106 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3107 echo "configure:3108: checking for a BSD compatible install" >&5
3108 if test -z "$INSTALL"; then
3109 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3112 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3113 for ac_dir
in $PATH; do
3114 # Account for people who put trailing slashes in PATH elements.
3116 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3118 # OSF1 and SCO ODT 3.0 have their own names for install.
3119 # Don't use installbsd from OSF since it installs stuff as root
3121 for ac_prog
in ginstall scoinst
install; do
3122 if test -f $ac_dir/$ac_prog; then
3123 if test $ac_prog = install &&
3124 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3125 # AIX install. It has an incompatible calling convention.
3128 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3139 if test "${ac_cv_path_install+set}" = set; then
3140 INSTALL
="$ac_cv_path_install"
3142 # As a last resort, use the slow shell script. We don't cache a
3143 # path for INSTALL within a source directory, because that will
3144 # break other packages using the cache if that directory is
3145 # removed, or if the path is relative.
3146 INSTALL
="$ac_install_sh"
3149 echo "$ac_t""$INSTALL" 1>&6
3151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3152 # It thinks the first close brace ends the variable substitution.
3153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3157 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3160 case x
"${target_os}" in
3169 save_CFLAGS
="${save_CFLAGS} -pthread"
3170 dvd_LDFLAGS
="${dvd_LDFLAGS} -ldvd"
3171 vcd_LDFLAGS
="${vcd_LDFLAGS} -ldvd"
3175 save_CFLAGS
="${save_CFLAGS} -pthread"
3179 save_CFLAGS
="${save_CFLAGS} -no-cpp-precomp"
3183 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3184 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3186 echo "configure:3187: checking for $ac_word" >&5
3187 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 if test -n "$WINDRES"; then
3191 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3193 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3195 for ac_dir
in $ac_dummy; do
3196 test -z "$ac_dir" && ac_dir
=.
3197 if test -f $ac_dir/$ac_word; then
3198 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3205 WINDRES
="$ac_cv_prog_WINDRES"
3206 if test -n "$WINDRES"; then
3207 echo "$ac_t""$WINDRES" 1>&6
3209 echo "$ac_t""no" 1>&6
3213 if test -z "$ac_cv_prog_WINDRES"; then
3214 if test -n "$ac_tool_prefix"; then
3215 # Extract the first word of "windres", so it can be a program name with args.
3216 set dummy windres
; ac_word
=$2
3217 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3218 echo "configure:3219: checking for $ac_word" >&5
3219 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3222 if test -n "$WINDRES"; then
3223 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3225 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3227 for ac_dir
in $ac_dummy; do
3228 test -z "$ac_dir" && ac_dir
=.
3229 if test -f $ac_dir/$ac_word; then
3230 ac_cv_prog_WINDRES
="windres"
3235 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
=":"
3238 WINDRES
="$ac_cv_prog_WINDRES"
3239 if test -n "$WINDRES"; then
3240 echo "$ac_t""$WINDRES" 1>&6
3242 echo "$ac_t""no" 1>&6
3250 save_CFLAGS
="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3251 vlc_LDFLAGS
="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3252 vlc_LDFLAGS
="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3253 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lws2_32"
3254 rc_LDFLAGS
="${rc_LDFLAGS} -lws2_32"
3258 x11_LDFLAGS
="${x11_LDFLAGS} -lsocket"
3259 xvideo_LDFLAGS
="${xvideo_LDFLAGS} -lsocket"
3263 save_CFLAGS
="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3264 vlc_LDFLAGS
="${vlc_LDFLAGS} -lbe"
3265 plugins_LDFLAGS
="${plugins_LDFLAGS} -nostart"
3266 beos_LDFLAGS
="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3267 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lbind"
3274 if test x
"${SYS}" = xmingw32
3276 plugins_CFLAGS
="${plugins_CFLAGS} -fnative-struct"
3278 plugins_CFLAGS
="${plugins_CFLAGS} -fPIC"
3281 save_CFLAGS
="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3283 for ac_func
in gettimeofday
select strerror strtod strtol isatty
usleep vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
3285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3286 echo "configure:3287: checking for $ac_func" >&5
3287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3290 cat > conftest.
$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3293 /* System header to define __stub macros and hopefully few prototypes,
3294 which can conflict with char $ac_func(); below. */
3296 /* Override any gcc2 internal prototype to avoid an error. */
3297 /* We use char because int might match the return type of a gcc2
3298 builtin and then its argument prototype would still apply. */
3303 /* The GNU C library defines this for functions which it implements
3304 to always fail with ENOSYS. Some functions are actually named
3305 something starting with __ and the normal name is an alias. */
3306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3314 if { (eval echo configure
:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3316 eval "ac_cv_func_$ac_func=yes"
3318 echo "configure: failed program was:" >&5
3319 cat conftest.
$ac_ext >&5
3321 eval "ac_cv_func_$ac_func=no"
3326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3327 echo "$ac_t""yes" 1>&6
3328 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3329 cat >> confdefs.h
<<EOF
3330 #define $ac_tr_func 1
3334 echo "$ac_t""no" 1>&6
3339 echo $ac_n "checking for connect""... $ac_c" 1>&6
3340 echo "configure:3341: checking for connect" >&5
3341 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 cat > conftest.
$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 /* System header to define __stub macros and hopefully few prototypes,
3348 which can conflict with char connect(); below. */
3350 /* Override any gcc2 internal prototype to avoid an error. */
3351 /* We use char because int might match the return type of a gcc2
3352 builtin and then its argument prototype would still apply. */
3357 /* The GNU C library defines this for functions which it implements
3358 to always fail with ENOSYS. Some functions are actually named
3359 something starting with __ and the normal name is an alias. */
3360 #if defined (__stub_connect) || defined (__stub___connect)
3368 if { (eval echo configure
:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3370 eval "ac_cv_func_connect=yes"
3372 echo "configure: failed program was:" >&5
3373 cat conftest.
$ac_ext >&5
3375 eval "ac_cv_func_connect=no"
3380 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3381 echo "$ac_t""yes" 1>&6
3384 echo "$ac_t""no" 1>&6
3386 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3387 echo "configure:3388: checking for connect in -lsocket" >&5
3388 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3392 ac_save_LIBS
="$LIBS"
3393 LIBS
="-lsocket $LIBS"
3394 cat > conftest.
$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 /* Override any gcc2 internal prototype to avoid an error. */
3398 /* We use char because int might match the return type of a gcc2
3399 builtin and then its argument prototype would still apply. */
3406 if { (eval echo configure
:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3408 eval "ac_cv_lib_$ac_lib_var=yes"
3410 echo "configure: failed program was:" >&5
3411 cat conftest.
$ac_ext >&5
3413 eval "ac_cv_lib_$ac_lib_var=no"
3416 LIBS
="$ac_save_LIBS"
3419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3420 echo "$ac_t""yes" 1>&6
3421 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lsocket"
3422 vlc_LDFLAGS
="${vlc_LDFLAGS} -lsocket"
3425 echo "$ac_t""no" 1>&6
3430 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3431 echo "configure:3432: checking for gethostbyname" >&5
3432 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3435 cat > conftest.
$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 /* System header to define __stub macros and hopefully few prototypes,
3439 which can conflict with char gethostbyname(); below. */
3441 /* Override any gcc2 internal prototype to avoid an error. */
3442 /* We use char because int might match the return type of a gcc2
3443 builtin and then its argument prototype would still apply. */
3444 char gethostbyname();
3448 /* The GNU C library defines this for functions which it implements
3449 to always fail with ENOSYS. Some functions are actually named
3450 something starting with __ and the normal name is an alias. */
3451 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3459 if { (eval echo configure
:3460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3461 eval "ac_cv_func_gethostbyname=yes"
3463 echo "configure: failed program was:" >&5
3464 cat conftest.
$ac_ext >&5
3466 eval "ac_cv_func_gethostbyname=no"
3471 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3472 echo "$ac_t""yes" 1>&6
3475 echo "$ac_t""no" 1>&6
3477 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3478 echo "configure:3479: checking for gethostbyname in -lnsl" >&5
3479 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3483 ac_save_LIBS
="$LIBS"
3485 cat > conftest.
$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 /* Override any gcc2 internal prototype to avoid an error. */
3489 /* We use char because int might match the return type of a gcc2
3490 builtin and then its argument prototype would still apply. */
3491 char gethostbyname();
3497 if { (eval echo configure
:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3499 eval "ac_cv_lib_$ac_lib_var=yes"
3501 echo "configure: failed program was:" >&5
3502 cat conftest.
$ac_ext >&5
3504 eval "ac_cv_lib_$ac_lib_var=no"
3507 LIBS
="$ac_save_LIBS"
3510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3512 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lnsl"
3514 echo "$ac_t""no" 1>&6
3520 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3521 echo "configure:3522: checking for gethostbyname" >&5
3522 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 cat > conftest.
$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 /* System header to define __stub macros and hopefully few prototypes,
3529 which can conflict with char gethostbyname(); below. */
3531 /* Override any gcc2 internal prototype to avoid an error. */
3532 /* We use char because int might match the return type of a gcc2
3533 builtin and then its argument prototype would still apply. */
3534 char gethostbyname();
3538 /* The GNU C library defines this for functions which it implements
3539 to always fail with ENOSYS. Some functions are actually named
3540 something starting with __ and the normal name is an alias. */
3541 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3549 if { (eval echo configure
:3550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3551 eval "ac_cv_func_gethostbyname=yes"
3553 echo "configure: failed program was:" >&5
3554 cat conftest.
$ac_ext >&5
3556 eval "ac_cv_func_gethostbyname=no"
3561 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3562 echo "$ac_t""yes" 1>&6
3565 echo "$ac_t""no" 1>&6
3567 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3568 echo "configure:3569: checking for gethostbyname in -lbind" >&5
3569 ac_lib_var
=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 ac_save_LIBS
="$LIBS"
3575 cat > conftest.
$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 /* Override any gcc2 internal prototype to avoid an error. */
3579 /* We use char because int might match the return type of a gcc2
3580 builtin and then its argument prototype would still apply. */
3581 char gethostbyname();
3587 if { (eval echo configure
:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3589 eval "ac_cv_lib_$ac_lib_var=yes"
3591 echo "configure: failed program was:" >&5
3592 cat conftest.
$ac_ext >&5
3594 eval "ac_cv_lib_$ac_lib_var=no"
3597 LIBS
="$ac_save_LIBS"
3600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3601 echo "$ac_t""yes" 1>&6
3602 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lbind"
3604 echo "$ac_t""no" 1>&6
3610 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3611 echo "configure:3612: checking for nanosleep" >&5
3612 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3615 cat > conftest.
$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 /* System header to define __stub macros and hopefully few prototypes,
3619 which can conflict with char nanosleep(); below. */
3621 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3628 /* The GNU C library defines this for functions which it implements
3629 to always fail with ENOSYS. Some functions are actually named
3630 something starting with __ and the normal name is an alias. */
3631 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3639 if { (eval echo configure
:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3641 eval "ac_cv_func_nanosleep=yes"
3643 echo "configure: failed program was:" >&5
3644 cat conftest.
$ac_ext >&5
3646 eval "ac_cv_func_nanosleep=no"
3651 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3652 echo "$ac_t""yes" 1>&6
3655 echo "$ac_t""no" 1>&6
3657 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3658 echo "configure:3659: checking for nanosleep in -lrt" >&5
3659 ac_lib_var
=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 ac_save_LIBS
="$LIBS"
3665 cat > conftest.
$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3677 if { (eval echo configure
:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3679 eval "ac_cv_lib_$ac_lib_var=yes"
3681 echo "configure: failed program was:" >&5
3682 cat conftest.
$ac_ext >&5
3684 eval "ac_cv_lib_$ac_lib_var=no"
3687 LIBS
="$ac_save_LIBS"
3690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3691 echo "$ac_t""yes" 1>&6
3692 vlc_LDFLAGS
="${vlc_LDFLAGS} -lrt"
3694 echo "$ac_t""no" 1>&6
3696 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3697 echo "configure:3698: checking for nanosleep in -lposix4" >&5
3698 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3700 echo $ac_n "(cached) $ac_c" 1>&6
3702 ac_save_LIBS
="$LIBS"
3703 LIBS
="-lposix4 $LIBS"
3704 cat > conftest.
$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 /* Override any gcc2 internal prototype to avoid an error. */
3708 /* We use char because int might match the return type of a gcc2
3709 builtin and then its argument prototype would still apply. */
3716 if { (eval echo configure
:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3718 eval "ac_cv_lib_$ac_lib_var=yes"
3720 echo "configure: failed program was:" >&5
3721 cat conftest.
$ac_ext >&5
3723 eval "ac_cv_lib_$ac_lib_var=no"
3726 LIBS
="$ac_save_LIBS"
3729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3730 echo "$ac_t""yes" 1>&6
3731 vlc_LDFLAGS
="${vlc_LDFLAGS} -lposix4"
3733 echo "$ac_t""no" 1>&6
3742 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3743 echo "configure:3744: checking for inet_aton" >&5
3744 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 cat > conftest.
$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3750 /* System header to define __stub macros and hopefully few prototypes,
3751 which can conflict with char inet_aton(); below. */
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3760 /* The GNU C library defines this for functions which it implements
3761 to always fail with ENOSYS. Some functions are actually named
3762 something starting with __ and the normal name is an alias. */
3763 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3771 if { (eval echo configure
:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3773 eval "ac_cv_func_inet_aton=yes"
3775 echo "configure: failed program was:" >&5
3776 cat conftest.
$ac_ext >&5
3778 eval "ac_cv_func_inet_aton=no"
3783 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3784 echo "$ac_t""yes" 1>&6
3787 echo "$ac_t""no" 1>&6
3789 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3790 echo "configure:3791: checking for inet_aton in -lresolv" >&5
3791 ac_lib_var
=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 ac_save_LIBS
="$LIBS"
3796 LIBS
="-lresolv $LIBS"
3797 cat > conftest.
$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 /* Override any gcc2 internal prototype to avoid an error. */
3801 /* We use char because int might match the return type of a gcc2
3802 builtin and then its argument prototype would still apply. */
3809 if { (eval echo configure
:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3811 eval "ac_cv_lib_$ac_lib_var=yes"
3813 echo "configure: failed program was:" >&5
3814 cat conftest.
$ac_ext >&5
3816 eval "ac_cv_lib_$ac_lib_var=no"
3819 LIBS
="$ac_save_LIBS"
3822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3823 echo "$ac_t""yes" 1>&6
3824 ipv4_LDFLAGS
="${ipv4_LDFLAGS} -lresolv"
3826 echo "$ac_t""no" 1>&6
3832 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3833 echo "configure:3834: checking for textdomain" >&5
3834 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.
$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 /* System header to define __stub macros and hopefully few prototypes,
3841 which can conflict with char textdomain(); below. */
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3850 /* The GNU C library defines this for functions which it implements
3851 to always fail with ENOSYS. Some functions are actually named
3852 something starting with __ and the normal name is an alias. */
3853 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3861 if { (eval echo configure
:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3863 eval "ac_cv_func_textdomain=yes"
3865 echo "configure: failed program was:" >&5
3866 cat conftest.
$ac_ext >&5
3868 eval "ac_cv_func_textdomain=no"
3873 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3874 echo "$ac_t""yes" 1>&6
3877 echo "$ac_t""no" 1>&6
3879 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3880 echo "configure:3881: checking for textdomain in -lintl" >&5
3881 ac_lib_var
=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3885 ac_save_LIBS
="$LIBS"
3887 cat > conftest.
$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3890 /* Override any gcc2 internal prototype to avoid an error. */
3891 /* We use char because int might match the return type of a gcc2
3892 builtin and then its argument prototype would still apply. */
3899 if { (eval echo configure
:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3901 eval "ac_cv_lib_$ac_lib_var=yes"
3903 echo "configure: failed program was:" >&5
3904 cat conftest.
$ac_ext >&5
3906 eval "ac_cv_lib_$ac_lib_var=no"
3909 LIBS
="$ac_save_LIBS"
3912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3913 echo "$ac_t""yes" 1>&6
3914 save_LDFLAGS
="${save_LDFLAGS} -lintl"
3916 echo "$ac_t""no" 1>&6
3924 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3925 echo "configure:3926: checking for getopt_long" >&5
3926 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3929 cat > conftest.
$ac_ext <<EOF
3930 #line 3931 "configure"
3931 #include "confdefs.h"
3932 /* System header to define __stub macros and hopefully few prototypes,
3933 which can conflict with char getopt_long(); below. */
3935 /* Override any gcc2 internal prototype to avoid an error. */
3936 /* We use char because int might match the return type of a gcc2
3937 builtin and then its argument prototype would still apply. */
3942 /* The GNU C library defines this for functions which it implements
3943 to always fail with ENOSYS. Some functions are actually named
3944 something starting with __ and the normal name is an alias. */
3945 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3953 if { (eval echo configure
:3954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3955 eval "ac_cv_func_getopt_long=yes"
3957 echo "configure: failed program was:" >&5
3958 cat conftest.
$ac_ext >&5
3960 eval "ac_cv_func_getopt_long=no"
3965 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3966 echo "$ac_t""yes" 1>&6
3967 cat >> confdefs.h
<<\EOF
3968 #define HAVE_GETOPT_LONG 1
3972 echo "$ac_t""no" 1>&6
3973 # FreeBSD has a gnugetopt library for this:
3974 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3975 echo "configure:3976: checking for getopt_long in -lgnugetopt" >&5
3976 ac_lib_var
=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3980 ac_save_LIBS
="$LIBS"
3981 LIBS
="-lgnugetopt $LIBS"
3982 cat > conftest.
$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3985 /* Override any gcc2 internal prototype to avoid an error. */
3986 /* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */
3994 if { (eval echo configure
:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3996 eval "ac_cv_lib_$ac_lib_var=yes"
3998 echo "configure: failed program was:" >&5
3999 cat conftest.
$ac_ext >&5
4001 eval "ac_cv_lib_$ac_lib_var=no"
4004 LIBS
="$ac_save_LIBS"
4007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4008 echo "$ac_t""yes" 1>&6
4009 cat >> confdefs.h
<<\EOF
4010 #define HAVE_GETOPT_LONG 1
4012 vlc_LDFLAGS
="${vlc_LDFLAGS} -lgnugetopt"
4014 echo "$ac_t""no" 1>&6
4021 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4022 echo "configure:4023: checking return type of signal handlers" >&5
4023 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4026 cat > conftest.
$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 #include <sys/types.h>
4035 extern "C" void (*signal (int, void (*)(int)))(int);
4037 void (*signal ()) ();
4044 if { (eval echo configure
:4045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4046 ac_cv_type_signal
=void
4048 echo "configure: failed program was:" >&5
4049 cat conftest.
$ac_ext >&5
4051 ac_cv_type_signal
=int
4056 echo "$ac_t""$ac_cv_type_signal" 1>&6
4057 cat >> confdefs.h
<<EOF
4058 #define RETSIGTYPE $ac_cv_type_signal
4062 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4063 echo "configure:4064: checking for dlopen in -ldl" >&5
4064 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4068 ac_save_LIBS
="$LIBS"
4070 cat > conftest.
$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4073 /* Override any gcc2 internal prototype to avoid an error. */
4074 /* We use char because int might match the return type of a gcc2
4075 builtin and then its argument prototype would still apply. */
4082 if { (eval echo configure
:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4084 eval "ac_cv_lib_$ac_lib_var=yes"
4086 echo "configure: failed program was:" >&5
4087 cat conftest.
$ac_ext >&5
4089 eval "ac_cv_lib_$ac_lib_var=no"
4092 LIBS
="$ac_save_LIBS"
4095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4096 echo "$ac_t""yes" 1>&6
4097 vlc_LDFLAGS
="${vlc_LDFLAGS} -ldl"
4099 echo "$ac_t""no" 1>&6
4102 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4103 echo "configure:4104: checking for cos in -lm" >&5
4104 ac_lib_var
=`echo m'_'cos | sed 'y%./+-%__p_%'`
4105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4108 ac_save_LIBS
="$LIBS"
4110 cat > conftest.
$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 /* Override any gcc2 internal prototype to avoid an error. */
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4122 if { (eval echo configure
:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4124 eval "ac_cv_lib_$ac_lib_var=yes"
4126 echo "configure: failed program was:" >&5
4127 cat conftest.
$ac_ext >&5
4129 eval "ac_cv_lib_$ac_lib_var=no"
4132 LIBS
="$ac_save_LIBS"
4135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4136 echo "$ac_t""yes" 1>&6
4137 imdct_LDFLAGS
="${imdct_LDFLAGS} -lm"
4138 filter_distort_LDFLAGS
="${filter_distort_LDFLAGS} -lm"
4140 echo "$ac_t""no" 1>&6
4143 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4144 echo "configure:4145: checking for pow in -lm" >&5
4145 ac_lib_var
=`echo m'_'pow | sed 'y%./+-%__p_%'`
4146 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 ac_save_LIBS
="$LIBS"
4151 cat > conftest.
$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4154 /* Override any gcc2 internal prototype to avoid an error. */
4155 /* We use char because int might match the return type of a gcc2
4156 builtin and then its argument prototype would still apply. */
4163 if { (eval echo configure
:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4165 eval "ac_cv_lib_$ac_lib_var=yes"
4167 echo "configure: failed program was:" >&5
4168 cat conftest.
$ac_ext >&5
4170 eval "ac_cv_lib_$ac_lib_var=no"
4173 LIBS
="$ac_save_LIBS"
4176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4177 echo "$ac_t""yes" 1>&6
4178 imdct_LDFLAGS
="${imdct_LDFLAGS} -lm"
4179 imdct3dn_LDFLAGS
="${imdct3dn_LDFLAGS} -lm"
4180 imdctsse_LDFLAGS
="${imdctsse_LDFLAGS} -lm"
4181 chroma_i420_rgb_LDFLAGS
="${chroma_i420_rgb_LDFLAGS} -lm"
4184 echo "$ac_t""no" 1>&6
4189 if test "x${THREAD_LIB}" = xerror
; then
4190 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4191 echo "configure:4192: checking for pthread_attr_init in -lpthread" >&5
4192 ac_lib_var
=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4196 ac_save_LIBS
="$LIBS"
4197 LIBS
="-lpthread $LIBS"
4198 cat > conftest.
$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 /* Override any gcc2 internal prototype to avoid an error. */
4202 /* We use char because int might match the return type of a gcc2
4203 builtin and then its argument prototype would still apply. */
4204 char pthread_attr_init();
4210 if { (eval echo configure
:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4212 eval "ac_cv_lib_$ac_lib_var=yes"
4214 echo "configure: failed program was:" >&5
4215 cat conftest.
$ac_ext >&5
4217 eval "ac_cv_lib_$ac_lib_var=no"
4220 LIBS
="$ac_save_LIBS"
4223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4224 echo "$ac_t""yes" 1>&6
4225 THREAD_LIB
="-lpthread"
4227 echo "$ac_t""no" 1>&6
4231 if test "x${THREAD_LIB}" = xerror
; then
4232 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4233 echo "configure:4234: checking for pthread_attr_init in -lpthreads" >&5
4234 ac_lib_var
=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4238 ac_save_LIBS
="$LIBS"
4239 LIBS
="-lpthreads $LIBS"
4240 cat > conftest.
$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4243 /* Override any gcc2 internal prototype to avoid an error. */
4244 /* We use char because int might match the return type of a gcc2
4245 builtin and then its argument prototype would still apply. */
4246 char pthread_attr_init();
4252 if { (eval echo configure
:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4254 eval "ac_cv_lib_$ac_lib_var=yes"
4256 echo "configure: failed program was:" >&5
4257 cat conftest.
$ac_ext >&5
4259 eval "ac_cv_lib_$ac_lib_var=no"
4262 LIBS
="$ac_save_LIBS"
4265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4266 echo "$ac_t""yes" 1>&6
4267 THREAD_LIB
="-lpthreads"
4269 echo "$ac_t""no" 1>&6
4273 if test "x${THREAD_LIB}" = xerror
; then
4274 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4275 echo "configure:4276: checking for pthread_attr_init in -lc_r" >&5
4276 ac_lib_var
=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 ac_save_LIBS
="$LIBS"
4282 cat > conftest.
$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4285 /* Override any gcc2 internal prototype to avoid an error. */
4286 /* We use char because int might match the return type of a gcc2
4287 builtin and then its argument prototype would still apply. */
4288 char pthread_attr_init();
4294 if { (eval echo configure
:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4296 eval "ac_cv_lib_$ac_lib_var=yes"
4298 echo "configure: failed program was:" >&5
4299 cat conftest.
$ac_ext >&5
4301 eval "ac_cv_lib_$ac_lib_var=no"
4304 LIBS
="$ac_save_LIBS"
4307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4308 echo "$ac_t""yes" 1>&6
4311 echo "$ac_t""no" 1>&6
4315 if test "x${THREAD_LIB}" = xerror
; then
4316 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4317 echo "configure:4318: checking for pthread_attr_init" >&5
4318 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4321 cat > conftest.
$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 /* System header to define __stub macros and hopefully few prototypes,
4325 which can conflict with char pthread_attr_init(); below. */
4327 /* Override any gcc2 internal prototype to avoid an error. */
4328 /* We use char because int might match the return type of a gcc2
4329 builtin and then its argument prototype would still apply. */
4330 char pthread_attr_init();
4334 /* The GNU C library defines this for functions which it implements
4335 to always fail with ENOSYS. Some functions are actually named
4336 something starting with __ and the normal name is an alias. */
4337 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4340 pthread_attr_init();
4345 if { (eval echo configure
:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4347 eval "ac_cv_func_pthread_attr_init=yes"
4349 echo "configure: failed program was:" >&5
4350 cat conftest.
$ac_ext >&5
4352 eval "ac_cv_func_pthread_attr_init=no"
4357 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4358 echo "$ac_t""yes" 1>&6
4361 echo "$ac_t""no" 1>&6
4367 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4368 echo "configure:4369: checking for cthread_fork in -lthreads" >&5
4369 ac_lib_var
=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 ac_save_LIBS
="$LIBS"
4374 LIBS
="-lthreads $LIBS"
4375 cat > conftest.
$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4381 char cthread_fork();
4387 if { (eval echo configure
:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4389 eval "ac_cv_lib_$ac_lib_var=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.
$ac_ext >&5
4394 eval "ac_cv_lib_$ac_lib_var=no"
4397 LIBS
="$ac_save_LIBS"
4400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4402 THREAD_LIB
="-lthreads"
4404 echo "$ac_t""no" 1>&6
4408 cat > conftest.
$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4411 #include <pthread.h>
4413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4414 egrep "pthread_cond_t" >/dev
/null
2>&1; then
4417 cat >> confdefs.h
<<\EOF
4418 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4424 cat > conftest.
$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4427 #include <strings.h>
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 egrep "strncasecmp" >/dev
/null
2>&1; then
4433 cat >> confdefs.h
<<\EOF
4434 #define STRNCASECMP_IN_STRINGS_H 1
4441 for ac_hdr
in getopt.h
strings.h
4443 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4445 echo "configure:4446: checking for $ac_hdr" >&5
4446 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4449 cat > conftest.
$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4454 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4455 { (eval echo configure
:4456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4456 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4457 if test -z "$ac_err"; then
4459 eval "ac_cv_header_$ac_safe=yes"
4462 echo "configure: failed program was:" >&5
4463 cat conftest.
$ac_ext >&5
4465 eval "ac_cv_header_$ac_safe=no"
4469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4470 echo "$ac_t""yes" 1>&6
4471 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4472 cat >> confdefs.h
<<EOF
4473 #define $ac_tr_hdr 1
4477 echo "$ac_t""no" 1>&6
4481 for ac_hdr
in sys
/sockio.h fcntl.h sys
/types.h sys
/time.h sys
/times.h
4483 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4485 echo "configure:4486: checking for $ac_hdr" >&5
4486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4489 cat > conftest.
$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4494 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4495 { (eval echo configure
:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4496 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4497 if test -z "$ac_err"; then
4499 eval "ac_cv_header_$ac_safe=yes"
4502 echo "configure: failed program was:" >&5
4503 cat conftest.
$ac_ext >&5
4505 eval "ac_cv_header_$ac_safe=no"
4509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4512 cat >> confdefs.h
<<EOF
4513 #define $ac_tr_hdr 1
4517 echo "$ac_t""no" 1>&6
4521 for ac_hdr
in dlfcn.h image.h
4523 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4525 echo "configure:4526: checking for $ac_hdr" >&5
4526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4529 cat > conftest.
$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4534 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4535 { (eval echo configure
:4536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4536 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4537 if test -z "$ac_err"; then
4539 eval "ac_cv_header_$ac_safe=yes"
4542 echo "configure: failed program was:" >&5
4543 cat conftest.
$ac_ext >&5
4545 eval "ac_cv_header_$ac_safe=no"
4549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4550 echo "$ac_t""yes" 1>&6
4551 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4552 cat >> confdefs.h
<<EOF
4553 #define $ac_tr_hdr 1
4557 echo "$ac_t""no" 1>&6
4561 for ac_hdr
in arpa
/inet.h net
/if.h netinet
/in.h sys
/socket.h
4563 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4565 echo "configure:4566: checking for $ac_hdr" >&5
4566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 cat > conftest.
$ac_ext <<EOF
4570 #line 4571 "configure"
4571 #include "confdefs.h"
4574 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4575 { (eval echo configure
:4576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4576 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4577 if test -z "$ac_err"; then
4579 eval "ac_cv_header_$ac_safe=yes"
4582 echo "configure: failed program was:" >&5
4583 cat conftest.
$ac_ext >&5
4585 eval "ac_cv_header_$ac_safe=no"
4589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4590 echo "$ac_t""yes" 1>&6
4591 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4592 cat >> confdefs.h
<<EOF
4593 #define $ac_tr_hdr 1
4597 echo "$ac_t""no" 1>&6
4601 for ac_hdr
in machine
/param.h sys
/shm.h
4603 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_hdr" >&5
4606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4609 cat > conftest.
$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4614 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4615 { (eval echo configure
:4616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4616 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4617 if test -z "$ac_err"; then
4619 eval "ac_cv_header_$ac_safe=yes"
4622 echo "configure: failed program was:" >&5
4623 cat conftest.
$ac_ext >&5
4625 eval "ac_cv_header_$ac_safe=no"
4629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4630 echo "$ac_t""yes" 1>&6
4631 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4632 cat >> confdefs.h
<<EOF
4633 #define $ac_tr_hdr 1
4637 echo "$ac_t""no" 1>&6
4641 for ac_hdr
in linux
/version.h
4643 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4645 echo "configure:4646: checking for $ac_hdr" >&5
4646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4649 cat > conftest.
$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4654 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4655 { (eval echo configure
:4656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4656 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4657 if test -z "$ac_err"; then
4659 eval "ac_cv_header_$ac_safe=yes"
4662 echo "configure: failed program was:" >&5
4663 cat conftest.
$ac_ext >&5
4665 eval "ac_cv_header_$ac_safe=no"
4669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4670 echo "$ac_t""yes" 1>&6
4671 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4672 cat >> confdefs.h
<<EOF
4673 #define $ac_tr_hdr 1
4677 echo "$ac_t""no" 1>&6
4682 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4683 echo "configure:4684: checking whether time.h and sys/time.h may both be included" >&5
4684 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4687 cat > conftest.
$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4690 #include <sys/types.h>
4691 #include <sys/time.h>
4697 if { (eval echo configure
:4698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4699 ac_cv_header_time
=yes
4701 echo "configure: failed program was:" >&5
4702 cat conftest.
$ac_ext >&5
4704 ac_cv_header_time
=no
4709 echo "$ac_t""$ac_cv_header_time" 1>&6
4710 if test $ac_cv_header_time = yes; then
4711 cat >> confdefs.h
<<\EOF
4712 #define TIME_WITH_SYS_TIME 1
4718 for ac_hdr
in cthreads.h pthread.h kernel
/scheduler.h kernel
/OS.h
4720 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4722 echo "configure:4723: checking for $ac_hdr" >&5
4723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4726 cat > conftest.
$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4731 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4732 { (eval echo configure
:4733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4733 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4734 if test -z "$ac_err"; then
4736 eval "ac_cv_header_$ac_safe=yes"
4739 echo "configure: failed program was:" >&5
4740 cat conftest.
$ac_ext >&5
4742 eval "ac_cv_header_$ac_safe=no"
4746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4747 echo "$ac_t""yes" 1>&6
4748 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4749 cat >> confdefs.h
<<EOF
4750 #define $ac_tr_hdr 1
4754 echo "$ac_t""no" 1>&6
4759 if test x
$SYS != xmingw32
4761 if test x
$x_includes = xNONE
; then
4762 x_includes
=/usr
/X11R
6/include
4764 if test x
$x_libraries = xNONE
; then
4765 x_libraries
=/usr
/X11R
6/lib
4767 CPPFLAGS
="$save_CPPFLAGS -I$x_includes"
4768 for ac_hdr
in X11
/extensions
/dpms.h
4770 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4772 echo "configure:4773: checking for $ac_hdr" >&5
4773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4776 cat > conftest.
$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4781 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4782 { (eval echo configure
:4783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4783 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4784 if test -z "$ac_err"; then
4786 eval "ac_cv_header_$ac_safe=yes"
4789 echo "configure: failed program was:" >&5
4790 cat conftest.
$ac_ext >&5
4792 eval "ac_cv_header_$ac_safe=no"
4796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4797 echo "$ac_t""yes" 1>&6
4798 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4799 cat >> confdefs.h
<<EOF
4800 #define $ac_tr_hdr 1
4803 cat > conftest.
$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4806 #include <X11/extensions/dpms.h>
4808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4809 egrep "DPMSInfo" >/dev
/null
2>&1; then
4812 cat >> confdefs.h
<<\EOF
4813 #define DPMSINFO_IN_DPMS_H 1
4822 echo "$ac_t""no" 1>&6
4826 CPPFLAGS
="$save_CPPFLAGS"
4829 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4830 echo "configure:4831: checking for ntohl in sys/param.h" >&5
4831 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4834 CFLAGS
="${save_CFLAGS} -Wall -Werror"
4835 cat > conftest.
$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 #include <sys/param.h>
4840 void foo() { int meuh; ntohl(meuh); }
4843 if { (eval echo configure
:4844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4845 ac_cv_c_ntohl_sys_param_h
=yes
4847 echo "configure: failed program was:" >&5
4848 cat conftest.
$ac_ext >&5
4850 ac_cv_c_ntohl_sys_param_h
=no
4855 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4856 if test x
"$ac_cv_c_ntohl_sys_param_h" != x
"no"; then
4857 cat >> confdefs.h
<<\EOF
4858 #define NTOHL_IN_SYS_PARAM_H 1
4863 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4864 echo "configure:4865: checking if \$CC accepts -finline-limit" >&5
4865 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4868 CFLAGS
="${save_CFLAGS} -finline-limit-30000"
4869 cat > conftest.
$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4877 if { (eval echo configure
:4878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4879 ac_cv_c_inline_limit
=yes
4881 echo "configure: failed program was:" >&5
4882 cat conftest.
$ac_ext >&5
4884 ac_cv_c_inline_limit
=no
4889 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4890 if test x
"$ac_cv_c_inline_limit" != x
"no"; then
4891 save_CFLAGS
="${save_CFLAGS} -finline-limit-30000"
4894 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4895 echo "configure:4896: checking if \$CC accepts -Wall -Winline" >&5
4896 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4899 CFLAGS
="${save_CFLAGS} -Wall -Winline"
4900 cat > conftest.
$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4908 if { (eval echo configure
:4909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4910 ac_cv_c_Wall_Winline
=yes
4912 echo "configure: failed program was:" >&5
4913 cat conftest.
$ac_ext >&5
4915 ac_cv_c_Wall_Winline
=no
4920 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4921 if test x
"$ac_cv_c_Wall_Winline" != x
"no"; then
4922 save_CFLAGS
="${save_CFLAGS} -Wall -Winline"
4924 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4925 echo "configure:4926: checking if \$CC accepts -wall -winline" >&5
4926 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4929 CFLAGS
="${save_CFLAGS} -wall -winline"
4930 cat > conftest.
$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4938 if { (eval echo configure
:4939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4940 ac_cv_c_wall_winline
=yes
4942 echo "configure: failed program was:" >&5
4943 cat conftest.
$ac_ext >&5
4945 ac_cv_c_wall_winline
=no
4950 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4951 if test x
"$ac_cv_c_wall_winline" != x
"no"; then
4952 save_CFLAGS
="${save_CFLAGS} -wall -winline"
4956 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4957 echo "configure:4958: checking if \$CC accepts -pipe" >&5
4958 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4961 CFLAGS
="${save_CFLAGS} -pipe"
4962 cat > conftest.
$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4970 if { (eval echo configure
:4971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4974 echo "configure: failed program was:" >&5
4975 cat conftest.
$ac_ext >&5
4982 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4983 if test x
"$ac_cv_c_pipe" != x
"no"; then
4984 save_CFLAGS
="${save_CFLAGS} -pipe"
4987 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4988 echo "configure:4989: checking if \$CC accepts -O3" >&5
4989 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4990 echo $ac_n "(cached) $ac_c" 1>&6
4992 CFLAGS
="${save_CFLAGS} -O3"
4993 cat > conftest.
$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
5001 if { (eval echo configure
:5002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5005 echo "configure: failed program was:" >&5
5006 cat conftest.
$ac_ext >&5
5013 echo "$ac_t""$ac_cv_c_o3" 1>&6
5014 if test x
"$ac_cv_c_o3" != x
"no"; then
5015 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -O3"
5017 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5018 echo "configure:5019: checking if \$CC accepts -O2" >&5
5019 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 CFLAGS
="${save_CFLAGS} -O2"
5023 cat > conftest.
$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5031 if { (eval echo configure
:5032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5035 echo "configure: failed program was:" >&5
5036 cat conftest.
$ac_ext >&5
5043 echo "$ac_t""$ac_cv_c_o2" 1>&6
5044 if test x
"$ac_cv_c_o2" != x
"no"; then
5045 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -O2"
5047 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5048 echo "configure:5049: checking if \$CC accepts -O" >&5
5049 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5050 echo $ac_n "(cached) $ac_c" 1>&6
5052 CFLAGS
="${save_CFLAGS} -O"
5053 cat > conftest.
$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5061 if { (eval echo configure
:5062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5065 echo "configure: failed program was:" >&5
5066 cat conftest.
$ac_ext >&5
5073 echo "$ac_t""$ac_cv_c_o" 1>&6
5074 if test x
"$ac_cv_c_o" != x
"no"; then
5075 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -O"
5080 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5081 echo "configure:5082: checking if \$CC accepts -ffast-math" >&5
5082 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5085 CFLAGS
="${save_CFLAGS} -ffast-math"
5086 cat > conftest.
$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5094 if { (eval echo configure
:5095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5096 ac_cv_c_fast_math
=yes
5098 echo "configure: failed program was:" >&5
5099 cat conftest.
$ac_ext >&5
5101 ac_cv_c_fast_math
=no
5106 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5107 if test x
"$ac_cv_c_fast_math" != x
"no"; then
5108 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -ffast-math"
5111 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5112 echo "configure:5113: checking if \$CC accepts -funroll-loops" >&5
5113 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5116 CFLAGS
="${save_CFLAGS} -funroll-loops"
5117 cat > conftest.
$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5125 if { (eval echo configure
:5126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5127 ac_cv_c_unroll_loops
=yes
5129 echo "configure: failed program was:" >&5
5130 cat conftest.
$ac_ext >&5
5132 ac_cv_c_unroll_loops
=no
5137 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5138 if test x
"$ac_cv_c_unroll_loops" != x
"no"; then
5139 CFLAGS_OPTIM
="${CFLAGS_OPTIM} -funroll-loops"
5142 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5143 echo "configure:5144: checking if \$CC accepts -fomit-frame-pointer" >&5
5144 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5145 echo $ac_n "(cached) $ac_c" 1>&6
5147 CFLAGS
="${save_CFLAGS} -fomit-frame-pointer"
5148 cat > conftest.
$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5156 if { (eval echo configure
:5157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5158 ac_cv_c_omit_frame_pointer
=yes
5160 echo "configure: failed program was:" >&5
5161 cat conftest.
$ac_ext >&5
5163 ac_cv_c_omit_frame_pointer
=no
5168 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5169 if test x
"$ac_cv_c_omit_frame_pointer" != x
"no"; then
5170 CFLAGS_OPTIM_NODEBUG
="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5173 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5174 echo "configure:5175: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5175 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5178 CFLAGS
="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5179 cat > conftest.
$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5187 if { (eval echo configure
:5188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5191 echo "configure: failed program was:" >&5
5192 cat conftest.
$ac_ext >&5
5199 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5200 if test x
"$ac_cv_ld_darwin" != x
"no"; then
5201 plugins_LDFLAGS
="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5204 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5205 echo "configure:5206: checking if \$CC accepts -shared" >&5
5206 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5207 echo $ac_n "(cached) $ac_c" 1>&6
5209 CFLAGS
="${save_CFLAGS} -shared"
5210 cat > conftest.
$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5218 if { (eval echo configure
:5219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5220 ac_cv_ld_plugins
=yes
5222 echo "configure: failed program was:" >&5
5223 cat conftest.
$ac_ext >&5
5230 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5231 if test x
"$ac_cv_ld_plugins" != x
"no"; then
5232 plugins_LDFLAGS
="${plugins_LDFLAGS} -shared"
5235 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5236 echo "configure:5237: checking __attribute__ ((aligned ())) support" >&5
5237 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 ac_cv_c_attribute_aligned
=0
5241 CFLAGS
="${save_CFLAGS} -Werror"
5242 for ac_cv_c_attr_align_try
in 2 4 8 16 32 64; do
5243 cat > conftest.
$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5248 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5251 if { (eval echo configure
:5252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5253 ac_cv_c_attribute_aligned
=$ac_cv_c_attr_align_try
5255 echo "configure: failed program was:" >&5
5256 cat conftest.
$ac_ext >&5
5262 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5263 if test x
"$ac_cv_c_attribute_aligned" != x
"0"; then
5264 cat >> confdefs.h
<<EOF
5265 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5270 CFLAGS
="${save_CFLAGS}"
5271 CPPFLAGS
="${save_CPPFLAGS}"
5272 LDFLAGS
="${save_LDFLAGS}"
5274 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5275 echo "configure:5276: checking for boolean_t in sys/types.h" >&5
5276 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6
5279 cat > conftest.
$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5282 #include <sys/types.h>
5287 if { (eval echo configure
:5288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5289 ac_cv_c_boolean_t_sys_types_h
=yes
5291 echo "configure: failed program was:" >&5
5292 cat conftest.
$ac_ext >&5
5294 ac_cv_c_boolean_t_sys_types_h
=no
5299 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5300 if test x
"$ac_cv_c_boolean_t_sys_types_h" != x
"no"; then
5301 cat >> confdefs.h
<<\EOF
5302 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5307 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5308 echo "configure:5309: checking for boolean_t in pthread.h" >&5
5309 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5310 echo $ac_n "(cached) $ac_c" 1>&6
5312 cat > conftest.
$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5315 #include <pthread.h>
5320 if { (eval echo configure
:5321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5322 ac_cv_c_boolean_t_pthread_h
=yes
5324 echo "configure: failed program was:" >&5
5325 cat conftest.
$ac_ext >&5
5327 ac_cv_c_boolean_t_pthread_h
=no
5332 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5333 if test x
"$ac_cv_c_boolean_t_pthread_h" != x
"no"; then
5334 cat >> confdefs.h
<<\EOF
5335 #define BOOLEAN_T_IN_PTHREAD_H 1
5340 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5341 echo "configure:5342: checking for boolean_t in cthreads.h" >&5
5342 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 cat > conftest.
$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 #include <cthreads.h>
5353 if { (eval echo configure
:5354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5355 ac_cv_c_boolean_t_cthreads_h
=yes
5357 echo "configure: failed program was:" >&5
5358 cat conftest.
$ac_ext >&5
5360 ac_cv_c_boolean_t_cthreads_h
=no
5365 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5366 if test x
"$ac_cv_c_boolean_t_cthreads_h" != x
"no"; then
5367 cat >> confdefs.h
<<\EOF
5368 #define BOOLEAN_T_IN_CTHREADS_H 1
5373 case x
"${target_cpu}" in
5378 ARCH
="${target_cpu}"
5382 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"
5383 PLUGINS
="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort fx_scope"
5385 MMX_MODULES
="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5386 MMXEXT_MODULES
="memcpymmxext idctmmxext motionmmxext"
5387 THREEDNOW_MODULES
="memcpy3dn imdct3dn downmix3dn"
5388 SSE_MODULES
="imdctsse downmixsse"
5389 ALTIVEC_MODULES
="idctaltivec motionaltivec memcpyaltivec"
5391 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5392 echo "configure:5393: checking if \$CC groks MMX inline assembly" >&5
5393 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 cat > conftest.
$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5401 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5404 if { (eval echo configure
:5405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5406 ac_cv_mmx_inline
=yes
5408 echo "configure: failed program was:" >&5
5409 cat conftest.
$ac_ext >&5
5416 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5417 if test x
"$ac_cv_mmx_inline" != x
"no"; then
5418 ACCEL_MODULES
="${ACCEL_MODULES} ${MMX_MODULES}"
5421 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5422 echo "configure:5423: checking if \$CC groks MMX EXT inline assembly" >&5
5423 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5426 cat > conftest.
$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5431 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5434 if { (eval echo configure
:5435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5436 ac_cv_mmxext_inline
=yes
5438 echo "configure: failed program was:" >&5
5439 cat conftest.
$ac_ext >&5
5441 ac_cv_mmxext_inline
=no
5446 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5447 if test x
"$ac_cv_mmxext_inline" != x
"no"; then
5448 ACCEL_MODULES
="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5451 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5452 echo "configure:5453: checking if \$CC groks 3D Now! inline assembly" >&5
5453 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5456 cat > conftest.
$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5461 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5464 if { (eval echo configure
:5465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5466 ac_cv_3dnow_inline
=yes
5468 echo "configure: failed program was:" >&5
5469 cat conftest.
$ac_ext >&5
5471 ac_cv_3dnow_inline
=no
5476 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5477 if test x
"$ac_cv_3dnow_inline" != x
"no"; then
5478 cat >> confdefs.h
<<\EOF
5479 #define CAN_COMPILE_3DNOW 1
5482 ACCEL_MODULES
="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5485 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5486 echo "configure:5487: checking if \$CC groks SSE inline assembly" >&5
5487 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5490 cat > conftest.
$ac_ext <<EOF
5491 #line 5492 "configure"
5492 #include "confdefs.h"
5495 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5498 if { (eval echo configure
:5499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5500 ac_cv_sse_inline
=yes
5502 echo "configure: failed program was:" >&5
5503 cat conftest.
$ac_ext >&5
5510 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5511 if test x
"$ac_cv_sse_inline" != x
"no" -a x
$SYS != xmingw32
; then
5512 cat >> confdefs.h
<<\EOF
5513 #define CAN_COMPILE_SSE 1
5516 ACCEL_MODULES
="${ACCEL_MODULES} ${SSE_MODULES}"
5519 # don't try to grok altivec with native mingw32 it doesn't work right now
5520 # we should be able to remove this test with future versions of mingw32
5521 if test x
$SYS != xmingw32
; then
5522 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5523 echo "configure:5524: checking if \$CC groks Altivec inline assembly" >&5
5524 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5527 cat > conftest.
$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5532 asm volatile("vperm 0,1,2,3");
5535 if { (eval echo configure
:5536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5537 ac_cv_altivec_inline
=yes
5539 echo "configure: failed program was:" >&5
5540 cat conftest.
$ac_ext >&5
5543 CFLAGS
="$CFLAGS -Wa,-m7400"
5544 cat > conftest.
$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5549 asm volatile("vperm 0,1,2,3");
5552 if { (eval echo configure
:5553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5554 ac_cv_altivec_inline
="-Wa,-m7400"
5556 echo "configure: failed program was:" >&5
5557 cat conftest.
$ac_ext >&5
5559 ac_cv_altivec_inline
=no
5568 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5569 if test x
"$ac_cv_altivec_inline" != x
"no"; then
5570 cat >> confdefs.h
<<\EOF
5571 #define CAN_COMPILE_ALTIVEC 1
5574 if test x
"$ac_cv_altivec_inline" != x
"yes"; then
5575 idctaltivec_CFLAGS
="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5576 motionaltivec_CFLAGS
="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5577 memcpyaltivec_CFLAGS
="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5578 vlc_CFLAGS
="$vlc_CFLAGS $ac_cv_altivec_inline"
5580 ACCEL_MODULES
="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5583 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5584 echo "configure:5585: checking if \$CC groks Altivec C extensions" >&5
5585 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5589 CFLAGS
="$CFLAGS -faltivec"
5591 cat > conftest.
$ac_ext <<EOF
5592 #line 5593 "configure"
5593 #include "confdefs.h"
5596 vec_mtvscr((vector unsigned int)(0));
5599 if { (eval echo configure
:5600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5601 ac_cv_c_altivec
=-faltivec
5603 echo "configure: failed program was:" >&5
5604 cat conftest.
$ac_ext >&5
5608 CFLAGS
="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5609 cat > conftest.
$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5614 vec_mtvscr((vector unsigned int)(0));
5617 if { (eval echo configure
:5618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5619 ac_cv_c_altivec
="-fvec"
5621 echo "configure: failed program was:" >&5
5622 cat conftest.
$ac_ext >&5
5634 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5635 if test x
"$ac_cv_c_altivec" != x
"no"; then
5636 cat >> confdefs.h
<<\EOF
5637 #define CAN_COMPILE_C_ALTIVEC 1
5640 idctaltivec_CFLAGS
="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5641 motionaltivec_CFLAGS
="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5642 memcpyaltivec_CFLAGS
="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5643 vlc_CFLAGS
="$vlc_CFLAGS $ac_cv_c_altivec"
5644 ACCEL_MODULES
="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5647 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5648 echo "configure:5649: checking if linker needs -framework vecLib" >&5
5649 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5652 save_LDFLAGS
=$LDFLAGS
5653 LDFLAGS
="$LDFLAGS -framework vecLib"
5654 cat > conftest.
$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5662 if { (eval echo configure
:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5664 ac_cv_ld_altivec
=yes
5666 echo "configure: failed program was:" >&5
5667 cat conftest.
$ac_ext >&5
5672 LDFLAGS
=$save_LDFLAGS
5676 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5677 if test x
"$ac_cv_ld_altivec" != x
"no"; then
5678 idctaltivec_LDFLAGS
="${idctaltivec_LDFLAGS} -framework vecLib"
5679 motionaltivec_LDFLAGS
="${motionaltivec_LDFLAGS} -framework vecLib"
5680 memcpyaltivec_LDFLAGS
="${memcpyaltivec_LDFLAGS} -framework vecLib"
5681 vlc_LDFLAGS
="${vlc_LDFLAGS} -framework vecLib"
5686 # Check whether --with- or --without- was given.
5687 if test "${with_+set}" = set; then
5692 # Check whether --with- or --without- was given.
5693 if test "${with_+set}" = set; then
5699 # Check whether --with-tuning or --without-tuning was given.
5700 if test "${with_tuning+set}" = set; then
5701 withval
="$with_tuning"
5705 if test "x$with_tuning" != "x"; then
5706 TUNING
="$with_tuning"
5708 if test x
${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386
; then TUNING
="pentiumpro"
5710 if test x
${target_cpu} = xpowerpc
; then TUNING
="750"; fi
5714 if test x
${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5717 BUILTINS
="${BUILTINS} ${ACCEL_MODULES}"
5720 # Check whether --enable-optimizations or --disable-optimizations was given.
5721 if test "${enable_optimizations+set}" = set; then
5722 enableval
="$enable_optimizations"
5723 if test x
$enable_optimizations = xno
; then OPTIMS
=0; fi
5729 # Check whether --enable-altivec or --disable-altivec was given.
5730 if test "${enable_altivec+set}" = set; then
5731 enableval
="$enable_altivec"
5732 if test x
$enable_altivec = xyes
; then ARCH
="${ARCH} altivec";
5733 BUILTINS
="${BUILTINS} ${ACCEL_MODULES}"; fi
5735 if test x
${target_cpu} = xpowerpc
; then ARCH
="${ARCH} altivec";
5736 BUILTINS
="${BUILTINS} ${ACCEL_MODULES}"; fi
5741 # Check whether --enable-debug or --disable-debug was given.
5742 if test "${enable_debug+set}" = set; then
5743 enableval
="$enable_debug"
5744 if test x
$enable_debug = xyes
; then DEBUG
=1; fi
5749 # Check whether --enable-release or --disable-release was given.
5750 if test "${enable_release+set}" = set; then
5751 enableval
="$enable_release"
5752 if test x
$enable_release = xyes
; then RELEASE
=1; fi
5754 VERSION
="${VERSION}_`date +%Y-%m-%d`"
5759 # Check whether --with- or --without- was given.
5760 if test "${with_+set}" = set; then
5766 # Check whether --enable-dvd or --disable-dvd was given.
5767 if test "${enable_dvd+set}" = set; then
5768 enableval
="$enable_dvd"
5772 if test "x$enable_dvd" != "xno"
5774 # Check whether --with-dvdcss or --without-dvdcss was given.
5775 if test "${with_dvdcss+set}" = set; then
5776 withval
="$with_dvdcss"
5780 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5781 if test "${with_dvdcss_tree+set}" = set; then
5782 withval
="$with_dvdcss_tree"
5786 case "x$with_dvdcss" in
5788 if test "x$with_dvdcss_tree" = x
5790 for ac_hdr
in dvdcss
/dvdcss.h
5792 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5794 echo "configure:5795: checking for $ac_hdr" >&5
5795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5796 echo $ac_n "(cached) $ac_c" 1>&6
5798 cat > conftest.
$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5803 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5804 { (eval echo configure
:5805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5805 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5806 if test -z "$ac_err"; then
5808 eval "ac_cv_header_$ac_safe=yes"
5811 echo "configure: failed program was:" >&5
5812 cat conftest.
$ac_ext >&5
5814 eval "ac_cv_header_$ac_safe=no"
5818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5819 echo "$ac_t""yes" 1>&6
5820 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5821 cat >> confdefs.h
<<EOF
5822 #define $ac_tr_hdr 1
5824 PLUGINS
="${PLUGINS} dvd"
5825 dvd_LDFLAGS
="${dvd_LDFLAGS} -ldvdcss"
5827 echo "$ac_t""no" 1>&6
5828 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
5829 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5834 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5835 echo "configure:5836: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5836 real_dvdcss_tree
="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5837 if test "x$real_dvdcss_tree" = x
5839 echo "$ac_t""no" 1>&6
5840 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5842 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5844 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5845 BUILTINS
="${BUILTINS} dvd"
5846 dvd_LDFLAGS
="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5847 dvd_CFLAGS
="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5849 echo "$ac_t""no" 1>&6
5850 { 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; }
5855 PLUGINS="${PLUGINS} dvd
"
5856 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5857 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5860 echo $ac_n "checking
for dvdcss headers
in ${with_dvdcss}""...
$ac_c" 1>&6
5861 echo "configure
:5862: checking
for dvdcss headers
in ${with_dvdcss}" >&5
5862 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5864 echo "$ac_t""yes" 1>&6
5865 PLUGINS="${PLUGINS} dvd
"
5866 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib
-ldvdcss"
5867 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include
"
5869 echo "$ac_t""no
" 1>&6
5870 { echo "configure
: error
: cannot
find ${with_dvdcss}/include
/dvdcss
/dvdcss.h
" 1>&2; exit 1; }
5876 # Check whether --enable-dvdread or --disable-dvdread was given.
5877 if test "${enable_dvdread+set}" = set; then
5878 enableval="$enable_dvdread"
5882 if test "x
$enable_dvdread" != "xno
"
5884 # Check whether --with-dvdread or --without-dvdread was given.
5885 if test "${with_dvdread+set}" = set; then
5886 withval="$with_dvdread"
5890 if test "x
$with_dvdread" = x
5895 test_LDFLAGS="-L${with_dvdread}/lib
"
5896 test_CFLAGS="-I${with_dvdread}/include
"
5898 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5899 for ac_hdr in dvdread/dvd_reader.h
5901 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5902 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5903 echo "configure
:5904: checking
for $ac_hdr" >&5
5904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5905 echo $ac_n "(cached
) $ac_c" 1>&6
5907 cat > conftest.$ac_ext <<EOF
5908 #line 5909 "configure
"
5909 #include "confdefs.h
"
5912 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5913 { (eval echo configure:5914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5915 if test -z "$ac_err"; then
5917 eval "ac_cv_header_
$ac_safe=yes"
5920 echo "configure
: failed program was
:" >&5
5921 cat conftest.$ac_ext >&5
5923 eval "ac_cv_header_
$ac_safe=no
"
5927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5928 echo "$ac_t""yes" 1>&6
5929 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5930 cat >> confdefs.h <<EOF
5931 #define $ac_tr_hdr 1
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure
"
5936 #include "confdefs.h
"
5937 #include <dvdread/dvd_reader.h>
5939 void foo() { int i=DVD_VIDEO_LB_LEN; }
5942 if { (eval echo configure:5943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5945 PLUGINS="${PLUGINS} dvdread
"
5946 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
5947 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
5950 echo "configure
: failed program was
:" >&5
5951 cat conftest.$ac_ext >&5
5954 if test "x
$enable_dvdread" != x
5956 { 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; }
5963 echo "$ac_t""no
" 1>&6
5964 if test "x
$enable_dvdread" != x
5966 if test "x
$with_dvdread" != x
5968 { echo "configure
: error
: Cannot
find dvdread
/dvd_reader.h
in ${with_dvdread}/include
" 1>&2; exit 1; }
5970 { echo "configure
: error
: Cannot
find dvdread
/dvd_reader.h
" 1>&2; exit 1; }
5977 CPPFLAGS="$save_CPPFLAGS"
5980 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
5981 if test "${enable_dvbpsi+set}" = set; then
5982 enableval="$enable_dvbpsi"
5986 if test "x
$enable_dvbpsi" != "xno
"
5988 # Check whether --with-dvbpsi or --without-dvbpsi was given.
5989 if test "${with_dvbpsi+set}" = set; then
5990 withval="$with_dvbpsi"
5994 if test "x
$with_dvbpsi" = x
5999 test_LDFLAGS="-L${with_dvbpsi}/lib
"
6000 test_CFLAGS="-I${with_dvbpsi}/include
"
6002 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6003 ac_safe=`echo "dvbpsi
/dvbpsi.h
" | sed 'y%./+-%__p_%'`
6004 echo $ac_n "checking
for dvbpsi
/dvbpsi.h
""...
$ac_c" 1>&6
6005 echo "configure
:6006: checking
for dvbpsi
/dvbpsi.h
" >&5
6006 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6007 echo $ac_n "(cached
) $ac_c" 1>&6
6009 cat > conftest.$ac_ext <<EOF
6010 #line 6011 "configure
"
6011 #include "confdefs.h
"
6012 #include <dvbpsi/dvbpsi.h>
6014 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6015 { (eval echo configure:6016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6017 if test -z "$ac_err"; then
6019 eval "ac_cv_header_
$ac_safe=yes"
6022 echo "configure
: failed program was
:" >&5
6023 cat conftest.$ac_ext >&5
6025 eval "ac_cv_header_
$ac_safe=no
"
6029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6030 echo "$ac_t""yes" 1>&6
6032 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi
"
6033 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6034 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6037 echo "$ac_t""no
" 1>&6
6039 if test "x
$enable_dvbpsi" != x
6041 { echo "configure
: error
: Could not
find libdvbpsi on your system
: you may get it from www.videolan.org
" 1>&2; exit 1; }
6046 CPPFLAGS="$save_CPPFLAGS"
6049 # Check whether --enable-vcd or --disable-vcd was given.
6050 if test "${enable_vcd+set}" = set; then
6051 enableval="$enable_vcd"
6056 if test x$enable_vcd != xno
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure
"
6060 #include "confdefs.h
"
6061 #include <linux/cdrom.h>
6063 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6064 egrep "cdrom_msf0
" >/dev/null 2>&1; then
6067 PLUGINS="${PLUGINS} vcd
"
6073 cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure
"
6075 #include "confdefs.h
"
6076 #include <sys/cdio.h>
6078 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6079 egrep "ioc_toc_header
" >/dev/null 2>&1; then
6082 PLUGINS="${PLUGINS} vcd
"
6083 cat >> confdefs.h <<\EOF
6084 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6092 if test "x
${SYS}" = "xbsdi
"
6094 PLUGINS="${PLUGINS} vcd
"
6097 if test "x
${SYS}" = "xdarwin
"
6099 PLUGINS="${PLUGINS} vcd
"
6100 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit
-framework CoreFoundation
"
6104 # Check whether --enable-satellite or --disable-satellite was given.
6105 if test "${enable_satellite+set}" = set; then
6106 enableval="$enable_satellite"
6107 if test x$enable_satellite = xyes
6109 PLUGINS="${PLUGINS} satellite
"
6114 echo $ac_n "checking
for inet_pton
""...
$ac_c" 1>&6
6115 echo "configure
:6116: checking
for inet_pton
" >&5
6116 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6117 echo $ac_n "(cached
) $ac_c" 1>&6
6119 cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure
"
6121 #include "confdefs.h
"
6122 /* System header to define __stub macros and hopefully few prototypes,
6123 which can conflict with char inet_pton(); below. */
6125 /* Override any gcc2 internal prototype to avoid an error. */
6126 /* We use char because int might match the return type of a gcc2
6127 builtin and then its argument prototype would still apply. */
6132 /* The GNU C library defines this for functions which it implements
6133 to always fail with ENOSYS. Some functions are actually named
6134 something starting with __ and the normal name is an alias. */
6135 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6143 if { (eval echo configure:6144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6145 eval "ac_cv_func_inet_pton
=yes"
6147 echo "configure
: failed program was
:" >&5
6148 cat conftest.$ac_ext >&5
6150 eval "ac_cv_func_inet_pton
=no
"
6155 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6156 echo "$ac_t""yes" 1>&6
6157 PLUGINS="${PLUGINS} ipv6
"
6159 echo "$ac_t""no
" 1>&6
6163 # Check whether --enable-avi or --disable-avi was given.
6164 if test "${enable_avi+set}" = set; then
6165 enableval="$enable_avi"
6169 if test x$enable_avi != xno
6171 PLUGINS="${PLUGINS} avi
"
6175 # Check whether --with- or --without- was given.
6176 if test "${with_+set}" = set; then
6182 # Check whether --enable-mad or --disable-mad was given.
6183 if test "${enable_mad+set}" = set; then
6184 enableval="$enable_mad"
6188 if test x$enable_mad = xyes
6190 PLUGINS="${PLUGINS} mad
"
6191 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6192 # Check whether --with-mad or --without-mad was given.
6193 if test "${with_mad+set}" = set; then
6195 if test "x
$with_mad" != "xno
" -a "x
$with_mad" != "x
"
6197 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include
"
6198 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib
"
6203 save_LDFLAGS=$LDFLAGS
6204 CFLAGS="$CFLAGS $mad_CFLAGS"
6205 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
6208 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6209 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
6210 echo "configure
:6211: checking
for $ac_hdr" >&5
6211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6212 echo $ac_n "(cached
) $ac_c" 1>&6
6214 cat > conftest.$ac_ext <<EOF
6215 #line 6216 "configure
"
6216 #include "confdefs.h
"
6219 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6220 { (eval echo configure:6221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6222 if test -z "$ac_err"; then
6224 eval "ac_cv_header_
$ac_safe=yes"
6227 echo "configure
: failed program was
:" >&5
6228 cat conftest.$ac_ext >&5
6230 eval "ac_cv_header_
$ac_safe=no
"
6234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6235 echo "$ac_t""yes" 1>&6
6236 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6237 cat >> confdefs.h <<EOF
6238 #define $ac_tr_hdr 1
6242 echo "$ac_t""no
" 1>&6
6243 echo "Cannot
find development headers
for libmad...
"
6249 echo $ac_n "checking
for mad_bit_init
in -lmad""...
$ac_c" 1>&6
6250 echo "configure
:6251: checking
for mad_bit_init
in -lmad" >&5
6251 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6253 echo $ac_n "(cached
) $ac_c" 1>&6
6255 ac_save_LIBS="$LIBS"
6257 cat > conftest.$ac_ext <<EOF
6258 #line 6259 "configure
"
6259 #include "confdefs.h
"
6260 /* Override any gcc2 internal prototype to avoid an error. */
6261 /* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6263 char mad_bit_init();
6269 if { (eval echo configure:6270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6271 eval "ac_cv_lib_
$ac_lib_var=yes"
6273 echo "configure
: failed program was
:" >&5
6274 cat conftest.$ac_ext >&5
6276 eval "ac_cv_lib_
$ac_lib_var=no
"
6279 LIBS="$ac_save_LIBS"
6282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6283 echo "$ac_t""yes" 1>&6
6284 ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6285 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6286 cat >> confdefs.h <<EOF
6287 #define $ac_tr_lib 1
6293 echo "$ac_t""no
" 1>&6
6294 echo "Cannot
find libmad library...
"
6300 LDFLAGS=$save_LDFLAGS
6303 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6304 if test "${enable_ffmpeg+set}" = set; then
6305 enableval="$enable_ffmpeg"
6309 if test "x
$enable_ffmpeg" = "xyes
"
6311 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6312 if test "${with_ffmpeg_tree+set}" = set; then
6313 withval="$with_ffmpeg_tree"
6317 if test "x
$with_ffmpeg_tree" = x
6319 { echo "configure
: error
: cannot
find ${real_ffmpeg_tree}/libavcodec
/libavcodec.a
" 1>&2; exit 1; }
6321 echo $ac_n "checking
for libavcodec.a
in ${with_ffmpeg_tree}""...
$ac_c" 1>&6
6322 echo "configure
:6323: checking
for libavcodec.a
in ${with_ffmpeg_tree}" >&5
6323 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6324 if test "x
$real_ffmpeg_tree" = x
6326 echo "$ac_t""no
" 1>&6
6327 { echo "configure
: error
: cannot
cd to
${with_ffmpeg_tree}" 1>&2; exit 1; }
6329 if test -f "${real_ffmpeg_tree}/libavcodec
/libavcodec.a
"
6331 echo "$ac_t""${real_ffmpeg_tree}/libavcodec
/libavcodec.a
" 1>&6
6332 BUILTINS="${BUILTINS} ffmpeg
"
6333 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec
/libavcodec.a
"
6334 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec
"
6336 echo "$ac_t""no
" 1>&6
6337 { echo "configure
: error
: cannot
find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6343 if test x
$SYS = xbeos
6345 PLUGINS
="${PLUGINS} beos"
6348 # Check whether --enable-a52 or --disable-a52 was given.
6349 if test "${enable_a52+set}" = set; then
6350 enableval
="$enable_a52"
6354 if test "x$enable_a52" != "xno" -a x
$SYS != xmingw32
6356 for ac_hdr
in a52dec
/a52.h
6358 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6359 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6360 echo "configure:6361: checking for $ac_hdr" >&5
6361 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6362 echo $ac_n "(cached) $ac_c" 1>&6
6364 cat > conftest.
$ac_ext <<EOF
6365 #line 6366 "configure"
6366 #include "confdefs.h"
6369 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6370 { (eval echo configure
:6371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6371 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6372 if test -z "$ac_err"; then
6374 eval "ac_cv_header_$ac_safe=yes"
6377 echo "configure: failed program was:" >&5
6378 cat conftest.
$ac_ext >&5
6380 eval "ac_cv_header_$ac_safe=no"
6384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6385 echo "$ac_t""yes" 1>&6
6386 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6387 cat >> confdefs.h
<<EOF
6388 #define $ac_tr_hdr 1
6391 BUILTINS
="${BUILTINS} a52"
6392 a52_LDFLAGS
="${a52_LDFLAGS} -la52 -lm"
6395 echo "$ac_t""no" 1>&6
6401 # Check whether --enable-vorbis or --disable-vorbis was given.
6402 if test "${enable_vorbis+set}" = set; then
6403 enableval
="$enable_vorbis"
6407 if test "x$enable_vorbis" != "xno"
6409 for ac_hdr
in ogg
/ogg.h
6411 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6412 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6413 echo "configure:6414: checking for $ac_hdr" >&5
6414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6415 echo $ac_n "(cached) $ac_c" 1>&6
6417 cat > conftest.
$ac_ext <<EOF
6418 #line 6419 "configure"
6419 #include "confdefs.h"
6422 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6423 { (eval echo configure
:6424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6424 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6425 if test -z "$ac_err"; then
6427 eval "ac_cv_header_$ac_safe=yes"
6430 echo "configure: failed program was:" >&5
6431 cat conftest.
$ac_ext >&5
6433 eval "ac_cv_header_$ac_safe=no"
6437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6438 echo "$ac_t""yes" 1>&6
6439 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6440 cat >> confdefs.h
<<EOF
6441 #define $ac_tr_hdr 1
6444 #PLUGINS="${PLUGINS} vorbis"
6445 vorbis_LDFLAGS
="${vorbis_LDFLAGS} -lvorbis"
6448 echo "$ac_t""no" 1>&6
6455 # Check whether --with- or --without- was given.
6456 if test "${with_+set}" = set; then
6462 # Check whether --enable-x11 or --disable-x11 was given.
6463 if test "${enable_x11+set}" = set; then
6464 enableval
="$enable_x11"
6468 if test x
$enable_x11 != xno
&&
6469 (test x
$SYS != xmingw32 ||
test x
$enable_x11 = xyes
); then
6470 if test x
$x_includes = xNONE
; then
6471 x_includes
=/usr
/X11R
6/include
6473 if test x
$x_libraries = xNONE
; then
6474 x_libraries
=/usr
/X11R
6/lib
6476 CPPFLAGS
="$save_CPPFLAGS -I$x_includes"
6477 for ac_hdr
in X11
/Xlib.h
6479 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6481 echo "configure:6482: checking for $ac_hdr" >&5
6482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6485 cat > conftest.
$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6490 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6491 { (eval echo configure
:6492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6492 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6493 if test -z "$ac_err"; then
6495 eval "ac_cv_header_$ac_safe=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.
$ac_ext >&5
6501 eval "ac_cv_header_$ac_safe=no"
6505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6506 echo "$ac_t""yes" 1>&6
6507 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6508 cat >> confdefs.h
<<EOF
6509 #define $ac_tr_hdr 1
6512 PLUGINS
="${PLUGINS} x11"
6513 x11_LDFLAGS
="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6514 x11_CFLAGS
="${x11_CFLAGS} -I$x_includes"
6517 echo "$ac_t""no" 1>&6
6521 CPPFLAGS
="$save_CPPFLAGS"
6524 # Check whether --enable-xvideo or --disable-xvideo was given.
6525 if test "${enable_xvideo+set}" = set; then
6526 enableval
="$enable_xvideo"
6530 if test x
$enable_xvideo != xno
&&
6531 (test x
$SYS != xmingw32 ||
test x
$enable_xvideo = xyes
); then
6532 if test x
$x_includes = xNONE
; then
6533 x_includes
=/usr
/X11R
6/include
6535 if test x
$x_libraries = xNONE
; then
6536 x_libraries
=/usr
/X11R
6/lib
6538 save_CPPFLAGS
=$CPPFLAGS
6539 CPPFLAGS
="$save_CPPFLAGS -I$x_includes"
6540 for ac_hdr
in X11
/extensions
/Xv.h
6542 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6544 echo "configure:6545: checking for $ac_hdr" >&5
6545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6548 cat > conftest.
$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6553 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6554 { (eval echo configure
:6555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6555 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6556 if test -z "$ac_err"; then
6558 eval "ac_cv_header_$ac_safe=yes"
6561 echo "configure: failed program was:" >&5
6562 cat conftest.
$ac_ext >&5
6564 eval "ac_cv_header_$ac_safe=no"
6568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6569 echo "$ac_t""yes" 1>&6
6570 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6571 cat >> confdefs.h
<<EOF
6572 #define $ac_tr_hdr 1
6576 CFLAGS
="$CFLAGS -L$x_libraries -lX11 -lXext"
6577 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6578 echo "configure:6579: checking for XvSetPortAttribute in -lXv_pic" >&5
6579 ac_lib_var
=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6583 ac_save_LIBS
="$LIBS"
6584 LIBS
="-lXv_pic $LIBS"
6585 cat > conftest.
$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6588 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6591 char XvSetPortAttribute();
6594 XvSetPortAttribute()
6597 if { (eval echo configure
:6598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6599 eval "ac_cv_lib_$ac_lib_var=yes"
6601 echo "configure: failed program was:" >&5
6602 cat conftest.
$ac_ext >&5
6604 eval "ac_cv_lib_$ac_lib_var=no"
6607 LIBS
="$ac_save_LIBS"
6610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6611 echo "$ac_t""yes" 1>&6
6612 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6613 PLUGINS
="${PLUGINS} xvideo"
6614 xvideo_LDFLAGS
="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6615 xvideo_CFLAGS
="${xvideo_CFLAGS} -I$x_includes"
6617 echo "$ac_t""no" 1>&6
6618 # We don't have Xv_pic, let's make xvideo.a as builtin
6619 BUILTINS
="${BUILTINS} xvideo"
6620 xvideo_LDFLAGS
="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6621 xvideo_CFLAGS
="${xvideo_CFLAGS} -I$x_includes"
6624 CFLAGS
="$save_CFLAGS"
6626 CPPFLAGS
="$save_CPPFLAGS"
6628 echo "$ac_t""no" 1>&6
6634 # Check whether --enable-sdl or --disable-sdl was given.
6635 if test "${enable_sdl+set}" = set; then
6636 enableval
="$enable_sdl"
6640 if test "x$enable_sdl" != "xno"
6643 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6644 if test "${with_sdl_config_path+set}" = set; then
6645 withval
="$with_sdl_config_path"
6646 if test "x$with_sdl_config_path" != "xno"
6648 SDL_PATH
="$with_sdl_config_path:$PATH"
6652 # Extract the first word of "sdl12-config", so it can be a program name with args.
6653 set dummy sdl12-config
; ac_word
=$2
6654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6655 echo "configure:6656: checking for $ac_word" >&5
6656 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6657 echo $ac_n "(cached) $ac_c" 1>&6
6659 case "$SDL12_CONFIG" in
6661 ac_cv_path_SDL12_CONFIG
="$SDL12_CONFIG" # Let the user override the test with a path.
6664 ac_cv_path_SDL12_CONFIG
="$SDL12_CONFIG" # Let the user override the test with a dos path.
6667 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6668 ac_dummy
="$SDL_PATH"
6669 for ac_dir
in $ac_dummy; do
6670 test -z "$ac_dir" && ac_dir
=.
6671 if test -f $ac_dir/$ac_word; then
6672 ac_cv_path_SDL12_CONFIG
="$ac_dir/$ac_word"
6677 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG
="no"
6681 SDL12_CONFIG
="$ac_cv_path_SDL12_CONFIG"
6682 if test -n "$SDL12_CONFIG"; then
6683 echo "$ac_t""$SDL12_CONFIG" 1>&6
6685 echo "$ac_t""no" 1>&6
6688 SDL_CONFIG
=${SDL12_CONFIG}
6689 SDL_HEADER
="SDL12/SDL.h"
6690 if test x
${SDL_CONFIG} = xno
6692 # Extract the first word of "sdl11-config", so it can be a program name with args.
6693 set dummy sdl11-config
; ac_word
=$2
6694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6695 echo "configure:6696: checking for $ac_word" >&5
6696 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6699 case "$SDL11_CONFIG" in
6701 ac_cv_path_SDL11_CONFIG
="$SDL11_CONFIG" # Let the user override the test with a path.
6704 ac_cv_path_SDL11_CONFIG
="$SDL11_CONFIG" # Let the user override the test with a dos path.
6707 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6708 ac_dummy
="$SDL_PATH"
6709 for ac_dir
in $ac_dummy; do
6710 test -z "$ac_dir" && ac_dir
=.
6711 if test -f $ac_dir/$ac_word; then
6712 ac_cv_path_SDL11_CONFIG
="$ac_dir/$ac_word"
6717 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG
="no"
6721 SDL11_CONFIG
="$ac_cv_path_SDL11_CONFIG"
6722 if test -n "$SDL11_CONFIG"; then
6723 echo "$ac_t""$SDL11_CONFIG" 1>&6
6725 echo "$ac_t""no" 1>&6
6728 SDL_CONFIG
=${SDL11_CONFIG}
6729 SDL_HEADER
="SDL11/SDL.h"
6731 if test x
${SDL_CONFIG} = xno
6733 # Extract the first word of "sdl-config", so it can be a program name with args.
6734 set dummy sdl-config
; ac_word
=$2
6735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6736 echo "configure:6737: checking for $ac_word" >&5
6737 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6738 echo $ac_n "(cached) $ac_c" 1>&6
6740 case "$SDL_CONFIG" in
6742 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
6745 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a dos path.
6748 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6749 ac_dummy
="$SDL_PATH"
6750 for ac_dir
in $ac_dummy; do
6751 test -z "$ac_dir" && ac_dir
=.
6752 if test -f $ac_dir/$ac_word; then
6753 ac_cv_path_SDL_CONFIG
="$ac_dir/$ac_word"
6758 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
6762 SDL_CONFIG
="$ac_cv_path_SDL_CONFIG"
6763 if test -n "$SDL_CONFIG"; then
6764 echo "$ac_t""$SDL_CONFIG" 1>&6
6766 echo "$ac_t""no" 1>&6
6769 SDL_HEADER
="SDL/SDL.h"
6771 if test x
${SDL_CONFIG} != xno
6773 PLUGINS
="${PLUGINS} sdl"
6774 sdl_CFLAGS
="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
6775 sdl_LDFLAGS
="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6776 CPPFLAGS
="$save_CPPFLAGS $sdl_CFLAGS"
6777 for ac_hdr
in ${SDL_HEADER}
6779 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6781 echo "configure:6782: checking for $ac_hdr" >&5
6782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6
6785 cat > conftest.
$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6790 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6791 { (eval echo configure
:6792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6792 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6793 if test -z "$ac_err"; then
6795 eval "ac_cv_header_$ac_safe=yes"
6798 echo "configure: failed program was:" >&5
6799 cat conftest.
$ac_ext >&5
6801 eval "ac_cv_header_$ac_safe=no"
6805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6806 echo "$ac_t""yes" 1>&6
6807 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6808 cat >> confdefs.h
<<EOF
6809 #define $ac_tr_hdr 1
6811 cat >> confdefs.h
<<EOF
6812 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6816 echo "$ac_t""no" 1>&6
6817 { echo "configure: error: The development package for SDL is not installed.
6818 Please install it and try again. Alternatively you can also configure with
6819 --disable-sdl." 1>&2; exit 1; }
6824 CPPFLAGS
="$save_CPPFLAGS"
6825 if expr 1.1.5 \
> `$SDL_CONFIG --version` >/dev
/null
6827 { echo "configure: error: The development package for SDL is not installed.
6828 Please install it and try again. Alternatively you can also configure with
6829 --disable-sdl." 1>&2; exit 1; }
6831 elif test "x$enable_sdl" = "xyes"
6833 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6834 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6839 # Check whether --enable-directx or --disable-directx was given.
6840 if test "${enable_directx+set}" = set; then
6841 enableval
="$enable_directx"
6845 if test "x$enable_directx" != "xno"
6847 if test x
$SYS = xmingw32
6849 # Check whether --with-directx or --without-directx was given.
6850 if test "${with_directx+set}" = set; then
6851 withval
="$with_directx"
6855 if test "x$with_directx" = "x"
6857 for ac_hdr
in ddraw.h
6859 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6861 echo "configure:6862: checking for $ac_hdr" >&5
6862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6863 echo $ac_n "(cached) $ac_c" 1>&6
6865 cat > conftest.
$ac_ext <<EOF
6866 #line 6867 "configure"
6867 #include "confdefs.h"
6870 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6871 { (eval echo configure
:6872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6872 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6873 if test -z "$ac_err"; then
6875 eval "ac_cv_header_$ac_safe=yes"
6878 echo "configure: failed program was:" >&5
6879 cat conftest.
$ac_ext >&5
6881 eval "ac_cv_header_$ac_safe=no"
6885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6886 echo "$ac_t""yes" 1>&6
6887 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6888 cat >> confdefs.h
<<EOF
6889 #define $ac_tr_hdr 1
6891 PLUGINS
="${PLUGINS} directx"
6892 directx_LDFLAGS
="${directx_LDFLAGS} -lgdi32"
6894 echo "$ac_t""no" 1>&6
6899 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
6900 echo "configure:6901: checking for directX headers in ${with_directx}" >&5
6901 if test -f ${with_directx}/ddraw.h
6903 PLUGINS
="${PLUGINS} directx"
6904 directx_LDFLAGS
="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
6905 directx_CFLAGS
="${directx_CFLAGS} -I${with_directx}"
6906 echo "$ac_t""yes" 1>&6
6908 echo "$ac_t""no" 1>&6
6909 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
6915 # Check whether --enable-fb or --disable-fb was given.
6916 if test "${enable_fb+set}" = set; then
6917 enableval
="$enable_fb"
6921 if test x
$enable_fb != xno
6923 for ac_hdr
in linux
/fb.h
6925 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6927 echo "configure:6928: checking for $ac_hdr" >&5
6928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6
6931 cat > conftest.
$ac_ext <<EOF
6932 #line 6933 "configure"
6933 #include "confdefs.h"
6936 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6937 { (eval echo configure
:6938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6938 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6939 if test -z "$ac_err"; then
6941 eval "ac_cv_header_$ac_safe=yes"
6944 echo "configure: failed program was:" >&5
6945 cat conftest.
$ac_ext >&5
6947 eval "ac_cv_header_$ac_safe=no"
6951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6952 echo "$ac_t""yes" 1>&6
6953 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6954 cat >> confdefs.h
<<EOF
6955 #define $ac_tr_hdr 1
6958 PLUGINS
="${PLUGINS} fb"
6961 echo "$ac_t""no" 1>&6
6967 # Check whether --enable-mga or --disable-mga was given.
6968 if test "${enable_mga+set}" = set; then
6969 enableval
="$enable_mga"
6970 if test x
$enable_mga = xyes
6972 PLUGINS
="${PLUGINS} mga xmga"
6977 # Check whether --enable-ggi or --disable-ggi was given.
6978 if test "${enable_ggi+set}" = set; then
6979 enableval
="$enable_ggi"
6983 if test x
$enable_ggi = xyes
6985 PLUGINS
="${PLUGINS} ggi"
6986 ggi_LDFLAGS
="${ggi_LDFLAGS} -lggi"
6987 # Check whether --with-ggi or --without-ggi was given.
6988 if test "${with_ggi+set}" = set; then
6990 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
6992 CFLAGS_GGI
="${CFLAGS_GGI} -I$with_ggi/include"
6993 ggi_LDFLAGS
="${ggi_LDFLAGS} -L$with_ggi/lib"
6999 # Check whether --enable-glide or --disable-glide was given.
7000 if test "${enable_glide+set}" = set; then
7001 enableval
="$enable_glide"
7005 if test x
$enable_glide = xyes
7007 PLUGINS
="${PLUGINS} glide"
7008 glide_LDFLAGS
="${glide_LDFLAGS} -lglide2x -lm"
7009 glide_CFLAGS
="${glide_CFLAGS} -I/usr/include/glide"
7010 # Check whether --with-glide or --without-glide was given.
7011 if test "${with_glide+set}" = set; then
7012 withval
="$with_glide"
7013 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7015 glide_CFLAGS
="${glide_CFLAGS} -I$with_glide/include"
7016 glide_LDFLAGS
="${glide_LDFLAGS} -L$with_glide/lib"
7022 # Check whether --enable-aa or --disable-aa was given.
7023 if test "${enable_aa+set}" = set; then
7024 enableval
="$enable_aa"
7028 if test x
$enable_aa = xyes
7030 ac_safe
=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7031 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7032 echo "configure:7033: checking for aalib.h" >&5
7033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7034 echo $ac_n "(cached) $ac_c" 1>&6
7036 cat > conftest.
$ac_ext <<EOF
7037 #line 7038 "configure"
7038 #include "confdefs.h"
7041 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7042 { (eval echo configure
:7043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7043 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7044 if test -z "$ac_err"; then
7046 eval "ac_cv_header_$ac_safe=yes"
7049 echo "configure: failed program was:" >&5
7050 cat conftest.
$ac_ext >&5
7052 eval "ac_cv_header_$ac_safe=no"
7056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7057 echo "$ac_t""yes" 1>&6
7060 echo "$ac_t""no" 1>&6
7064 if test x
$have_aa = xtrue
7066 PLUGINS
="${PLUGINS} aa"
7067 aa_LDFLAGS
="${aa_LDFLAGS} -laa"
7072 # Check whether --with- or --without- was given.
7073 if test "${with_+set}" = set; then
7079 # Check whether --enable-dsp or --disable-dsp was given.
7080 if test "${enable_dsp+set}" = set; then
7081 enableval
="$enable_dsp"
7086 if test x
$enable_dsp != xno
&&
7087 (test x
$SYS != xmingw32 ||
test x
$enable_dsp = xyes
)
7089 for ac_hdr
in soundcard.h sys
/soundcard.h machine
/soundcard.h
7091 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7093 echo "configure:7094: checking for $ac_hdr" >&5
7094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7097 cat > conftest.
$ac_ext <<EOF
7098 #line 7099 "configure"
7099 #include "confdefs.h"
7102 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7103 { (eval echo configure
:7104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7104 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7105 if test -z "$ac_err"; then
7107 eval "ac_cv_header_$ac_safe=yes"
7110 echo "configure: failed program was:" >&5
7111 cat conftest.
$ac_ext >&5
7113 eval "ac_cv_header_$ac_safe=no"
7117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7118 echo "$ac_t""yes" 1>&6
7119 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7120 cat >> confdefs.h
<<EOF
7121 #define $ac_tr_hdr 1
7124 PLUGINS
="${PLUGINS} dsp"
7125 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7126 echo "configure:7127: checking for main in -lossaudio" >&5
7127 ac_lib_var
=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7131 ac_save_LIBS
="$LIBS"
7132 LIBS
="-lossaudio $LIBS"
7133 cat > conftest.
$ac_ext <<EOF
7134 #line 7135 "configure"
7135 #include "confdefs.h"
7141 if { (eval echo configure
:7142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7143 eval "ac_cv_lib_$ac_lib_var=yes"
7145 echo "configure: failed program was:" >&5
7146 cat conftest.
$ac_ext >&5
7148 eval "ac_cv_lib_$ac_lib_var=no"
7151 LIBS
="$ac_save_LIBS"
7154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7155 echo "$ac_t""yes" 1>&6
7156 dsp_LDFLAGS
="${dsp_LDFLAGS} -lossaudio"
7158 echo "$ac_t""no" 1>&6
7163 echo "$ac_t""no" 1>&6
7169 # Check whether --enable-esd or --disable-esd was given.
7170 if test "${enable_esd+set}" = set; then
7171 enableval
="$enable_esd"
7172 if test x
$enable_esd = xyes
7174 # Extract the first word of "esd-config", so it can be a program name with args.
7175 set dummy esd-config
; ac_word
=$2
7176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7177 echo "configure:7178: checking for $ac_word" >&5
7178 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7179 echo $ac_n "(cached) $ac_c" 1>&6
7181 case "$ESD_CONFIG" in
7183 ac_cv_path_ESD_CONFIG
="$ESD_CONFIG" # Let the user override the test with a path.
7186 ac_cv_path_ESD_CONFIG
="$ESD_CONFIG" # Let the user override the test with a dos path.
7189 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7191 for ac_dir
in $ac_dummy; do
7192 test -z "$ac_dir" && ac_dir
=.
7193 if test -f $ac_dir/$ac_word; then
7194 ac_cv_path_ESD_CONFIG
="$ac_dir/$ac_word"
7199 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG
="no"
7203 ESD_CONFIG
="$ac_cv_path_ESD_CONFIG"
7204 if test -n "$ESD_CONFIG"; then
7205 echo "$ac_t""$ESD_CONFIG" 1>&6
7207 echo "$ac_t""no" 1>&6
7210 if test x
${ESD_CONFIG} != xno
7212 PLUGINS
="${PLUGINS} esd"
7213 esd_CFLAGS
="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7214 esd_LDFLAGS
="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7220 # Check whether --enable-arts or --disable-arts was given.
7221 if test "${enable_arts+set}" = set; then
7222 enableval
="$enable_arts"
7223 if test x
$enable_arts = xyes
7225 # Extract the first word of "artsc-config", so it can be a program name with args.
7226 set dummy artsc-config
; ac_word
=$2
7227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7228 echo "configure:7229: checking for $ac_word" >&5
7229 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7230 echo $ac_n "(cached) $ac_c" 1>&6
7232 case "$ARTS_CONFIG" in
7234 ac_cv_path_ARTS_CONFIG
="$ARTS_CONFIG" # Let the user override the test with a path.
7237 ac_cv_path_ARTS_CONFIG
="$ARTS_CONFIG" # Let the user override the test with a dos path.
7240 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7242 for ac_dir
in $ac_dummy; do
7243 test -z "$ac_dir" && ac_dir
=.
7244 if test -f $ac_dir/$ac_word; then
7245 ac_cv_path_ARTS_CONFIG
="$ac_dir/$ac_word"
7250 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG
="no"
7254 ARTS_CONFIG
="$ac_cv_path_ARTS_CONFIG"
7255 if test -n "$ARTS_CONFIG"; then
7256 echo "$ac_t""$ARTS_CONFIG" 1>&6
7258 echo "$ac_t""no" 1>&6
7261 if test x
${ARTS_CONFIG} != xno
7263 PLUGINS
="${PLUGINS} arts"
7264 arts_CFLAGS
="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7265 arts_LDFLAGS
="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7271 # Check whether --enable-alsa or --disable-alsa was given.
7272 if test "${enable_alsa+set}" = set; then
7273 enableval
="$enable_alsa"
7274 if test x
$enable_alsa = xyes
7276 ac_safe
=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7277 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7278 echo "configure:7279: checking for alsa/asoundlib.h" >&5
7279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7282 cat > conftest.
$ac_ext <<EOF
7283 #line 7284 "configure"
7284 #include "confdefs.h"
7285 #include <alsa/asoundlib.h>
7287 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7288 { (eval echo configure
:7289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7289 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7290 if test -z "$ac_err"; then
7292 eval "ac_cv_header_$ac_safe=yes"
7295 echo "configure: failed program was:" >&5
7296 cat conftest.
$ac_ext >&5
7298 eval "ac_cv_header_$ac_safe=no"
7302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7303 echo "$ac_t""yes" 1>&6
7304 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7305 echo "configure:7306: checking for main in -lasound" >&5
7306 ac_lib_var
=`echo asound'_'main | sed 'y%./+-%__p_%'`
7307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7310 ac_save_LIBS
="$LIBS"
7311 LIBS
="-lasound $LIBS"
7312 cat > conftest.
$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7320 if { (eval echo configure
:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7322 eval "ac_cv_lib_$ac_lib_var=yes"
7324 echo "configure: failed program was:" >&5
7325 cat conftest.
$ac_ext >&5
7327 eval "ac_cv_lib_$ac_lib_var=no"
7330 LIBS
="$ac_save_LIBS"
7333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7334 echo "$ac_t""yes" 1>&6
7337 echo "$ac_t""no" 1>&6
7342 echo "$ac_t""no" 1>&6
7346 if test x
$have_alsa = xtrue
7348 PLUGINS
="${PLUGINS} alsa"
7349 alsa_LDFLAGS
="${alsa_LDFLAGS} -lasound -lm -ldl"
7355 # Check whether --enable-waveout or --disable-waveout was given.
7356 if test "${enable_waveout+set}" = set; then
7357 enableval
="$enable_waveout"
7361 if test "x$enable_waveout" != "xno" -a x
$SYS = xmingw32
7363 PLUGINS
="${PLUGINS} waveout"
7364 waveout_LDFLAGS
="-lwinmm"
7368 # Check whether --with- or --without- was given.
7369 if test "${with_+set}" = set; then
7375 # Check whether --enable-gtk or --disable-gtk was given.
7376 if test "${enable_gtk+set}" = set; then
7377 enableval
="$enable_gtk"
7381 if test x
$enable_gtk != xno
7384 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7385 if test "${with_gtk_config_path+set}" = set; then
7386 withval
="$with_gtk_config_path"
7387 if test "x$with_gtk_config_path" != "xno"
7389 GTK_PATH
="$with_gtk_config_path:$PATH"
7393 # look for gtk-config
7394 # Extract the first word of "gtk12-config", so it can be a program name with args.
7395 set dummy gtk12-config
; ac_word
=$2
7396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7397 echo "configure:7398: checking for $ac_word" >&5
7398 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7399 echo $ac_n "(cached) $ac_c" 1>&6
7401 case "$GTK12_CONFIG" in
7403 ac_cv_path_GTK12_CONFIG
="$GTK12_CONFIG" # Let the user override the test with a path.
7406 ac_cv_path_GTK12_CONFIG
="$GTK12_CONFIG" # Let the user override the test with a dos path.
7409 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7410 ac_dummy
="$GTK_PATH"
7411 for ac_dir
in $ac_dummy; do
7412 test -z "$ac_dir" && ac_dir
=.
7413 if test -f $ac_dir/$ac_word; then
7414 ac_cv_path_GTK12_CONFIG
="$ac_dir/$ac_word"
7419 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG
="no"
7423 GTK12_CONFIG
="$ac_cv_path_GTK12_CONFIG"
7424 if test -n "$GTK12_CONFIG"; then
7425 echo "$ac_t""$GTK12_CONFIG" 1>&6
7427 echo "$ac_t""no" 1>&6
7430 GTK_CONFIG
=${GTK12_CONFIG}
7431 if test x
${GTK_CONFIG} = xno
7433 # Extract the first word of "gtk-config", so it can be a program name with args.
7434 set dummy gtk-config
; ac_word
=$2
7435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7436 echo "configure:7437: checking for $ac_word" >&5
7437 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7440 case "$GTK_CONFIG" in
7442 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
7445 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
7448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7449 ac_dummy
="$GTK_PATH"
7450 for ac_dir
in $ac_dummy; do
7451 test -z "$ac_dir" && ac_dir
=.
7452 if test -f $ac_dir/$ac_word; then
7453 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
7458 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
7462 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
7463 if test -n "$GTK_CONFIG"; then
7464 echo "$ac_t""$GTK_CONFIG" 1>&6
7466 echo "$ac_t""no" 1>&6
7470 if test x
${GTK_CONFIG} != xno
7472 if expr 1.2.0 \
> `$GTK_CONFIG --version` >/dev
/null
7474 { 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; }
7476 gtk_CFLAGS
="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7477 gtk_LDFLAGS
="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7478 # now look for the gtk.h header
7479 CPPFLAGS
="$save_CPPFLAGS $gtk_CFLAGS"
7480 ac_cv_gtk_headers
=yes
7481 for ac_hdr
in gtk
/gtk.h glib.h gdk
/gdk.h
7483 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7485 echo "configure:7486: checking for $ac_hdr" >&5
7486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7487 echo $ac_n "(cached) $ac_c" 1>&6
7489 cat > conftest.
$ac_ext <<EOF
7490 #line 7491 "configure"
7491 #include "confdefs.h"
7494 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7495 { (eval echo configure
:7496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7496 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7497 if test -z "$ac_err"; then
7499 eval "ac_cv_header_$ac_safe=yes"
7502 echo "configure: failed program was:" >&5
7503 cat conftest.
$ac_ext >&5
7505 eval "ac_cv_header_$ac_safe=no"
7509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7510 echo "$ac_t""yes" 1>&6
7511 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7512 cat >> confdefs.h
<<EOF
7513 #define $ac_tr_hdr 1
7517 echo "$ac_t""no" 1>&6
7518 ac_cv_gtk_headers
=no
7519 echo "Cannot find gtk development headers."
7524 if test "x$ac_cv_gtk_headers" = xyes
7526 PLUGINS
="${PLUGINS} gtk"
7527 ALIASES
="${ALIASES} gvlc"
7529 CPPFLAGS
="$save_CPPFLAGS"
7533 # Check whether --enable-gnome or --disable-gnome was given.
7534 if test "${enable_gnome+set}" = set; then
7535 enableval
="$enable_gnome"
7536 if test x
$enable_gnome = xyes
; then
7537 # look for gnome-config
7538 # Extract the first word of "gnome-config", so it can be a program name with args.
7539 set dummy gnome-config
; ac_word
=$2
7540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7541 echo "configure:7542: checking for $ac_word" >&5
7542 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6
7545 case "$GNOME_CONFIG" in
7547 ac_cv_path_GNOME_CONFIG
="$GNOME_CONFIG" # Let the user override the test with a path.
7550 ac_cv_path_GNOME_CONFIG
="$GNOME_CONFIG" # Let the user override the test with a dos path.
7553 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7555 for ac_dir
in $ac_dummy; do
7556 test -z "$ac_dir" && ac_dir
=.
7557 if test -f $ac_dir/$ac_word; then
7558 ac_cv_path_GNOME_CONFIG
="$ac_dir/$ac_word"
7563 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG
="no"
7567 GNOME_CONFIG
="$ac_cv_path_GNOME_CONFIG"
7568 if test -n "$GNOME_CONFIG"; then
7569 echo "$ac_t""$GNOME_CONFIG" 1>&6
7571 echo "$ac_t""no" 1>&6
7574 if test -x ${GNOME_CONFIG}
7576 gnome_CFLAGS
="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7577 gnome_LDFLAGS
="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7579 # now look for the gnome.h header
7580 CPPFLAGS
="$save_CPPFLAGS $gnome_CFLAGS"
7581 for ac_hdr
in gnome.h
7583 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7585 echo "configure:7586: checking for $ac_hdr" >&5
7586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7587 echo $ac_n "(cached) $ac_c" 1>&6
7589 cat > conftest.
$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7594 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7595 { (eval echo configure
:7596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7596 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7597 if test -z "$ac_err"; then
7599 eval "ac_cv_header_$ac_safe=yes"
7602 echo "configure: failed program was:" >&5
7603 cat conftest.
$ac_ext >&5
7605 eval "ac_cv_header_$ac_safe=no"
7609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7612 cat >> confdefs.h
<<EOF
7613 #define $ac_tr_hdr 1
7616 PLUGINS
="${PLUGINS} gnome"
7617 ALIASES
="${ALIASES} gnome-vlc"
7620 echo "$ac_t""no" 1>&6
7621 { echo "configure: error: Can't find gnome headers. Please install the gnome
7622 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7627 CPPFLAGS
="$save_CPPFLAGS"
7632 # Check whether --enable-qt or --disable-qt was given.
7633 if test "${enable_qt+set}" = set; then
7634 enableval
="$enable_qt"
7635 if test x
$enable_qt = xyes
; then
7636 PLUGINS
="${PLUGINS} qt"
7637 ALIASES
="${ALIASES} qvlc"
7638 qt_LDFLAGS
="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7639 qt_CFLAGS
="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7640 if test -x ${QTDIR}/bin
/moc
7642 MOC
=${QTDIR}/bin
/moc
7650 # Check whether --enable-kde or --disable-kde was given.
7651 if test "${enable_kde+set}" = set; then
7652 enableval
="$enable_kde"
7653 if test x
$enable_kde = xyes
; then
7654 PLUGINS
="${PLUGINS} kde"
7655 ALIASES
="${ALIASES} kvlc"
7656 kde_LDFLAGS
="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
7657 kde_CFLAGS
="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
7658 kde_CFLAGS
="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
7659 if test -x ${QTDIR}/bin
/moc
7661 MOC
=${QTDIR}/bin
/moc
7669 # Check whether --enable-macosx or --disable-macosx was given.
7670 if test "${enable_macosx+set}" = set; then
7671 enableval
="$enable_macosx"
7672 if test x
$enable_macosx = xyes
7674 BUILTINS
="${BUILTINS} macosx"
7675 macosx_LDFLAGS
="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7676 macosx_CFLAGS
="${macosx_CFLAGS} -ObjC"
7677 LDFLAGS
="${LDFLAGS} -ObjC"
7680 for ac_hdr
in Cocoa
/Cocoa.h
7682 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7684 echo "configure:7685: checking for $ac_hdr" >&5
7685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7688 cat > conftest.
$ac_ext <<EOF
7689 #line 7690 "configure"
7690 #include "confdefs.h"
7693 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7694 { (eval echo configure
:7695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7695 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7696 if test -z "$ac_err"; then
7698 eval "ac_cv_header_$ac_safe=yes"
7701 echo "configure: failed program was:" >&5
7702 cat conftest.
$ac_ext >&5
7704 eval "ac_cv_header_$ac_safe=no"
7708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7709 echo "$ac_t""yes" 1>&6
7710 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7711 cat >> confdefs.h
<<EOF
7712 #define $ac_tr_hdr 1
7714 BUILTINS
="${BUILTINS} macosx"
7715 macosx_LDFLAGS
="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7716 macosx_CFLAGS
="${macosx_CFLAGS} -ObjC"
7717 LDFLAGS
="${LDFLAGS} -ObjC"
7720 echo "$ac_t""no" 1>&6
7727 # Check whether --enable-qnx or --disable-qnx was given.
7728 if test "${enable_qnx+set}" = set; then
7729 enableval
="$enable_qnx"
7733 if test x
$enable_qnx != xno
7737 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7739 echo "configure:7740: checking for $ac_hdr" >&5
7740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7743 cat > conftest.
$ac_ext <<EOF
7744 #line 7745 "configure"
7745 #include "confdefs.h"
7748 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7749 { (eval echo configure
:7750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7750 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7751 if test -z "$ac_err"; then
7753 eval "ac_cv_header_$ac_safe=yes"
7756 echo "configure: failed program was:" >&5
7757 cat conftest.
$ac_ext >&5
7759 eval "ac_cv_header_$ac_safe=no"
7763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7764 echo "$ac_t""yes" 1>&6
7765 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7766 cat >> confdefs.h
<<EOF
7767 #define $ac_tr_hdr 1
7770 PLUGINS
="${PLUGINS} qnx"
7771 qnx_LDFLAGS
="${qnx_LDFLAGS} -lasound -lph"
7774 echo "$ac_t""no" 1>&6
7780 # Check whether --enable-intfwin or --disable-intfwin was given.
7781 if test "${enable_intfwin+set}" = set; then
7782 enableval
="$enable_intfwin"
7783 if test "x$enable_intfwin" != "xno"
7785 # Check whether --with-bcbuilder or --without-bcbuilder was given.
7786 if test "${with_bcbuilder+set}" = set; then
7787 withval
="$with_bcbuilder"
7791 if test "x$with_bcbuilder" != "x"
7793 BCBUILDER
="$with_bcbuilder"
7795 PLUGINS
="${PLUGINS} intfwin"
7800 # Check whether --enable-ncurses or --disable-ncurses was given.
7801 if test "${enable_ncurses+set}" = set; then
7802 enableval
="$enable_ncurses"
7803 if test x
$enable_ncurses = xyes
; then
7804 PLUGINS
="${PLUGINS} ncurses"
7805 ncurses_LDFLAGS
="${ncurses_LDFLAGS} -lncurses"
7810 # Check whether --enable-lirc or --disable-lirc was given.
7811 if test "${enable_lirc+set}" = set; then
7812 enableval
="$enable_lirc"
7816 if test x
$enable_lirc = xyes
7818 ac_safe
=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7819 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7820 echo "configure:7821: checking for lirc/lirc_client.h" >&5
7821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7822 echo $ac_n "(cached) $ac_c" 1>&6
7824 cat > conftest.
$ac_ext <<EOF
7825 #line 7826 "configure"
7826 #include "confdefs.h"
7827 #include <lirc/lirc_client.h>
7829 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7830 { (eval echo configure
:7831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7831 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7832 if test -z "$ac_err"; then
7834 eval "ac_cv_header_$ac_safe=yes"
7837 echo "configure: failed program was:" >&5
7838 cat conftest.
$ac_ext >&5
7840 eval "ac_cv_header_$ac_safe=no"
7844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7845 echo "$ac_t""yes" 1>&6
7846 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
7847 echo "configure:7848: checking for lirc_init in -llirc_client" >&5
7848 ac_lib_var
=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
7849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7852 ac_save_LIBS
="$LIBS"
7853 LIBS
="-llirc_client $LIBS"
7854 cat > conftest.
$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7857 /* Override any gcc2 internal prototype to avoid an error. */
7858 /* We use char because int might match the return type of a gcc2
7859 builtin and then its argument prototype would still apply. */
7866 if { (eval echo configure
:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7868 eval "ac_cv_lib_$ac_lib_var=yes"
7870 echo "configure: failed program was:" >&5
7871 cat conftest.
$ac_ext >&5
7873 eval "ac_cv_lib_$ac_lib_var=no"
7876 LIBS
="$ac_save_LIBS"
7879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7880 echo "$ac_t""yes" 1>&6
7883 echo "$ac_t""no" 1>&6
7888 echo "$ac_t""no" 1>&6
7892 if test x
$have_lirc = xtrue
7894 PLUGINS
="${PLUGINS} lirc"
7895 lirc_LDFLAGS
="${lirc_LDFLAGS} -llirc_client"
7899 # Check whether --with- or --without- was given.
7900 if test "${with_+set}" = set; then
7906 # Check whether --with-words or --without-words was given.
7907 if test "${with_words+set}" = set; then
7908 withval
="$with_words"
7912 case "x$with_words" in
7914 ac_cv_c_bigendian
=yes
7917 ac_cv_c_bigendian
=no
7920 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
7921 echo "configure:7922: checking whether the byte order is big-endian" >&5
7922 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7923 echo $ac_n "(cached) $ac_c" 1>&6
7925 ac_cv_c_bigendian
=unknown
7926 cat >conftest.c
<<EOF
7927 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
7928 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
7929 void _a(void) { char*s = (char*)am; s = (char *)ai; }
7930 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
7931 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
7932 void _e(void) { char*s = (char*)em; s = (char*)ei; }
7933 int main(void) { _a(); _e(); return 0; }
7936 if test -f conftest.c
7938 if ${CC-cc} -c conftest.c
-o conftest.o
>config.log
2>&1 \
7939 && test -f conftest.o
7941 if test "`strings conftest.o | grep BIGenDianSyS`"
7943 ac_cv_c_bigendian
=yes
7945 if test "`strings conftest.o | grep LiTTleEnDian`"
7947 ac_cv_c_bigendian
=no
7954 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7955 if test x
$ac_cv_c_bigendian = xunknown
7957 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
7961 if test $ac_cv_c_bigendian = yes
7963 cat >> confdefs.h
<<\EOF
7964 #define WORDS_BIGENDIAN 1
7970 # Check whether --enable-gprof or --disable-gprof was given.
7971 if test "${enable_gprof+set}" = set; then
7972 enableval
="$enable_gprof"
7973 if test "x$enable_gprof" = "xyes"; then GPROF
=1; fi
7978 # Check whether --enable-cprof or --disable-cprof was given.
7979 if test "${enable_cprof+set}" = set; then
7980 enableval
="$enable_cprof"
7981 if test "x$enable_cprof" = "xyes";
7983 LDFLAGS
="${LDFLAGS} -lcprof"
7990 # Check whether --enable-pth or --disable-pth was given.
7991 if test "${enable_pth+set}" = set; then
7992 enableval
="$enable_pth"
7993 if test "x$enable_pth" = "xyes"; then
7994 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
7995 echo "configure:7996: checking for pth_init in -lpth" >&5
7996 ac_lib_var
=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
7997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7998 echo $ac_n "(cached) $ac_c" 1>&6
8000 ac_save_LIBS
="$LIBS"
8002 cat > conftest.
$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8005 /* Override any gcc2 internal prototype to avoid an error. */
8006 /* We use char because int might match the return type of a gcc2
8007 builtin and then its argument prototype would still apply. */
8014 if { (eval echo configure
:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8016 eval "ac_cv_lib_$ac_lib_var=yes"
8018 echo "configure: failed program was:" >&5
8019 cat conftest.
$ac_ext >&5
8021 eval "ac_cv_lib_$ac_lib_var=no"
8024 LIBS
="$ac_save_LIBS"
8027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8028 echo "$ac_t""yes" 1>&6
8029 ac_tr_lib
=HAVE_LIB
`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8030 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8031 cat >> confdefs.h
<<EOF
8032 #define $ac_tr_lib 1
8038 echo "$ac_t""no" 1>&6
8041 cat > conftest.
$ac_ext <<EOF
8042 #line 8043 "configure"
8043 #include "confdefs.h"
8046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8047 egrep "pth_init" >/dev
/null
2>&1; then
8050 cat >> confdefs.h
<<\EOF
8051 #define PTH_INIT_IN_PTH_H 1
8063 # Check whether --enable-st or --disable-st was given.
8064 if test "${enable_st+set}" = set; then
8065 enableval
="$enable_st"
8066 if test "x$enable_st" = "xyes"; then
8067 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8068 echo "configure:8069: checking for st_init in -lst" >&5
8069 ac_lib_var
=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8073 ac_save_LIBS
="$LIBS"
8075 cat > conftest.
$ac_ext <<EOF
8076 #line 8077 "configure"
8077 #include "confdefs.h"
8078 /* Override any gcc2 internal prototype to avoid an error. */
8079 /* We use char because int might match the return type of a gcc2
8080 builtin and then its argument prototype would still apply. */
8087 if { (eval echo configure
:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8089 eval "ac_cv_lib_$ac_lib_var=yes"
8091 echo "configure: failed program was:" >&5
8092 cat conftest.
$ac_ext >&5
8094 eval "ac_cv_lib_$ac_lib_var=no"
8097 LIBS
="$ac_save_LIBS"
8100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8101 echo "$ac_t""yes" 1>&6
8102 ac_tr_lib
=HAVE_LIB
`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8103 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8104 cat >> confdefs.h
<<EOF
8105 #define $ac_tr_lib 1
8111 echo "$ac_t""no" 1>&6
8114 cat > conftest.
$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8120 egrep "st_init" >/dev
/null
2>&1; then
8123 cat >> confdefs.h
<<\EOF
8124 #define ST_INIT_IN_ST_H 1
8136 LDFLAGS
="${LDFLAGS} ${THREAD_LIB}"
8138 # Check whether --enable-plugins or --disable-plugins was given.
8139 if test "${enable_plugins+set}" = set; then
8140 enableval
="$enable_plugins"
8141 if test x
$enable_plugins = xno
8143 BUILTINS
="${BUILTINS} ${PLUGINS}"
8149 if test x
$ac_cv_header_dlfcn_h = xno
-a x
$ac_cv_header_image_h = xno
-a x
$SYS != xmingw32
8151 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8153 BUILTINS
="${BUILTINS} ${PLUGINS}"
8157 cat >> confdefs.h
<<EOF
8158 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8161 cat >> confdefs.h
<<EOF
8162 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8166 VLC_SYMBOL
="`echo ${VERSION} | tr .- __`"
8167 cat >> confdefs.h
<<EOF
8168 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8171 cat >> confdefs.h
<<EOF
8172 #define MODULE_SYMBOL $VLC_SYMBOL
8176 DATA_PATH
="${ac_tool_prefix}/share/videolan"
8178 PLUGIN_PATH
="${ac_tool_prefix}/share/videolan"
8274 cat > confcache
<<\EOF
8275 # This file is a shell script that caches the results of configure
8276 # tests run on this system so they can be shared between configure
8277 # scripts and configure runs. It is not useful on other systems.
8278 # If it contains results you don't want to keep, you may remove or edit it.
8280 # By default, configure uses ./config.cache as the cache file,
8281 # creating it if it does not exist already. You can give configure
8282 # the --cache-file=FILE option to use a different cache file; that is
8283 # what configure does when it calls configure scripts in
8284 # subdirectories, so they share the cache.
8285 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8286 # config.status only pays attention to the cache file if you give it the
8287 # --recheck option to rerun configure.
8290 # The following way of writing the cache mishandles newlines in values,
8291 # but we know of no workaround that is simple, portable, and efficient.
8292 # So, don't put newlines in cache variables' values.
8293 # Ultrix sh set writes to stderr and can't be redirected directly,
8294 # and sets the high bit in the cache file unless we assign to the vars.
8296 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8298 # `set' does not quote correctly, so add quotes (double-quote substitution
8299 # turns \\\\ into \\, and sed turns \\ into \).
8301 -e "s/'/'\\\\''/g" \
8302 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8305 # `set' quotes correctly as required by POSIX, so do not add quotes.
8306 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8309 if cmp -s $cache_file confcache
; then
8312 if test -w $cache_file; then
8313 echo "updating cache $cache_file"
8314 cat confcache
> $cache_file
8316 echo "not updating unwritable cache $cache_file"
8321 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8323 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8324 # Let make expand exec_prefix.
8325 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8327 # Any assignment to VPATH causes Sun make to only execute
8328 # the first set of double-colon rules, so remove it if not needed.
8329 # If there is a colon in the path, we need to keep it.
8330 if test "x$srcdir" = x.
; then
8331 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8334 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8336 DEFS
=-DHAVE_CONFIG_H
8338 # Without the "./", some shells look in PATH for config.status.
8339 : ${CONFIG_STATUS=./config.status}
8341 echo creating
$CONFIG_STATUS
8342 rm -f $CONFIG_STATUS
8343 cat > $CONFIG_STATUS <<EOF
8345 # Generated automatically by configure.
8346 # Run this file to recreate the current configuration.
8347 # This directory was configured as follows,
8348 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8350 # $0 $ac_configure_args
8352 # Compiler output produced by configure, useful for debugging
8353 # configure, is in ./config.log if it exists.
8355 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8358 case "\$ac_option" in
8359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8360 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8361 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8362 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8363 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8365 -help | --help | --hel | --he | --h)
8366 echo "\$ac_cs_usage"; exit 0 ;;
8367 *) echo "\$ac_cs_usage"; exit 1 ;;
8371 ac_given_srcdir=$srcdir
8372 ac_given_INSTALL="$INSTALL"
8374 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8376 cat >> $CONFIG_STATUS <<EOF
8378 # Protect against being on the right side of a sed subst in config.status.
8379 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8380 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8384 s%@CFLAGS@%$CFLAGS%g
8385 s%@CPPFLAGS@%$CPPFLAGS%g
8386 s%@CXXFLAGS@%$CXXFLAGS%g
8387 s%@FFLAGS@%$FFLAGS%g
8389 s%@LDFLAGS@%$LDFLAGS%g
8391 s%@exec_prefix@%$exec_prefix%g
8392 s%@prefix@%$prefix%g
8393 s%@program_transform_name@%$program_transform_name%g
8394 s%@bindir@%$bindir%g
8395 s%@sbindir@%$sbindir%g
8396 s%@libexecdir@%$libexecdir%g
8397 s%@datadir@%$datadir%g
8398 s%@sysconfdir@%$sysconfdir%g
8399 s%@sharedstatedir@%$sharedstatedir%g
8400 s%@localstatedir@%$localstatedir%g
8401 s%@libdir@%$libdir%g
8402 s%@includedir@%$includedir%g
8403 s%@oldincludedir@%$oldincludedir%g
8404 s%@infodir@%$infodir%g
8405 s%@mandir@%$mandir%g
8407 s%@host_alias@%$host_alias%g
8408 s%@host_cpu@%$host_cpu%g
8409 s%@host_vendor@%$host_vendor%g
8410 s%@host_os@%$host_os%g
8411 s%@target@%$target%g
8412 s%@target_alias@%$target_alias%g
8413 s%@target_cpu@%$target_cpu%g
8414 s%@target_vendor@%$target_vendor%g
8415 s%@target_os@%$target_os%g
8417 s%@build_alias@%$build_alias%g
8418 s%@build_cpu@%$build_cpu%g
8419 s%@build_vendor@%$build_vendor%g
8420 s%@build_os@%$build_os%g
8421 s%@SET_MAKE@%$SET_MAKE%g
8424 s%@RANLIB@%$RANLIB%g
8427 s%@ALLOCA@%$ALLOCA%g
8428 s%@GLIBC21@%$GLIBC21%g
8429 s%@LIBICONV@%$LIBICONV%g
8430 s%@USE_NLS@%$USE_NLS%g
8431 s%@MSGFMT@%$MSGFMT%g
8432 s%@GMSGFMT@%$GMSGFMT%g
8433 s%@XGETTEXT@%$XGETTEXT%g
8434 s%@INTLBISON@%$INTLBISON%g
8435 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8436 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8437 s%@CATALOGS@%$CATALOGS%g
8438 s%@CATOBJEXT@%$CATOBJEXT%g
8439 s%@GMOFILES@%$GMOFILES%g
8440 s%@INTLLIBS@%$INTLLIBS%g
8441 s%@INTLOBJS@%$INTLOBJS%g
8442 s%@POFILES@%$POFILES%g
8444 s%@DATADIRNAME@%$DATADIRNAME%g
8445 s%@INSTOBJEXT@%$INSTOBJEXT%g
8446 s%@GENCAT@%$GENCAT%g
8447 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8448 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8449 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8450 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8451 s%@INSTALL_DATA@%$INSTALL_DATA%g
8452 s%@WINDRES@%$WINDRES%g
8453 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8454 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8455 s%@SDL_CONFIG@%$SDL_CONFIG%g
8456 s%@ESD_CONFIG@%$ESD_CONFIG%g
8457 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8458 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8459 s%@GTK_CONFIG@%$GTK_CONFIG%g
8460 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8461 s%@DATA_PATH@%$DATA_PATH%g
8462 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8465 s%@PLUGINS@%$PLUGINS%g
8466 s%@BUILTINS@%$BUILTINS%g
8467 s%@ALIASES@%$ALIASES%g
8472 s%@OPTIMS@%$OPTIMS%g
8473 s%@TUNING@%$TUNING%g
8474 s%@RELEASE@%$RELEASE%g
8476 s%@BCBUILDER@%$BCBUILDER%g
8477 s%@PACKAGE@%$PACKAGE%g
8478 s%@VERSION@%$VERSION%g
8479 s%@NEED_GETOPT@%$NEED_GETOPT%g
8480 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8481 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8482 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8483 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8484 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8485 s%@arts_CFLAGS@%$arts_CFLAGS%g
8486 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8487 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8488 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8489 s%@directx_CFLAGS@%$directx_CFLAGS%g
8490 s%@esd_CFLAGS@%$esd_CFLAGS%g
8491 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8492 s%@glide_CFLAGS@%$glide_CFLAGS%g
8493 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8494 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8495 s%@kde_CFLAGS@%$kde_CFLAGS%g
8496 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8497 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8498 s%@mad_CFLAGS@%$mad_CFLAGS%g
8499 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8500 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8501 s%@qt_CFLAGS@%$qt_CFLAGS%g
8502 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8503 s%@x11_CFLAGS@%$x11_CFLAGS%g
8504 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8505 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8506 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8507 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8508 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8509 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8510 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8511 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8512 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8513 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8514 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8515 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8516 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8517 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8518 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8519 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8520 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8521 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8522 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8523 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8524 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8525 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8526 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8527 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8528 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8529 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8530 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8531 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8532 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8533 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8534 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8535 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8536 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8537 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8538 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8539 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8540 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8541 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8542 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8543 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8544 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8545 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8546 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8551 cat >> $CONFIG_STATUS <<\EOF
8553 # Split the substitutions into bite-sized pieces for seds with
8554 # small command number limits, like on Digital OSF/1 and HP-UX.
8555 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8556 ac_file
=1 # Number of current file.
8557 ac_beg
=1 # First line for current file.
8558 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8561 while $ac_more_lines; do
8562 if test $ac_beg -gt 1; then
8563 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8565 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8567 if test ! -s conftest.s
$ac_file; then
8569 rm -f conftest.s
$ac_file
8571 if test -z "$ac_sed_cmds"; then
8572 ac_sed_cmds
="sed -f conftest.s$ac_file"
8574 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8576 ac_file
=`expr $ac_file + 1`
8578 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8581 if test -z "$ac_sed_cmds"; then
8586 cat >> $CONFIG_STATUS <<EOF
8588 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8590 cat >> $CONFIG_STATUS <<\EOF
8591 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8592 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8594 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8595 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8596 *) ac_file_in
="${ac_file}.in" ;;
8599 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8601 # Remove last slash and all that follows it. Not all systems have dirname.
8602 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8603 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8604 # The file is in a subdirectory.
8605 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8606 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8607 # A "../" for each directory in $ac_dir_suffix.
8608 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8610 ac_dir_suffix
= ac_dots
=
8613 case "$ac_given_srcdir" in
8615 if test -z "$ac_dots"; then top_srcdir
=.
8616 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8617 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8619 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8620 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8623 case "$ac_given_INSTALL" in
8624 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
8625 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
8628 echo creating
"$ac_file"
8630 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8632 *Makefile
*) ac_comsub
="1i\\
8633 # $configure_input" ;;
8637 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8639 s%@configure_input@%$configure_input%g
8640 s%@srcdir@%$srcdir%g
8641 s%@top_srcdir@%$top_srcdir%g
8642 s%@INSTALL@%$INSTALL%g
8643 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8647 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8648 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8650 # ac_d sets the value in "#define NAME VALUE" lines.
8651 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8652 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8655 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8656 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8657 ac_uB
='\([ ]\)%\1#\2define\3'
8660 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8661 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8662 ac_eB
='$%\1#\2define\3'
8666 if test "${CONFIG_HEADERS+set}" != set; then
8668 cat >> $CONFIG_STATUS <<EOF
8669 CONFIG_HEADERS="include/defs.h"
8671 cat >> $CONFIG_STATUS <<\EOF
8673 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8676 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8677 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8678 *) ac_file_in
="${ac_file}.in" ;;
8681 echo creating
$ac_file
8683 rm -f conftest.frag conftest.
in conftest.out
8684 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8685 cat $ac_file_inputs > conftest.
in
8689 # Transform confdefs.h into a sed script conftest.vals that substitutes
8690 # the proper values into config.h.in to produce config.h. And first:
8691 # Protect against being on the right side of a sed subst in config.status.
8692 # Protect against being in an unquoted here document in config.status.
8694 cat > conftest.hdr
<<\EOF
8697 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8701 sed -n -f conftest.hdr confdefs.h > conftest.vals
8704 # This sed command replaces #undef with comments. This is necessary, for
8705 # example, in the case of _POSIX_SOURCE, which is predefined and required
8706 # on some systems where configure will not decide to define it.
8707 cat >> conftest.vals <<\EOF
8708 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8711 # Break up conftest.vals because some shells have a limit on
8712 # the size of here documents, and old seds have small limits too.
8717 ac_lines=`grep -c . conftest.vals
`
8718 # grep -c gives empty output for an empty file on some AIX systems.
8719 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8720 # Write a limited-size here document to conftest.frag.
8721 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8722 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8724 sed -f conftest.frag conftest.in > conftest.out
8726 mv conftest.out conftest.in
8728 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8730 mv conftest.tail conftest.vals
8734 cat >> $CONFIG_STATUS <<\EOF
8735 rm -f conftest.frag conftest.h
8736 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8737 cat conftest.in >> conftest.h
8739 if cmp -s $ac_file conftest.h 2>/dev/null; then
8740 echo "$ac_file is unchanged"
8743 # Remove last slash and all that follows it. Not all systems have dirname.
8744 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8745 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8746 # The file is in a subdirectory.
8747 test ! -d "$ac_dir" && mkdir "$ac_dir"
8750 mv conftest.h $ac_file
8755 cat >> $CONFIG_STATUS <<EOF
8759 cat >> $CONFIG_STATUS <<\EOF
8760 for ac_file in $CONFIG_FILES; do
8761 # Support "outfile[:infile[:infile...]]"
8763 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
8765 # PO directories have a Makefile.in generated from Makefile.in.in.
8766 case "$ac_file" in */Makefile.in)
8767 # Adjust a relative srcdir.
8768 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
8769 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
8770 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
8771 # In autoconf-2.13 it is called $ac_given_srcdir.
8772 # In autoconf-2.50 it is called $srcdir.
8773 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8774 case "$ac_given_srcdir" in
8775 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
8776 /*) top_srcdir="$ac_given_srcdir" ;;
8777 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8779 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8780 rm -f "$ac_dir/POTFILES"
8781 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8782 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8783 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8784 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8792 chmod +x $CONFIG_STATUS
8793 rm -fr confdefs* $ac_clean_files
8794 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8799 --------------------
8800 vlc version : ${VERSION}
8802 architecture : ${ARCH}
8803 optimizations : ${OPTIMS}
8805 debug mode : ${DEBUG}
8806 release : ${RELEASE}
8807 cprof/gprof support : ${CPROF}/${GPROF}
8808 need builtin getopt : ${NEED_GETOPT}
8809 built-in modules :${BUILTINS}
8810 plug-in modules :${PLUGINS}
8811 vlc aliases :${ALIASES}
8813 You may now tune Makefile.opts at your convenience, for instance to choose
8814 which modules get compiled as plugins.
8816 To build vlc and its plugins, type \`$VLC_MAKE'.