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 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
17 --disable-mmx Disable MMX optimizations (default enabled for x86)"
19 --enable-altivec Enable altivec optimizations (default disabled since it is broken)"
21 --enable-debug Enable debug mode (default disabled)"
23 --enable-stats Enable printing of statistics (default disabled)"
25 --enable-trace Enable trace mode (default disabled)"
27 --enable-profiling Enable gprof profiling (default disabled)"
29 --disable-optimizations Disable compiler optimizations (default enabled)"
31 --enable-pth Enable GNU Pth support (default disabled)"
33 --disable-css Disable DVD CSS decryption (default enabled)"
35 --disable-dummy dummy module (default enabled)"
37 --disable-null Null module (default enabled)"
39 --disable-rc rc module (default enabled)"
41 --disable-dsp Linux /dev/dsp support (default enabled)"
43 --enable-esd Esound library support (default disabled)"
45 --enable-darwin Darwin sound support (default disabled)"
47 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
49 --enable-fb Linux framebuffer support (default disabled)"
51 --with-ggi[=name] GGI support (default disabled)"
53 --with-sdl[=name] SDL support (default enabled)"
55 --with-directx[=name] Windows DirectX support (default enabled)"
57 --with-glide[=name] Glide (3dfx) support (default disabled)"
59 --enable-ncurses ncurses interface support (default disabled)"
61 --enable-qt Qt interface support (default disabled)"
63 --enable-kde KDE interface support (default disabled)"
65 --enable-gnome Gnome interface support (default disabled)"
67 --disable-gtk Gtk+ support (default enabled)"
69 --disable-x11 X11 support (default enabled)"
71 --disable-xvideo XVideo support (default enabled)"
73 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
79 cache_file=./config.cache
88 program_transform_name=s,x,x,
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
109 # Initialize some other variables.
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
128 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
132 # Accept the important Cygnus configure options, so we can diagnose typos.
136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139 bindir="$ac_optarg" ;;
141 -build | --build | --buil | --bui | --bu)
143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144 build="$ac_optarg" ;;
146 -cache-file | --cache-file | --cache-fil | --cache-fi \
147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148 ac_prev=cache_file ;;
149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151 cache_file="$ac_optarg" ;;
153 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
155 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
157 datadir="$ac_optarg" ;;
159 -disable-* | --disable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* | --enable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183 | --exec | --exe | --ex)
184 ac_prev=exec_prefix ;;
185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187 | --exec=* | --exe=* | --ex=*)
188 exec_prefix="$ac_optarg" ;;
190 -gas | --gas | --ga | --g)
191 # Obsolete; use --with-gas.
194 -help | --help | --hel | --he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
249 -host | --host | --hos | --ho)
251 -host=* | --host=* | --hos=* | --ho=*)
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir="$ac_optarg" ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir="$ac_optarg" ;;
266 -libdir | --libdir | --libdi | --libd)
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 libdir="$ac_optarg" ;;
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir="$ac_optarg" ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir="$ac_optarg" ;;
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 mandir="$ac_optarg" ;;
293 # Obsolete; use --without-fp.
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311 oldincludedir="$ac_optarg" ;;
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 prefix="$ac_optarg" ;;
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323 program_prefix="$ac_optarg" ;;
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330 program_suffix="$ac_optarg" ;;
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
347 program_transform_name="$ac_optarg" ;;
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
357 sbindir="$ac_optarg" ;;
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
368 sharedstatedir="$ac_optarg" ;;
370 -site | --site | --sit)
372 -site=* | --site=* | --sit=*)
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
387 -target | --target | --targe | --targ | --tar | --ta | --t)
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
422 # Obsolete; use --with-x.
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/interface/main.c
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
524 if test ! -r $srcdir/$ac_unique_file; then
528 ac_srcdir_defaulted=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
558 echo "creating cache $cache_file"
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
580 ac_n= ac_c='\c' ac_t=
587 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
588 if test -f $ac_dir/install-sh; then
590 ac_install_sh="$ac_aux_dir/install-sh -c"
592 elif test -f $ac_dir/install.sh; then
594 ac_install_sh="$ac_aux_dir/install.sh -c"
598 if test -z "$ac_aux_dir"; then
599 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
601 ac_config_guess=$ac_aux_dir/config.guess
602 ac_config_sub=$ac_aux_dir/config.sub
603 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
606 # Make sure we can run config.sub.
607 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
608 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
611 echo $ac_n "checking host system type""... $ac_c" 1>&6
612 echo "configure:613: checking host system type" >&5
615 case "$host_alias" in
619 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
620 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
622 *) host_alias=$nonopt ;;
626 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
627 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
628 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
629 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
630 echo "$ac_t""$host" 1>&6
638 save_CFLAGS="${CFLAGS}"
640 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
641 echo "configure:642: checking whether ${MAKE-make} sets \${MAKE}" >&5
642 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
643 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
644 echo $ac_n "(cached) $ac_c" 1>&6
646 cat > conftestmake <<\EOF
648 @echo 'ac_maketemp="${MAKE}"'
650 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
651 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
652 if test -n "$ac_maketemp"; then
653 eval ac_cv_prog_make_${ac_make}_set=yes
655 eval ac_cv_prog_make_${ac_make}_set=no
659 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
660 echo "$ac_t""yes" 1>&6
663 echo "$ac_t""no" 1>&6
664 SET_MAKE="MAKE=${MAKE-make}"
667 # Extract the first word of "gcc", so it can be a program name with args.
668 set dummy gcc; ac_word=$2
669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
670 echo "configure:671: checking for $ac_word" >&5
671 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
672 echo $ac_n "(cached) $ac_c" 1>&6
674 if test -n "$CC"; then
675 ac_cv_prog_CC="$CC" # Let the user override the test.
677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
679 for ac_dir in $ac_dummy; do
680 test -z "$ac_dir" && ac_dir=.
681 if test -f $ac_dir/$ac_word; then
690 if test -n "$CC"; then
691 echo "$ac_t""$CC" 1>&6
693 echo "$ac_t""no" 1>&6
696 if test -z "$CC"; then
697 # Extract the first word of "cc", so it can be a program name with args.
698 set dummy cc; ac_word=$2
699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
700 echo "configure:701: checking for $ac_word" >&5
701 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
704 if test -n "$CC"; then
705 ac_cv_prog_CC="$CC" # Let the user override the test.
707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
710 for ac_dir in $ac_dummy; do
711 test -z "$ac_dir" && ac_dir=.
712 if test -f $ac_dir/$ac_word; then
713 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
722 if test $ac_prog_rejected = yes; then
723 # We found a bogon in the path, so make sure we never use it.
724 set dummy $ac_cv_prog_CC
726 if test $# -gt 0; then
727 # We chose a different compiler from the bogus one.
728 # However, it has the same basename, so the bogon will be chosen
729 # first if we set CC to just the basename; use the full file name.
731 set dummy "$ac_dir/$ac_word" "$@"
739 if test -n "$CC"; then
740 echo "$ac_t""$CC" 1>&6
742 echo "$ac_t""no" 1>&6
745 if test -z "$CC"; then
748 # Extract the first word of "cl", so it can be a program name with args.
749 set dummy cl; ac_word=$2
750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
751 echo "configure:752: checking for $ac_word" >&5
752 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 if test -n "$CC"; then
756 ac_cv_prog_CC="$CC" # Let the user override the test.
758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
760 for ac_dir in $ac_dummy; do
761 test -z "$ac_dir" && ac_dir=.
762 if test -f $ac_dir/$ac_word; then
771 if test -n "$CC"; then
772 echo "$ac_t""$CC" 1>&6
774 echo "$ac_t""no" 1>&6
779 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
782 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
783 echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
787 ac_cpp='$CPP $CPPFLAGS'
788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
790 cross_compiling=$ac_cv_prog_cc_cross
792 cat > conftest.$ac_ext << EOF
794 #line 795 "configure"
795 #include "confdefs.h"
799 if { (eval echo configure:800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
800 ac_cv_prog_cc_works=yes
801 # If we can't run a trivial program, we are probably using a cross compiler.
802 if (./conftest; exit) 2>/dev/null; then
803 ac_cv_prog_cc_cross=no
805 ac_cv_prog_cc_cross=yes
808 echo "configure: failed program was:" >&5
809 cat conftest.$ac_ext >&5
810 ac_cv_prog_cc_works=no
814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
815 ac_cpp='$CPP $CPPFLAGS'
816 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
817 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
818 cross_compiling=$ac_cv_prog_cc_cross
820 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
821 if test $ac_cv_prog_cc_works = no; then
822 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
824 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
825 echo "configure:826: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
826 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
827 cross_compiling=$ac_cv_prog_cc_cross
829 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
830 echo "configure:831: checking whether we are using GNU C" >&5
831 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
834 cat > conftest.c <<EOF
839 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
846 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
848 if test $ac_cv_prog_gcc = yes; then
854 ac_test_CFLAGS="${CFLAGS+set}"
855 ac_save_CFLAGS="$CFLAGS"
857 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
858 echo "configure:859: checking whether ${CC-cc} accepts -g" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
862 echo 'void f(){}' > conftest.c
863 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
872 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
873 if test "$ac_test_CFLAGS" = set; then
874 CFLAGS="$ac_save_CFLAGS"
875 elif test $ac_cv_prog_cc_g = yes; then
876 if test "$GCC" = yes; then
882 if test "$GCC" = yes; then
889 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
890 echo "configure:891: checking how to run the C preprocessor" >&5
891 # On Suns, sometimes $CPP names a directory.
892 if test -n "$CPP" && test -d "$CPP"; then
895 if test -z "$CPP"; then
896 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&6
899 # This must be in double quotes, not single quotes, because CPP may get
900 # substituted into the Makefile and "${CC-cc}" will confuse make.
902 # On the NeXT, cc -E runs the code through the compiler's parser,
903 # not just through cpp.
904 cat > conftest.$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
911 { (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
913 if test -z "$ac_err"; then
917 echo "configure: failed program was:" >&5
918 cat conftest.$ac_ext >&5
920 CPP="${CC-cc} -E -traditional-cpp"
921 cat > conftest.$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
928 { (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
930 if test -z "$ac_err"; then
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
937 CPP="${CC-cc} -nologo -E"
938 cat > conftest.$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
945 { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
947 if test -z "$ac_err"; then
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
961 ac_cv_prog_CPP="$CPP"
963 CPP="$ac_cv_prog_CPP"
965 ac_cv_prog_CPP="$CPP"
967 echo "$ac_t""$CPP" 1>&6
969 # Extract the first word of "ranlib", so it can be a program name with args.
970 set dummy ranlib; ac_word=$2
971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
972 echo "configure:973: checking for $ac_word" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 if test -n "$RANLIB"; then
977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
981 for ac_dir in $ac_dummy; do
982 test -z "$ac_dir" && ac_dir=.
983 if test -f $ac_dir/$ac_word; then
984 ac_cv_prog_RANLIB="ranlib"
989 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
992 RANLIB="$ac_cv_prog_RANLIB"
993 if test -n "$RANLIB"; then
994 echo "$ac_t""$RANLIB" 1>&6
996 echo "$ac_t""no" 1>&6
1000 # Find a good install program. We prefer a C program (faster),
1001 # so one script is as good as another. But avoid the broken or
1002 # incompatible versions:
1003 # SysV /etc/install, /usr/sbin/install
1004 # SunOS /usr/etc/install
1005 # IRIX /sbin/install
1007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1010 # ./install, which can be erroneously created by make from ./install.sh.
1011 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1012 echo "configure:1013: checking for a BSD compatible install" >&5
1013 if test -z "$INSTALL"; then
1014 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1018 for ac_dir in $PATH; do
1019 # Account for people who put trailing slashes in PATH elements.
1021 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1023 # OSF1 and SCO ODT 3.0 have their own names for install.
1024 # Don't use installbsd from OSF since it installs stuff as root
1026 for ac_prog in ginstall scoinst install; do
1027 if test -f $ac_dir/$ac_prog; then
1028 if test $ac_prog = install &&
1029 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1030 # AIX install. It has an incompatible calling convention.
1033 ac_cv_path_install="$ac_dir/$ac_prog -c"
1044 if test "${ac_cv_path_install+set}" = set; then
1045 INSTALL="$ac_cv_path_install"
1047 # As a last resort, use the slow shell script. We don't cache a
1048 # path for INSTALL within a source directory, because that will
1049 # break other packages using the cache if that directory is
1050 # removed, or if the path is relative.
1051 INSTALL="$ac_install_sh"
1054 echo "$ac_t""$INSTALL" 1>&6
1056 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1057 # It thinks the first close brace ends the variable substitution.
1058 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1060 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1062 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1065 echo $ac_n "checking for working const""... $ac_c" 1>&6
1066 echo "configure:1067: checking for working const" >&5
1067 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1070 cat > conftest.$ac_ext <<EOF
1071 #line 1072 "configure"
1072 #include "confdefs.h"
1076 /* Ultrix mips cc rejects this. */
1077 typedef int charset[2]; const charset x;
1078 /* SunOS 4.1.1 cc rejects this. */
1079 char const *const *ccp;
1081 /* NEC SVR4.0.2 mips cc rejects this. */
1082 struct point {int x, y;};
1083 static struct point const zero = {0,0};
1084 /* AIX XL C 1.02.0.0 rejects this.
1085 It does not let you subtract one const X* pointer from another in an arm
1086 of an if-expression whose if-part is not a constant expression */
1087 const char *g = "string";
1088 ccp = &g + (g ? g-g : 0);
1089 /* HPUX 7.0 cc rejects these. */
1092 ccp = (char const *const *) p;
1093 { /* SCO 3.2v4 cc rejects this. */
1095 char const *s = 0 ? (char *) 0 : (char const *) 0;
1099 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1101 const int *foo = &x[0];
1104 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1105 typedef const int *iptr;
1109 { /* AIX XL C 1.02.0.0 rejects this saying
1110 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1111 struct s { int j; const int *ap[3]; };
1112 struct s *b; b->j = 5;
1114 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1120 if { (eval echo configure:1121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1124 echo "configure: failed program was:" >&5
1125 cat conftest.$ac_ext >&5
1132 echo "$ac_t""$ac_cv_c_const" 1>&6
1133 if test $ac_cv_c_const = no; then
1134 cat >> confdefs.h <<\EOF
1141 if test x${cross_compiling} != xyes; then
1142 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1143 echo "configure:1144: checking whether byte ordering is bigendian" >&5
1144 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 ac_cv_c_bigendian=unknown
1148 # See if sys/param.h defines the BYTE_ORDER macro.
1149 cat > conftest.$ac_ext <<EOF
1150 #line 1151 "configure"
1151 #include "confdefs.h"
1152 #include <sys/types.h>
1153 #include <sys/param.h>
1156 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1161 if { (eval echo configure:1162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1163 # It does; now see whether it defined to BIG_ENDIAN or not.
1164 cat > conftest.$ac_ext <<EOF
1165 #line 1166 "configure"
1166 #include "confdefs.h"
1167 #include <sys/types.h>
1168 #include <sys/param.h>
1171 #if BYTE_ORDER != BIG_ENDIAN
1176 if { (eval echo configure:1177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1178 ac_cv_c_bigendian=yes
1180 echo "configure: failed program was:" >&5
1181 cat conftest.$ac_ext >&5
1183 ac_cv_c_bigendian=no
1187 echo "configure: failed program was:" >&5
1188 cat conftest.$ac_ext >&5
1191 if test $ac_cv_c_bigendian = unknown; then
1192 if test "$cross_compiling" = yes; then
1193 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1195 cat > conftest.$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1199 /* Are we little or big endian? From Harbison&Steele. */
1203 char c[sizeof (long)];
1206 exit (u.c[sizeof (long) - 1] == 1);
1209 if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1211 ac_cv_c_bigendian=no
1213 echo "configure: failed program was:" >&5
1214 cat conftest.$ac_ext >&5
1216 ac_cv_c_bigendian=yes
1224 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1225 if test $ac_cv_c_bigendian = yes; then
1226 cat >> confdefs.h <<\EOF
1227 #define WORDS_BIGENDIAN 1
1234 for ac_func in gettimeofday select strerror strtod strtol
1236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1237 echo "configure:1238: checking for $ac_func" >&5
1238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 cat > conftest.$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1244 /* System header to define __stub macros and hopefully few prototypes,
1245 which can conflict with char $ac_func(); below. */
1247 /* Override any gcc2 internal prototype to avoid an error. */
1248 /* We use char because int might match the return type of a gcc2
1249 builtin and then its argument prototype would still apply. */
1254 /* The GNU C library defines this for functions which it implements
1255 to always fail with ENOSYS. Some functions are actually named
1256 something starting with __ and the normal name is an alias. */
1257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1265 if { (eval echo configure:1266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1267 eval "ac_cv_func_$ac_func=yes"
1269 echo "configure: failed program was:" >&5
1270 cat conftest.$ac_ext >&5
1272 eval "ac_cv_func_$ac_func=no"
1277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1278 echo "$ac_t""yes" 1>&6
1279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1280 cat >> confdefs.h <<EOF
1281 #define $ac_tr_func 1
1285 echo "$ac_t""no" 1>&6
1289 for ac_func in setenv putenv
1291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1292 echo "configure:1293: checking for $ac_func" >&5
1293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 cat > conftest.$ac_ext <<EOF
1297 #line 1298 "configure"
1298 #include "confdefs.h"
1299 /* System header to define __stub macros and hopefully few prototypes,
1300 which can conflict with char $ac_func(); below. */
1302 /* Override any gcc2 internal prototype to avoid an error. */
1303 /* We use char because int might match the return type of a gcc2
1304 builtin and then its argument prototype would still apply. */
1309 /* The GNU C library defines this for functions which it implements
1310 to always fail with ENOSYS. Some functions are actually named
1311 something starting with __ and the normal name is an alias. */
1312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1320 if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1322 eval "ac_cv_func_$ac_func=yes"
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1327 eval "ac_cv_func_$ac_func=no"
1332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1333 echo "$ac_t""yes" 1>&6
1334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1335 cat >> confdefs.h <<EOF
1336 #define $ac_tr_func 1
1340 echo "$ac_t""no" 1>&6
1344 echo $ac_n "checking for connect""... $ac_c" 1>&6
1345 echo "configure:1346: checking for connect" >&5
1346 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 cat > conftest.$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1352 /* System header to define __stub macros and hopefully few prototypes,
1353 which can conflict with char connect(); below. */
1355 /* Override any gcc2 internal prototype to avoid an error. */
1356 /* We use char because int might match the return type of a gcc2
1357 builtin and then its argument prototype would still apply. */
1362 /* The GNU C library defines this for functions which it implements
1363 to always fail with ENOSYS. Some functions are actually named
1364 something starting with __ and the normal name is an alias. */
1365 #if defined (__stub_connect) || defined (__stub___connect)
1373 if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1375 eval "ac_cv_func_connect=yes"
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1380 eval "ac_cv_func_connect=no"
1385 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1386 echo "$ac_t""yes" 1>&6
1389 echo "$ac_t""no" 1>&6
1391 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1392 echo "configure:1393: checking for connect in -lsocket" >&5
1393 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 ac_save_LIBS="$LIBS"
1398 LIBS="-lsocket $LIBS"
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1402 /* Override any gcc2 internal prototype to avoid an error. */
1403 /* We use char because int might match the return type of a gcc2
1404 builtin and then its argument prototype would still apply. */
1411 if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1413 eval "ac_cv_lib_$ac_lib_var=yes"
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1418 eval "ac_cv_lib_$ac_lib_var=no"
1421 LIBS="$ac_save_LIBS"
1424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1425 echo "$ac_t""yes" 1>&6
1426 LIB="${LIB} -lsocket"
1428 echo "$ac_t""no" 1>&6
1434 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1435 echo "configure:1436: checking for gethostbyname" >&5
1436 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 cat > conftest.$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1442 /* System header to define __stub macros and hopefully few prototypes,
1443 which can conflict with char gethostbyname(); below. */
1445 /* Override any gcc2 internal prototype to avoid an error. */
1446 /* We use char because int might match the return type of a gcc2
1447 builtin and then its argument prototype would still apply. */
1448 char gethostbyname();
1452 /* The GNU C library defines this for functions which it implements
1453 to always fail with ENOSYS. Some functions are actually named
1454 something starting with __ and the normal name is an alias. */
1455 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1463 if { (eval echo configure:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1465 eval "ac_cv_func_gethostbyname=yes"
1467 echo "configure: failed program was:" >&5
1468 cat conftest.$ac_ext >&5
1470 eval "ac_cv_func_gethostbyname=no"
1475 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1479 echo "$ac_t""no" 1>&6
1481 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1482 echo "configure:1483: checking for gethostbyname in -lnsl" >&5
1483 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 ac_save_LIBS="$LIBS"
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1492 /* Override any gcc2 internal prototype to avoid an error. */
1493 /* We use char because int might match the return type of a gcc2
1494 builtin and then its argument prototype would still apply. */
1495 char gethostbyname();
1501 if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1503 eval "ac_cv_lib_$ac_lib_var=yes"
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1508 eval "ac_cv_lib_$ac_lib_var=no"
1511 LIBS="$ac_save_LIBS"
1514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1515 echo "$ac_t""yes" 1>&6
1518 echo "$ac_t""no" 1>&6
1524 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1525 echo "configure:1526: checking for nanosleep" >&5
1526 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1532 /* System header to define __stub macros and hopefully few prototypes,
1533 which can conflict with char nanosleep(); below. */
1535 /* Override any gcc2 internal prototype to avoid an error. */
1536 /* We use char because int might match the return type of a gcc2
1537 builtin and then its argument prototype would still apply. */
1542 /* The GNU C library defines this for functions which it implements
1543 to always fail with ENOSYS. Some functions are actually named
1544 something starting with __ and the normal name is an alias. */
1545 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1553 if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1555 eval "ac_cv_func_nanosleep=yes"
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1560 eval "ac_cv_func_nanosleep=no"
1565 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1566 echo "$ac_t""yes" 1>&6
1569 echo "$ac_t""no" 1>&6
1571 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1572 echo "configure:1573: checking for nanosleep in -lrt" >&5
1573 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 ac_save_LIBS="$LIBS"
1579 cat > conftest.$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1582 /* Override any gcc2 internal prototype to avoid an error. */
1583 /* We use char because int might match the return type of a gcc2
1584 builtin and then its argument prototype would still apply. */
1591 if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1593 eval "ac_cv_lib_$ac_lib_var=yes"
1595 echo "configure: failed program was:" >&5
1596 cat conftest.$ac_ext >&5
1598 eval "ac_cv_lib_$ac_lib_var=no"
1601 LIBS="$ac_save_LIBS"
1604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1605 echo "$ac_t""yes" 1>&6
1608 echo "$ac_t""no" 1>&6
1610 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1611 echo "configure:1612: checking for nanosleep in -lposix4" >&5
1612 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 ac_save_LIBS="$LIBS"
1617 LIBS="-lposix4 $LIBS"
1618 cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1621 /* Override any gcc2 internal prototype to avoid an error. */
1622 /* We use char because int might match the return type of a gcc2
1623 builtin and then its argument prototype would still apply. */
1630 if { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1632 eval "ac_cv_lib_$ac_lib_var=yes"
1634 echo "configure: failed program was:" >&5
1635 cat conftest.$ac_ext >&5
1637 eval "ac_cv_lib_$ac_lib_var=no"
1640 LIBS="$ac_save_LIBS"
1643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1644 echo "$ac_t""yes" 1>&6
1645 LIB="${LIB} -lposix4"
1647 echo "$ac_t""no" 1>&6
1656 for ac_func in usleep
1658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1659 echo "configure:1660: checking for $ac_func" >&5
1660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1663 cat > conftest.$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1666 /* System header to define __stub macros and hopefully few prototypes,
1667 which can conflict with char $ac_func(); below. */
1669 /* Override any gcc2 internal prototype to avoid an error. */
1670 /* We use char because int might match the return type of a gcc2
1671 builtin and then its argument prototype would still apply. */
1676 /* The GNU C library defines this for functions which it implements
1677 to always fail with ENOSYS. Some functions are actually named
1678 something starting with __ and the normal name is an alias. */
1679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1687 if { (eval echo configure:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1689 eval "ac_cv_func_$ac_func=yes"
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1694 eval "ac_cv_func_$ac_func=no"
1699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1700 echo "$ac_t""yes" 1>&6
1701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1702 cat >> confdefs.h <<EOF
1703 #define $ac_tr_func 1
1707 echo "$ac_t""no" 1>&6
1711 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1712 echo "configure:1713: checking for inet_aton" >&5
1713 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1716 cat > conftest.$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1719 /* System header to define __stub macros and hopefully few prototypes,
1720 which can conflict with char inet_aton(); below. */
1722 /* Override any gcc2 internal prototype to avoid an error. */
1723 /* We use char because int might match the return type of a gcc2
1724 builtin and then its argument prototype would still apply. */
1729 /* The GNU C library defines this for functions which it implements
1730 to always fail with ENOSYS. Some functions are actually named
1731 something starting with __ and the normal name is an alias. */
1732 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1740 if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1742 eval "ac_cv_func_inet_aton=yes"
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1747 eval "ac_cv_func_inet_aton=no"
1752 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1753 echo "$ac_t""yes" 1>&6
1756 echo "$ac_t""no" 1>&6
1758 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1759 echo "configure:1760: checking for inet_aton in -lresolv" >&5
1760 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 ac_save_LIBS="$LIBS"
1765 LIBS="-lresolv $LIBS"
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1780 eval "ac_cv_lib_$ac_lib_var=yes"
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1785 eval "ac_cv_lib_$ac_lib_var=no"
1788 LIBS="$ac_save_LIBS"
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1793 LIB="${LIB} -lresolv"
1795 echo "$ac_t""no" 1>&6
1801 for ac_func in vasprintf
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 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1847 cat >> confdefs.h <<EOF
1848 #define $ac_tr_func 1
1852 echo "$ac_t""no" 1>&6
1858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1859 echo "configure:1860: checking for $ac_func" >&5
1860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1866 /* System header to define __stub macros and hopefully few prototypes,
1867 which can conflict with char $ac_func(); below. */
1869 /* Override any gcc2 internal prototype to avoid an error. */
1870 /* We use char because int might match the return type of a gcc2
1871 builtin and then its argument prototype would still apply. */
1876 /* The GNU C library defines this for functions which it implements
1877 to always fail with ENOSYS. Some functions are actually named
1878 something starting with __ and the normal name is an alias. */
1879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1887 if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1889 eval "ac_cv_func_$ac_func=yes"
1891 echo "configure: failed program was:" >&5
1892 cat conftest.$ac_ext >&5
1894 eval "ac_cv_func_$ac_func=no"
1899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1902 cat >> confdefs.h <<EOF
1903 #define $ac_tr_func 1
1907 echo "$ac_t""no" 1>&6
1912 for ac_func in sigrelse
1914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_func" >&5
1916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 cat > conftest.$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1922 /* System header to define __stub macros and hopefully few prototypes,
1923 which can conflict with char $ac_func(); below. */
1925 /* Override any gcc2 internal prototype to avoid an error. */
1926 /* We use char because int might match the return type of a gcc2
1927 builtin and then its argument prototype would still apply. */
1932 /* The GNU C library defines this for functions which it implements
1933 to always fail with ENOSYS. Some functions are actually named
1934 something starting with __ and the normal name is an alias. */
1935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1943 if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1945 eval "ac_cv_func_$ac_func=yes"
1947 echo "configure: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1950 eval "ac_cv_func_$ac_func=no"
1955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1956 echo "$ac_t""yes" 1>&6
1957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1958 cat >> confdefs.h <<EOF
1959 #define $ac_tr_func 1
1963 echo "$ac_t""no" 1>&6
1968 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1969 echo "configure:1970: checking for getopt_long" >&5
1970 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 /* System header to define __stub macros and hopefully few prototypes,
1977 which can conflict with char getopt_long(); below. */
1979 /* Override any gcc2 internal prototype to avoid an error. */
1980 /* We use char because int might match the return type of a gcc2
1981 builtin and then its argument prototype would still apply. */
1986 /* The GNU C library defines this for functions which it implements
1987 to always fail with ENOSYS. Some functions are actually named
1988 something starting with __ and the normal name is an alias. */
1989 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
1997 if { (eval echo configure:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999 eval "ac_cv_func_getopt_long=yes"
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2004 eval "ac_cv_func_getopt_long=no"
2009 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2010 echo "$ac_t""yes" 1>&6
2011 cat >> confdefs.h <<\EOF
2012 #define HAVE_GETOPT_LONG 1
2016 echo "$ac_t""no" 1>&6
2017 # FreeBSD has a gnugetopt library for this:
2018 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2019 echo "configure:2020: checking for getopt_long in -lgnugetopt" >&5
2020 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 ac_save_LIBS="$LIBS"
2025 LIBS="-lgnugetopt $LIBS"
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 /* Override any gcc2 internal prototype to avoid an error. */
2030 /* We use char because int might match the return type of a gcc2
2031 builtin and then its argument prototype would still apply. */
2038 if { (eval echo configure:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2040 eval "ac_cv_lib_$ac_lib_var=yes"
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2045 eval "ac_cv_lib_$ac_lib_var=no"
2048 LIBS="$ac_save_LIBS"
2051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2052 echo "$ac_t""yes" 1>&6
2053 cat >> confdefs.h <<\EOF
2054 #define HAVE_GETOPT_LONG 1
2056 LIB="${LIB} -lgnugetopt"
2058 echo "$ac_t""no" 1>&6
2066 for ac_hdr in unistd.h
2068 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2070 echo "configure:2071: checking for $ac_hdr" >&5
2071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 cat > conftest.$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2080 { (eval echo configure:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2082 if test -z "$ac_err"; then
2084 eval "ac_cv_header_$ac_safe=yes"
2087 echo "configure: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2090 eval "ac_cv_header_$ac_safe=no"
2094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2095 echo "$ac_t""yes" 1>&6
2096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2097 cat >> confdefs.h <<EOF
2098 #define $ac_tr_hdr 1
2102 echo "$ac_t""no" 1>&6
2106 for ac_func in getpagesize
2108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2109 echo "configure:2110: checking for $ac_func" >&5
2110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 cat > conftest.$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2116 /* System header to define __stub macros and hopefully few prototypes,
2117 which can conflict with char $ac_func(); below. */
2119 /* Override any gcc2 internal prototype to avoid an error. */
2120 /* We use char because int might match the return type of a gcc2
2121 builtin and then its argument prototype would still apply. */
2126 /* The GNU C library defines this for functions which it implements
2127 to always fail with ENOSYS. Some functions are actually named
2128 something starting with __ and the normal name is an alias. */
2129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2137 if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2139 eval "ac_cv_func_$ac_func=yes"
2141 echo "configure: failed program was:" >&5
2142 cat conftest.$ac_ext >&5
2144 eval "ac_cv_func_$ac_func=no"
2149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2150 echo "$ac_t""yes" 1>&6
2151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2152 cat >> confdefs.h <<EOF
2153 #define $ac_tr_func 1
2157 echo "$ac_t""no" 1>&6
2161 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2162 echo "configure:2163: checking for working mmap" >&5
2163 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 if test "$cross_compiling" = yes; then
2167 ac_cv_func_mmap_fixed_mapped=no
2169 cat > conftest.$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2173 /* Thanks to Mike Haertel and Jim Avera for this test.
2174 Here is a matrix of mmap possibilities:
2175 mmap private not fixed
2176 mmap private fixed at somewhere currently unmapped
2177 mmap private fixed at somewhere already mapped
2178 mmap shared not fixed
2179 mmap shared fixed at somewhere currently unmapped
2180 mmap shared fixed at somewhere already mapped
2181 For private mappings, we should verify that changes cannot be read()
2182 back from the file, nor mmap's back from the file at a different
2183 address. (There have been systems where private was not correctly
2184 implemented like the infamous i386 svr4.0, and systems where the
2185 VM page cache was not coherent with the filesystem buffer cache
2186 like early versions of FreeBSD and possibly contemporary NetBSD.)
2187 For shared mappings, we should conversely verify that changes get
2188 propogated back to all the places they're supposed to be.
2190 Grep wants private fixed already mapped.
2191 The main things grep needs to know about mmap are:
2192 * does it exist and is it safe to write into the mmap'd area
2193 * how to use it (BSD variants) */
2194 #include <sys/types.h>
2196 #include <sys/mman.h>
2198 /* This mess was copied from the GNU getpagesize.h. */
2199 #ifndef HAVE_GETPAGESIZE
2200 # ifdef HAVE_UNISTD_H
2201 # include <unistd.h>
2204 /* Assume that all systems that can run configure have sys/param.h. */
2205 # ifndef HAVE_SYS_PARAM_H
2206 # define HAVE_SYS_PARAM_H 1
2209 # ifdef _SC_PAGESIZE
2210 # define getpagesize() sysconf(_SC_PAGESIZE)
2211 # else /* no _SC_PAGESIZE */
2212 # ifdef HAVE_SYS_PARAM_H
2213 # include <sys/param.h>
2214 # ifdef EXEC_PAGESIZE
2215 # define getpagesize() EXEC_PAGESIZE
2216 # else /* no EXEC_PAGESIZE */
2218 # define getpagesize() NBPG * CLSIZE
2221 # endif /* no CLSIZE */
2222 # else /* no NBPG */
2224 # define getpagesize() NBPC
2225 # else /* no NBPC */
2227 # define getpagesize() PAGESIZE
2228 # endif /* PAGESIZE */
2229 # endif /* no NBPC */
2230 # endif /* no NBPG */
2231 # endif /* no EXEC_PAGESIZE */
2232 # else /* no HAVE_SYS_PARAM_H */
2233 # define getpagesize() 8192 /* punt totally */
2234 # endif /* no HAVE_SYS_PARAM_H */
2235 # endif /* no _SC_PAGESIZE */
2237 #endif /* no HAVE_GETPAGESIZE */
2240 extern "C" { void *malloc(unsigned); }
2248 char *data, *data2, *data3;
2252 pagesize = getpagesize();
2255 * First, make a file with some known garbage in it.
2257 data = malloc(pagesize);
2260 for (i = 0; i < pagesize; ++i)
2261 *(data + i) = rand();
2263 fd = creat("conftestmmap", 0600);
2266 if (write(fd, data, pagesize) != pagesize)
2271 * Next, try to mmap the file at a fixed address which
2272 * already has something else allocated at it. If we can,
2273 * also make sure that we see the same garbage.
2275 fd = open("conftestmmap", O_RDWR);
2278 data2 = malloc(2 * pagesize);
2281 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2282 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2283 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2285 for (i = 0; i < pagesize; ++i)
2286 if (*(data + i) != *(data2 + i))
2290 * Finally, make sure that changes to the mapped area
2291 * do not percolate back to the file as seen by read().
2292 * (This is a bug on some variants of i386 svr4.0.)
2294 for (i = 0; i < pagesize; ++i)
2295 *(data2 + i) = *(data2 + i) + 1;
2296 data3 = malloc(pagesize);
2299 if (read(fd, data3, pagesize) != pagesize)
2301 for (i = 0; i < pagesize; ++i)
2302 if (*(data + i) != *(data3 + i))
2305 unlink("conftestmmap");
2310 if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2312 ac_cv_func_mmap_fixed_mapped=yes
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2317 ac_cv_func_mmap_fixed_mapped=no
2324 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2325 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2326 cat >> confdefs.h <<\EOF
2332 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2333 echo "configure:2334: checking return type of signal handlers" >&5
2334 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2340 #include <sys/types.h>
2346 extern "C" void (*signal (int, void (*)(int)))(int);
2348 void (*signal ()) ();
2355 if { (eval echo configure:2356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2357 ac_cv_type_signal=void
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2362 ac_cv_type_signal=int
2367 echo "$ac_t""$ac_cv_type_signal" 1>&6
2368 cat >> confdefs.h <<EOF
2369 #define RETSIGTYPE $ac_cv_type_signal
2373 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2374 echo "configure:2375: checking for dlopen in -ldl" >&5
2375 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2379 ac_save_LIBS="$LIBS"
2381 cat > conftest.$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2384 /* Override any gcc2 internal prototype to avoid an error. */
2385 /* We use char because int might match the return type of a gcc2
2386 builtin and then its argument prototype would still apply. */
2393 if { (eval echo configure:2394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2395 eval "ac_cv_lib_$ac_lib_var=yes"
2397 echo "configure: failed program was:" >&5
2398 cat conftest.$ac_ext >&5
2400 eval "ac_cv_lib_$ac_lib_var=no"
2403 LIBS="$ac_save_LIBS"
2406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2407 echo "$ac_t""yes" 1>&6
2410 echo "$ac_t""no" 1>&6
2413 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2414 echo "configure:2415: checking for pow in -lm" >&5
2415 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2419 ac_save_LIBS="$LIBS"
2421 cat > conftest.$ac_ext <<EOF
2422 #line 2423 "configure"
2423 #include "confdefs.h"
2424 /* Override any gcc2 internal prototype to avoid an error. */
2425 /* We use char because int might match the return type of a gcc2
2426 builtin and then its argument prototype would still apply. */
2433 if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2435 eval "ac_cv_lib_$ac_lib_var=yes"
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 eval "ac_cv_lib_$ac_lib_var=no"
2443 LIBS="$ac_save_LIBS"
2446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 LIB_YUV="${LIB_YUV} -lm"
2450 echo "$ac_t""no" 1>&6
2454 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2455 CFLAGS="${CFLAGS} -I/usr/local/include"
2458 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2459 echo "configure:2460: checking for pthread_attr_init in -lpthread" >&5
2460 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 ac_save_LIBS="$LIBS"
2465 LIBS="-lpthread $LIBS"
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2469 /* Override any gcc2 internal prototype to avoid an error. */
2470 /* We use char because int might match the return type of a gcc2
2471 builtin and then its argument prototype would still apply. */
2472 char pthread_attr_init();
2478 if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2480 eval "ac_cv_lib_$ac_lib_var=yes"
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 eval "ac_cv_lib_$ac_lib_var=no"
2488 LIBS="$ac_save_LIBS"
2491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2492 echo "$ac_t""yes" 1>&6
2493 THREAD_LIB="-lpthread"
2495 echo "$ac_t""no" 1>&6
2498 if test "x${THREAD_LIB}" = xerror; then
2499 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2500 echo "configure:2501: checking for pthread_attr_init in -lpthreads" >&5
2501 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 ac_save_LIBS="$LIBS"
2506 LIBS="-lpthreads $LIBS"
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2510 /* Override any gcc2 internal prototype to avoid an error. */
2511 /* We use char because int might match the return type of a gcc2
2512 builtin and then its argument prototype would still apply. */
2513 char pthread_attr_init();
2519 if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2521 eval "ac_cv_lib_$ac_lib_var=yes"
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2526 eval "ac_cv_lib_$ac_lib_var=no"
2529 LIBS="$ac_save_LIBS"
2532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2533 echo "$ac_t""yes" 1>&6
2534 THREAD_LIB="-lpthreads"
2536 echo "$ac_t""no" 1>&6
2540 if test "x${THREAD_LIB}" = xerror; then
2541 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2542 echo "configure:2543: checking for pthread_attr_init in -lc_r" >&5
2543 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 ac_save_LIBS="$LIBS"
2549 cat > conftest.$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2552 /* Override any gcc2 internal prototype to avoid an error. */
2553 /* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2555 char pthread_attr_init();
2561 if { (eval echo configure:2562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2563 eval "ac_cv_lib_$ac_lib_var=yes"
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2568 eval "ac_cv_lib_$ac_lib_var=no"
2571 LIBS="$ac_save_LIBS"
2574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2575 echo "$ac_t""yes" 1>&6
2578 echo "$ac_t""no" 1>&6
2582 if test "x${THREAD_LIB}" = xerror; then
2584 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2585 echo "configure:2586: checking for pthread_attr_init" >&5
2586 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2589 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2592 /* System header to define __stub macros and hopefully few prototypes,
2593 which can conflict with char pthread_attr_init(); below. */
2595 /* Override any gcc2 internal prototype to avoid an error. */
2596 /* We use char because int might match the return type of a gcc2
2597 builtin and then its argument prototype would still apply. */
2598 char pthread_attr_init();
2602 /* The GNU C library defines this for functions which it implements
2603 to always fail with ENOSYS. Some functions are actually named
2604 something starting with __ and the normal name is an alias. */
2605 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2608 pthread_attr_init();
2613 if { (eval echo configure:2614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2615 eval "ac_cv_func_pthread_attr_init=yes"
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2620 eval "ac_cv_func_pthread_attr_init=no"
2625 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
2629 echo "$ac_t""no" 1>&6
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 #include <pthread.h>
2639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2640 egrep "pthread_cond_t" >/dev/null 2>&1; then
2643 cat >> confdefs.h <<\EOF
2644 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2650 cat > conftest.$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2653 #include <strings.h>
2655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2656 egrep "strncasecmp" >/dev/null 2>&1; then
2659 cat >> confdefs.h <<\EOF
2660 #define STRNCASECMP_IN_STRINGS_H 1
2667 for ac_hdr in stddef.h getopt.h strings.h
2669 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2671 echo "configure:2672: checking for $ac_hdr" >&5
2672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2675 cat > conftest.$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2681 { (eval echo configure:2682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2683 if test -z "$ac_err"; then
2685 eval "ac_cv_header_$ac_safe=yes"
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2691 eval "ac_cv_header_$ac_safe=no"
2695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2696 echo "$ac_t""yes" 1>&6
2697 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2698 cat >> confdefs.h <<EOF
2699 #define $ac_tr_hdr 1
2703 echo "$ac_t""no" 1>&6
2707 for ac_hdr in sys/sockio.h fcntl.h sys/time.h unistd.h
2709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_hdr" >&5
2712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2721 { (eval echo configure:2722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2723 if test -z "$ac_err"; then
2725 eval "ac_cv_header_$ac_safe=yes"
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2731 eval "ac_cv_header_$ac_safe=no"
2735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2736 echo "$ac_t""yes" 1>&6
2737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2738 cat >> confdefs.h <<EOF
2739 #define $ac_tr_hdr 1
2743 echo "$ac_t""no" 1>&6
2747 for ac_hdr in sys/soundcard.h machine/soundcard.h
2749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2751 echo "configure:2752: checking for $ac_hdr" >&5
2752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2761 { (eval echo configure:2762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2763 if test -z "$ac_err"; then
2765 eval "ac_cv_header_$ac_safe=yes"
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2771 eval "ac_cv_header_$ac_safe=no"
2775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2776 echo "$ac_t""yes" 1>&6
2777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2778 cat >> confdefs.h <<EOF
2779 #define $ac_tr_hdr 1
2783 echo "$ac_t""no" 1>&6
2787 for ac_hdr in dlfcn.h image.h
2789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_hdr" >&5
2792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2801 { (eval echo configure:2802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2803 if test -z "$ac_err"; then
2805 eval "ac_cv_header_$ac_safe=yes"
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2811 eval "ac_cv_header_$ac_safe=no"
2815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2818 cat >> confdefs.h <<EOF
2819 #define $ac_tr_hdr 1
2823 echo "$ac_t""no" 1>&6
2827 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2831 echo "configure:2832: checking for $ac_hdr" >&5
2832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 cat > conftest.$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2841 { (eval echo configure:2842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2843 if test -z "$ac_err"; then
2845 eval "ac_cv_header_$ac_safe=yes"
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2851 eval "ac_cv_header_$ac_safe=no"
2855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2856 echo "$ac_t""yes" 1>&6
2857 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2858 cat >> confdefs.h <<EOF
2859 #define $ac_tr_hdr 1
2863 echo "$ac_t""no" 1>&6
2867 for ac_hdr in machine/param.h
2869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2871 echo "configure:2872: checking for $ac_hdr" >&5
2872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 cat > conftest.$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2881 { (eval echo configure:2882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2883 if test -z "$ac_err"; then
2885 eval "ac_cv_header_$ac_safe=yes"
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2891 eval "ac_cv_header_$ac_safe=no"
2895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2898 cat >> confdefs.h <<EOF
2899 #define $ac_tr_hdr 1
2903 echo "$ac_t""no" 1>&6
2908 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2912 echo "configure:2913: checking for $ac_hdr" >&5
2913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2914 echo $ac_n "(cached) $ac_c" 1>&6
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2922 { (eval echo configure:2923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2924 if test -z "$ac_err"; then
2926 eval "ac_cv_header_$ac_safe=yes"
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 eval "ac_cv_header_$ac_safe=no"
2936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2937 echo "$ac_t""yes" 1>&6
2938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2939 cat >> confdefs.h <<EOF
2940 #define $ac_tr_hdr 1
2944 echo "$ac_t""no" 1>&6
2949 CFLAGS="${save_CFLAGS} -Wall -Werror"
2950 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2951 echo "configure:2952: checking for ntohl in sys/param.h" >&5
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 #include <sys/param.h>
2956 void foo() { int meuh; ntohl(meuh); }
2961 if { (eval echo configure:2962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2963 cat >> confdefs.h <<\EOF
2964 #define NTOHL_IN_SYS_PARAM_H 1
2967 echo "$ac_t""yes" 1>&6
2969 echo "configure: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2972 echo "$ac_t""no" 1>&6
2976 CFLAGS="${save_CFLAGS} -bundle -undefined suppress"
2977 echo $ac_n "checking if \$CC compiles plugins with -bundle -undefined suppress""... $ac_c" 1>&6
2978 echo "configure:2979: checking if \$CC compiles plugins with -bundle -undefined suppress" >&5
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2987 if { (eval echo configure:2988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2989 PLCFLAGS="${PLCFLAGS} -bundle -undefined suppress"; echo "$ac_t""yes" 1>&6
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2994 echo "$ac_t""no" 1>&6
2998 CFLAGS="${save_CFLAGS} -shared"
2999 echo $ac_n "checking if \$CC compiles plugins with -shared""... $ac_c" 1>&6
3000 echo "configure:3001: checking if \$CC compiles plugins with -shared" >&5
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3009 if { (eval echo configure:3010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3011 PLCFLAGS="${PLCFLAGS} -shared"; echo "$ac_t""yes" 1>&6
3013 echo "configure: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3016 echo "$ac_t""no" 1>&6
3020 CFLAGS="${save_CFLAGS}"
3022 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3023 echo "configure:3024: checking for boolean_t in sys/types.h" >&5
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 #include <sys/types.h>
3028 void quux() { boolean_t foo; }
3033 if { (eval echo configure:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3035 cat >> confdefs.h <<\EOF
3036 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3039 echo "$ac_t""yes" 1>&6
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3044 echo "$ac_t""no" 1>&6
3047 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3048 echo "configure:3049: checking for boolean_t in pthread.h" >&5
3049 cat > conftest.$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 #include <pthread.h>
3053 void quux() { boolean_t foo; }
3058 if { (eval echo configure:3059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3060 cat >> confdefs.h <<\EOF
3061 #define BOOLEAN_T_IN_PTHREAD_H 1
3064 echo "$ac_t""yes" 1>&6
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3069 echo "$ac_t""no" 1>&6
3073 echo $ac_n "checking for working const""... $ac_c" 1>&6
3074 echo "configure:3075: checking for working const" >&5
3075 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3078 cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3084 /* Ultrix mips cc rejects this. */
3085 typedef int charset[2]; const charset x;
3086 /* SunOS 4.1.1 cc rejects this. */
3087 char const *const *ccp;
3089 /* NEC SVR4.0.2 mips cc rejects this. */
3090 struct point {int x, y;};
3091 static struct point const zero = {0,0};
3092 /* AIX XL C 1.02.0.0 rejects this.
3093 It does not let you subtract one const X* pointer from another in an arm
3094 of an if-expression whose if-part is not a constant expression */
3095 const char *g = "string";
3096 ccp = &g + (g ? g-g : 0);
3097 /* HPUX 7.0 cc rejects these. */
3100 ccp = (char const *const *) p;
3101 { /* SCO 3.2v4 cc rejects this. */
3103 char const *s = 0 ? (char *) 0 : (char const *) 0;
3107 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3109 const int *foo = &x[0];
3112 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3113 typedef const int *iptr;
3117 { /* AIX XL C 1.02.0.0 rejects this saying
3118 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3119 struct s { int j; const int *ap[3]; };
3120 struct s *b; b->j = 5;
3122 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3128 if { (eval echo configure:3129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3132 echo "configure: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3140 echo "$ac_t""$ac_cv_c_const" 1>&6
3141 if test $ac_cv_c_const = no; then
3142 cat >> confdefs.h <<\EOF
3148 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3149 echo "configure:3150: checking for ANSI C header files" >&5
3150 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3162 { (eval echo configure:3163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3164 if test -z "$ac_err"; then
3166 ac_cv_header_stdc=yes
3169 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3172 ac_cv_header_stdc=no
3176 if test $ac_cv_header_stdc = yes; then
3177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184 egrep "memchr" >/dev/null 2>&1; then
3188 ac_cv_header_stdc=no
3194 if test $ac_cv_header_stdc = yes; then
3195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3202 egrep "free" >/dev/null 2>&1; then
3206 ac_cv_header_stdc=no
3212 if test $ac_cv_header_stdc = yes; then
3213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3214 if test "$cross_compiling" = yes; then
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3221 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3222 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3224 int main () { int i; for (i = 0; i < 256; i++)
3225 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3229 if { (eval echo configure:3230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3233 echo "configure: failed program was:" >&5
3234 cat conftest.$ac_ext >&5
3236 ac_cv_header_stdc=no
3244 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3245 if test $ac_cv_header_stdc = yes; then
3246 cat >> confdefs.h <<\EOF
3247 #define STDC_HEADERS 1
3252 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3253 echo "configure:3254: checking for size_t" >&5
3254 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3255 echo $ac_n "(cached) $ac_c" 1>&6
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 #include <sys/types.h>
3266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3267 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3269 ac_cv_type_size_t=yes
3272 ac_cv_type_size_t=no
3277 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3278 if test $ac_cv_type_size_t = no; then
3279 cat >> confdefs.h <<\EOF
3280 #define size_t unsigned
3285 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3286 echo "configure:3287: checking whether time.h and sys/time.h may both be included" >&5
3287 if eval "test \"`echo '$''{'ac_cv_header_time'+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 #include <sys/types.h>
3294 #include <sys/time.h>
3300 if { (eval echo configure:3301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3302 ac_cv_header_time=yes
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 ac_cv_header_time=no
3312 echo "$ac_t""$ac_cv_header_time" 1>&6
3313 if test $ac_cv_header_time = yes; then
3314 cat >> confdefs.h <<\EOF
3315 #define TIME_WITH_SYS_TIME 1
3323 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3324 PLUGINS="${PLUGINS}"
3328 MMX_MODULES="idctmmx motionmmx"
3329 MMXEXT_MODULES="idctmmxext motionmmxext imdct3dn"
3332 MMX_MODULES="yuvmmx idctmmx motionmmx"
3333 MMXEXT_MODULES="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
3337 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3338 echo "configure:3339: checking if \$CC groks MMX inline assembly" >&5
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
3347 if { (eval echo configure:3348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3349 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3350 echo "$ac_t""yes" 1>&6
3352 echo "configure: failed program was:" >&5
3353 cat conftest.$ac_ext >&5
3355 echo "$ac_t""no" 1>&6
3359 echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6
3360 echo "configure:3361: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
3369 if { (eval echo configure:3370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3371 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3372 echo "$ac_t""yes" 1>&6
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3377 echo "$ac_t""no" 1>&6
3382 for ac_hdr in winioctl.h
3384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3386 echo "configure:3387: checking for $ac_hdr" >&5
3387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3396 { (eval echo configure:3397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3398 if test -z "$ac_err"; then
3400 eval "ac_cv_header_$ac_safe=yes"
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3406 eval "ac_cv_header_$ac_safe=no"
3410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3411 echo "$ac_t""yes" 1>&6
3412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3413 cat >> confdefs.h <<EOF
3414 #define $ac_tr_hdr 1
3420 echo "$ac_t""no" 1>&6
3425 for ac_hdr in sys/ioctl.h
3427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3429 echo "configure:3430: checking for $ac_hdr" >&5
3430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3439 { (eval echo configure:3440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3441 if test -z "$ac_err"; then
3443 eval "ac_cv_header_$ac_safe=yes"
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3449 eval "ac_cv_header_$ac_safe=no"
3453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3456 cat >> confdefs.h <<EOF
3457 #define $ac_tr_hdr 1
3461 for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h
3463 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3464 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3465 echo "configure:3466: checking for $ac_hdr" >&5
3466 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3469 cat > conftest.$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3475 { (eval echo configure:3476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3477 if test -z "$ac_err"; then
3479 eval "ac_cv_header_$ac_safe=yes"
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3485 eval "ac_cv_header_$ac_safe=no"
3489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3490 echo "$ac_t""yes" 1>&6
3491 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3492 cat >> confdefs.h <<EOF
3493 #define $ac_tr_hdr 1
3497 echo "$ac_t""no" 1>&6
3502 cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include <sys/dvdio.h>
3507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3508 egrep "dvd_struct" >/dev/null 2>&1; then
3511 cat >> confdefs.h <<\EOF
3512 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 #include <sys/cdio.h>
3525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3526 egrep "dvd_struct" >/dev/null 2>&1; then
3529 cat >> confdefs.h <<\EOF
3530 #define DVD_STRUCT_IN_SYS_CDIO_H 1
3538 if test x$BSD_DVD_STRUCT = x1; then
3539 cat >> confdefs.h <<\EOF
3540 #define HAVE_BSD_DVD_STRUCT 1
3544 cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 #include <linux/cdrom.h>
3549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3550 egrep "dvd_struct" >/dev/null 2>&1; then
3553 cat >> confdefs.h <<\EOF
3554 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
3563 echo "$ac_t""no" 1>&6
3568 # Check whether --enable-ppro or --disable-ppro was given.
3569 if test "${enable_ppro+set}" = set; then
3570 enableval="$enable_ppro"
3571 if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
3573 if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
3577 # Check whether --enable-mmx or --disable-mmx was given.
3578 if test "${enable_mmx+set}" = set; then
3579 enableval="$enable_mmx"
3580 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
3581 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3583 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86 -o x${host_cpu} = xi386; then ARCH="${ARCH} mmx";
3584 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
3588 # Check whether --enable-altivec or --disable-altivec was given.
3589 if test "${enable_altivec+set}" = set; then
3590 enableval="$enable_altivec"
3591 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
3592 BUILTINS="${BUILTINS} idctaltivec"
3593 LIB_IDCTALTIVEC="-framework vecLib"
3597 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])
3599 # Check whether --enable-debug or --disable-debug was given.
3600 if test "${enable_debug+set}" = set; then
3601 enableval="$enable_debug"
3602 if test x$enableval = xyes; then DEBUG=1; fi
3606 # Check whether --enable-stats or --disable-stats was given.
3607 if test "${enable_stats+set}" = set; then
3608 enableval="$enable_stats"
3609 if test x$enableval = xyes; then STATS=1; fi
3613 # Check whether --enable-trace or --disable-trace was given.
3614 if test "${enable_trace+set}" = set; then
3615 enableval="$enable_trace"
3616 if test x$enableval = xyes; then TRACE=1; fi
3620 # Check whether --enable-profiling or --disable-profiling was given.
3621 if test "${enable_profiling+set}" = set; then
3622 enableval="$enable_profiling"
3623 if test x$enableval = xyes; then PROFILING=1; fi
3627 # Check whether --enable-optimizations or --disable-optimizations was given.
3628 if test "${enable_optimizations+set}" = set; then
3629 enableval="$enable_optimizations"
3630 if test x$enableval = xno; then OPTIMS=0; fi
3636 # Check whether --enable-pth or --disable-pth was given.
3637 if test "${enable_pth+set}" = set; then
3638 enableval="$enable_pth"
3639 if test x$enableval = xyes; then
3640 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
3641 echo "configure:3642: checking for pth_init in -lpth" >&5
3642 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
3643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 ac_save_LIBS="$LIBS"
3648 cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3651 /* Override any gcc2 internal prototype to avoid an error. */
3652 /* We use char because int might match the return type of a gcc2
3653 builtin and then its argument prototype would still apply. */
3660 if { (eval echo configure:3661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3662 eval "ac_cv_lib_$ac_lib_var=yes"
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3667 eval "ac_cv_lib_$ac_lib_var=no"
3670 LIBS="$ac_save_LIBS"
3673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3674 echo "$ac_t""yes" 1>&6
3675 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3676 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3677 cat >> confdefs.h <<EOF
3678 #define $ac_tr_lib 1
3684 echo "$ac_t""no" 1>&6
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693 egrep "pth_init" >/dev/null 2>&1; then
3696 cat >> confdefs.h <<\EOF
3697 #define PTH_INIT_IN_PTH_H 1
3709 LIB="${LIB} ${THREAD_LIB}"
3711 # Check whether --enable-css or --disable-css was given.
3712 if test "${enable_css+set}" = set; then
3713 enableval="$enable_css"
3714 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3719 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3724 for ac_hdr in videolan/dvdcss.h
3726 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3727 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3728 echo "configure:3729: checking for $ac_hdr" >&5
3729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3738 { (eval echo configure:3739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3740 if test -z "$ac_err"; then
3742 eval "ac_cv_header_$ac_safe=yes"
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3748 eval "ac_cv_header_$ac_safe=no"
3752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3753 echo "$ac_t""yes" 1>&6
3754 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3755 cat >> confdefs.h <<EOF
3756 #define $ac_tr_hdr 1
3759 # installed libdvdcss
3760 BUILTINS="${BUILTINS} dvd"
3761 LIB_DVD="${LIB_DVD} -ldvdcss"
3763 echo "$ac_t""no" 1>&6
3764 if test x${LIBDVDCSS} = x1; then
3767 BUILTINS="${BUILTINS} dvd"
3768 CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
3774 # Check whether --enable-dummy or --disable-dummy was given.
3775 if test "${enable_dummy+set}" = set; then
3776 enableval="$enable_dummy"
3780 if test x$enable_dummy != xno; then
3781 BUILTINS="${BUILTINS} dummy"; fi
3783 # Check whether --enable-null or --disable-null was given.
3784 if test "${enable_null+set}" = set; then
3785 enableval="$enable_null"
3789 if test x$enable_null != xno; then
3790 BUILTINS="${BUILTINS} null"; fi
3792 # Check whether --enable-rc or --disable-rc was given.
3793 if test "${enable_rc+set}" = set; then
3794 enableval="$enable_rc"
3798 if test x$enable_rc != xno; then
3799 BUILTINS="${BUILTINS} rc"; fi
3803 if test x$host_os = xbeos; then
3804 BUILTINS="${BUILTINS} beos"
3805 LIB_BEOS="-lbe -lgame -lroot -ltracker"
3806 PLCFLAGS="${PLCFLAGS} -nostart"
3810 # Check whether --enable-dsp or --disable-dsp was given.
3811 if test "${enable_dsp+set}" = set; then
3812 enableval="$enable_dsp"
3816 if test x$enable_dsp != xno; then
3817 if test -c /dev/dsp; then
3818 PLUGINS="${PLUGINS} dsp"
3822 # Check whether --enable-esd or --disable-esd was given.
3823 if test "${enable_esd+set}" = set; then
3824 enableval="$enable_esd"
3825 if test x$enable_esd = xyes; then
3826 # Extract the first word of "esd-config", so it can be a program name with args.
3827 set dummy esd-config; ac_word=$2
3828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3829 echo "configure:3830: checking for $ac_word" >&5
3830 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 case "$ESD_CONFIG" in
3835 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
3838 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
3841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3843 for ac_dir in $ac_dummy; do
3844 test -z "$ac_dir" && ac_dir=.
3845 if test -f $ac_dir/$ac_word; then
3846 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
3851 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
3855 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
3856 if test -n "$ESD_CONFIG"; then
3857 echo "$ac_t""$ESD_CONFIG" 1>&6
3859 echo "$ac_t""no" 1>&6
3862 if test x${ESD_CONFIG} != xno; then
3863 PLUGINS="${PLUGINS} esd"
3864 LIB_ESD="`${ESD_CONFIG} --libs`"
3870 # Check whether --enable-darwin or --disable-darwin was given.
3871 if test "${enable_darwin+set}" = set; then
3872 enableval="$enable_darwin"
3873 if test x$enable_darwin = xyes; then
3874 PLUGINS="${PLUGINS} darwin"
3875 LIB_DARWIN="-framework CoreAudio"
3880 # Check whether --enable-macosx or --disable-macosx was given.
3881 if test "${enable_macosx+set}" = set; then
3882 enableval="$enable_macosx"
3883 if test x$enable_macosx = xyes; then
3884 BUILTINS="${BUILTINS} macosx"
3885 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3886 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3887 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3890 for ac_hdr in Carbon/Carbon.h
3892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3894 echo "configure:3895: checking for $ac_hdr" >&5
3895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3904 { (eval echo configure:3905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3906 if test -z "$ac_err"; then
3908 eval "ac_cv_header_$ac_safe=yes"
3911 echo "configure: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3914 eval "ac_cv_header_$ac_safe=no"
3918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3919 echo "$ac_t""yes" 1>&6
3920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3921 cat >> confdefs.h <<EOF
3922 #define $ac_tr_hdr 1
3924 BUILTINS="${BUILTINS} macosx"
3925 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3926 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3927 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3930 echo "$ac_t""no" 1>&6
3937 # Check whether --enable-fb or --disable-fb was given.
3938 if test "${enable_fb+set}" = set; then
3939 enableval="$enable_fb"
3940 if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi
3944 # Check whether --with-ggi or --without-ggi was given.
3945 if test "${with_ggi+set}" = set; then
3947 if test "x$withval" != "xno";
3949 PLUGINS="${PLUGINS} ggi";
3950 if test "x$withval" != "xyes";
3952 LIB_GGI="-l"$withval
3960 # Check whether --with-sdl or --without-sdl was given.
3961 if test "${with_sdl+set}" = set; then
3963 if test "x$withval" != "xno";
3965 PLUGINS="${PLUGINS} sdl";
3966 if test "x$withval" != "xyes";
3968 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -L"$withval"/lib -lSDL"
3969 CFLAGS_SDL="-I"$withval"/include"
3971 for ac_hdr in SDL/SDL.h
3973 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3974 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3975 echo "configure:3976: checking for $ac_hdr" >&5
3976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3977 echo $ac_n "(cached) $ac_c" 1>&6
3979 cat > conftest.$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3985 { (eval echo configure:3986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3987 if test -z "$ac_err"; then
3989 eval "ac_cv_header_$ac_safe=yes"
3992 echo "configure: failed program was:" >&5
3993 cat conftest.$ac_ext >&5
3995 eval "ac_cv_header_$ac_safe=no"
3999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4000 echo "$ac_t""yes" 1>&6
4001 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4002 cat >> confdefs.h <<EOF
4003 #define $ac_tr_hdr 1
4007 echo "$ac_t""no" 1>&6
4008 echo "Cannot find SDL headers !"; exit
4012 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
4017 if test "x$withval" = "x";
4019 for ac_hdr in SDL/SDL.h
4021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4023 echo "configure:4024: checking for $ac_hdr" >&5
4024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4033 { (eval echo configure:4034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4035 if test -z "$ac_err"; then
4037 eval "ac_cv_header_$ac_safe=yes"
4040 echo "configure: failed program was:" >&5
4041 cat conftest.$ac_ext >&5
4043 eval "ac_cv_header_$ac_safe=no"
4047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4048 echo "$ac_t""yes" 1>&6
4049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4050 cat >> confdefs.h <<EOF
4051 #define $ac_tr_hdr 1
4053 PLUGINS="${PLUGINS} sdl"
4054 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
4056 echo "$ac_t""no" 1>&6
4062 # Check whether --with-directx or --without-directx was given.
4063 if test "${with_directx+set}" = set; then
4064 withval="$with_directx"
4065 if test "x$withval" != "xno";
4067 PLUGINS="${PLUGINS} directx";
4068 if test "x$withval" != "xyes";
4070 LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
4071 INCLUDE="${INCLUDE} -I"$withval"/include"
4073 for ac_hdr in directx.h
4075 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4077 echo "configure:4078: checking for $ac_hdr" >&5
4078 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4079 echo $ac_n "(cached) $ac_c" 1>&6
4081 cat > conftest.$ac_ext <<EOF
4082 #line 4083 "configure"
4083 #include "confdefs.h"
4086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4087 { (eval echo configure:4088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4089 if test -z "$ac_err"; then
4091 eval "ac_cv_header_$ac_safe=yes"
4094 echo "configure: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4097 eval "ac_cv_header_$ac_safe=no"
4101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4102 echo "$ac_t""yes" 1>&6
4103 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4104 cat >> confdefs.h <<EOF
4105 #define $ac_tr_hdr 1
4109 echo "$ac_t""no" 1>&6
4110 echo "Cannot find DirectX headers !"; exit
4114 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4119 if test "x$withval" = "x";
4121 for ac_hdr in directx.h
4123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4125 echo "configure:4126: checking for $ac_hdr" >&5
4126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4135 { (eval echo configure:4136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4137 if test -z "$ac_err"; then
4139 eval "ac_cv_header_$ac_safe=yes"
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4145 eval "ac_cv_header_$ac_safe=no"
4149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4150 echo "$ac_t""yes" 1>&6
4151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4152 cat >> confdefs.h <<EOF
4153 #define $ac_tr_hdr 1
4155 PLUGINS="${PLUGINS} directx"
4156 LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
4158 echo "$ac_t""no" 1>&6
4164 # Check whether --with-glide or --without-glide was given.
4165 if test "${with_glide+set}" = set; then
4166 withval="$with_glide"
4167 if test "x$withval" != "xno";
4169 PLUGINS="${PLUGINS} glide";
4170 if test "x$withval" != "xyes";
4172 LIB_GLIDE="-l"$withval" -lm"
4174 LIB_GLIDE="-lglide2x -lm"
4180 # Check whether --enable-ncurses or --disable-ncurses was given.
4181 if test "${enable_ncurses+set}" = set; then
4182 enableval="$enable_ncurses"
4183 if test x$enable_ncurses = xyes; then
4184 PLUGINS="${PLUGINS} ncurses"
4185 LIB_NCURSES="-lncurses"
4190 # Check whether --enable-qt or --disable-qt was given.
4191 if test "${enable_qt+set}" = set; then
4192 enableval="$enable_qt"
4193 if test x$enable_qt = xyes; then
4194 PLUGINS="${PLUGINS} qt"
4195 ALIASES="${ALIASES} qvlc"
4196 LIB_QT="-lqt -L${QTDIR}/lib"
4197 if test -x ${QTDIR}/bin/moc ;
4199 MOC=${QTDIR}/bin/moc
4207 # Check whether --enable-kde or --disable-kde was given.
4208 if test "${enable_kde+set}" = set; then
4209 enableval="$enable_kde"
4210 if test x$enable_kde = xyes; then PLUGINS="${PLUGINS} kde"; ALIASES="${ALIASES} kvlc"; fi
4214 # Check whether --enable-gnome or --disable-gnome was given.
4215 if test "${enable_gnome+set}" = set; then
4216 enableval="$enable_gnome"
4217 if test x$enable_gnome = xyes; then
4218 PLUGINS="${PLUGINS} gnome"
4219 ALIASES="${ALIASES} gnome-vlc"
4220 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
4225 # Check whether --enable-gtk or --disable-gtk was given.
4226 if test "${enable_gtk+set}" = set; then
4227 enableval="$enable_gtk"
4231 if test x$enable_gtk != xno; then
4232 # Extract the first word of "gtk-config", so it can be a program name with args.
4233 set dummy gtk-config; ac_word=$2
4234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4235 echo "configure:4236: checking for $ac_word" >&5
4236 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4239 case "$GTK_CONFIG" in
4241 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4244 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
4247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4249 for ac_dir in $ac_dummy; do
4250 test -z "$ac_dir" && ac_dir=.
4251 if test -f $ac_dir/$ac_word; then
4252 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4257 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
4261 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
4262 if test -n "$GTK_CONFIG"; then
4263 echo "$ac_t""$GTK_CONFIG" 1>&6
4265 echo "$ac_t""no" 1>&6
4268 if test x${GTK_CONFIG} != xno; then
4269 PLUGINS="${PLUGINS} gtk"
4270 ALIASES="${ALIASES} gvlc"
4271 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
4272 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
4276 # Check whether --enable-x11 or --disable-x11 was given.
4277 if test "${enable_x11+set}" = set; then
4278 enableval="$enable_x11"
4282 if test x$enable_x11 != xno; then
4283 if test x$x_includes = xNONE; then
4284 x_includes=/usr/X11R6/include
4286 if test x$x_libraries = xNONE; then
4287 x_libraries=/usr/X11R6/lib
4289 saved_CPPFLAGS=$CPPFLAGS
4290 CPPFLAGS="$CPPFLAGS -I$x_includes"
4291 for ac_hdr in X11/Xlib.h
4293 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4294 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4295 echo "configure:4296: checking for $ac_hdr" >&5
4296 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4305 { (eval echo configure:4306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4307 if test -z "$ac_err"; then
4309 eval "ac_cv_header_$ac_safe=yes"
4312 echo "configure: failed program was:" >&5
4313 cat conftest.$ac_ext >&5
4315 eval "ac_cv_header_$ac_safe=no"
4319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4320 echo "$ac_t""yes" 1>&6
4321 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4322 cat >> confdefs.h <<EOF
4323 #define $ac_tr_hdr 1
4326 PLUGINS="${PLUGINS} x11"
4327 LIB_X11="-L$x_libraries -lX11 -lXext"
4328 CFLAGS_X11="-I$x_includes"
4330 CPPFLAGS=$saved_CPPFLAGS
4332 echo "$ac_t""no" 1>&6
4338 # Check whether --enable-xvideo or --disable-xvideo was given.
4339 if test "${enable_xvideo+set}" = set; then
4340 enableval="$enable_xvideo"
4344 if test x$enable_xvideo != xno; then
4345 if test x$x_includes = xNONE; then
4346 x_includes=/usr/X11R6/include
4348 if test x$x_libraries = xNONE; then
4349 x_libraries=/usr/X11R6/lib
4351 saved_CPPFLAGS=$CPPFLAGS
4352 CPPFLAGS="$CPPFLAGS -I$x_includes"
4353 for ac_hdr in X11/extensions/Xv.h
4355 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4357 echo "configure:4358: checking for $ac_hdr" >&5
4358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4361 cat > conftest.$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4367 { (eval echo configure:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4369 if test -z "$ac_err"; then
4371 eval "ac_cv_header_$ac_safe=yes"
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4377 eval "ac_cv_header_$ac_safe=no"
4381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4382 echo "$ac_t""yes" 1>&6
4383 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4384 cat >> confdefs.h <<EOF
4385 #define $ac_tr_hdr 1
4388 PLUGINS="${PLUGINS} xvideo"
4389 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
4390 CFLAGS_X11="-I$x_includes"
4392 CPPFLAGS=$saved_CPPFLAGS
4394 echo "$ac_t""no" 1>&6
4400 # Check whether --enable-alsa or --disable-alsa was given.
4401 if test "${enable_alsa+set}" = set; then
4402 enableval="$enable_alsa"
4403 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
4404 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
4405 echo "configure:4406: checking for sys/asoundlib.h" >&5
4406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 #include <sys/asoundlib.h>
4414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4415 { (eval echo configure:4416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4417 if test -z "$ac_err"; then
4419 eval "ac_cv_header_$ac_safe=yes"
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4425 eval "ac_cv_header_$ac_safe=no"
4429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4430 echo "$ac_t""yes" 1>&6
4431 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
4432 echo "configure:4433: checking for main in -lasound" >&5
4433 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
4434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 ac_save_LIBS="$LIBS"
4438 LIBS="-lasound $LIBS"
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4447 if { (eval echo configure:4448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4449 eval "ac_cv_lib_$ac_lib_var=yes"
4451 echo "configure: failed program was:" >&5
4452 cat conftest.$ac_ext >&5
4454 eval "ac_cv_lib_$ac_lib_var=no"
4457 LIBS="$ac_save_LIBS"
4460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4461 echo "$ac_t""yes" 1>&6
4464 echo "$ac_t""no" 1>&6
4469 echo "$ac_t""no" 1>&6
4472 if test x$have_alsa = xtrue; then
4473 PLUGINS="${PLUGINS} alsa"
4530 cat > confcache <<\EOF
4531 # This file is a shell script that caches the results of configure
4532 # tests run on this system so they can be shared between configure
4533 # scripts and configure runs. It is not useful on other systems.
4534 # If it contains results you don't want to keep, you may remove or edit it.
4536 # By default, configure uses ./config.cache as the cache file,
4537 # creating it if it does not exist already. You can give configure
4538 # the --cache-file=FILE option to use a different cache file; that is
4539 # what configure does when it calls configure scripts in
4540 # subdirectories, so they share the cache.
4541 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4542 # config.status only pays attention to the cache file if you give it the
4543 # --recheck option to rerun configure.
4546 # The following way of writing the cache mishandles newlines in values,
4547 # but we know of no workaround that is simple, portable, and efficient.
4548 # So, don't put newlines in cache variables' values.
4549 # Ultrix sh set writes to stderr and can't be redirected directly,
4550 # and sets the high bit in the cache file unless we assign to the vars.
4552 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4554 # `set' does not quote correctly, so add quotes (double-quote substitution
4555 # turns \\\\ into \\, and sed turns \\ into \).
4557 -e "s/'/'\\\\''/g" \
4558 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4561 # `set' quotes correctly as required by POSIX, so do not add quotes.
4562 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4565 if cmp -s $cache_file confcache; then
4568 if test -w $cache_file; then
4569 echo "updating cache $cache_file"
4570 cat confcache > $cache_file
4572 echo "not updating unwritable cache $cache_file"
4577 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4580 # Let make expand exec_prefix.
4581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4583 # Any assignment to VPATH causes Sun make to only execute
4584 # the first set of double-colon rules, so remove it if not needed.
4585 # If there is a colon in the path, we need to keep it.
4586 if test "x$srcdir" = x.; then
4587 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4590 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4592 DEFS=-DHAVE_CONFIG_H
4594 # Without the "./", some shells look in PATH for config.status.
4595 : ${CONFIG_STATUS=./config.status}
4597 echo creating $CONFIG_STATUS
4598 rm -f $CONFIG_STATUS
4599 cat > $CONFIG_STATUS <<EOF
4601 # Generated automatically by configure.
4602 # Run this file to recreate the current configuration.
4603 # This directory was configured as follows,
4604 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4606 # $0 $ac_configure_args
4608 # Compiler output produced by configure, useful for debugging
4609 # configure, is in ./config.log if it exists.
4611 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4614 case "\$ac_option" in
4615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4616 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4617 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4618 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4619 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4621 -help | --help | --hel | --he | --h)
4622 echo "\$ac_cs_usage"; exit 0 ;;
4623 *) echo "\$ac_cs_usage"; exit 1 ;;
4627 ac_given_srcdir=$srcdir
4628 ac_given_INSTALL="$INSTALL"
4630 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4632 cat >> $CONFIG_STATUS <<EOF
4634 # Protect against being on the right side of a sed subst in config.status.
4635 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4636 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4640 s%@CFLAGS@%$CFLAGS%g
4641 s%@CPPFLAGS@%$CPPFLAGS%g
4642 s%@CXXFLAGS@%$CXXFLAGS%g
4643 s%@FFLAGS@%$FFLAGS%g
4645 s%@LDFLAGS@%$LDFLAGS%g
4647 s%@exec_prefix@%$exec_prefix%g
4648 s%@prefix@%$prefix%g
4649 s%@program_transform_name@%$program_transform_name%g
4650 s%@bindir@%$bindir%g
4651 s%@sbindir@%$sbindir%g
4652 s%@libexecdir@%$libexecdir%g
4653 s%@datadir@%$datadir%g
4654 s%@sysconfdir@%$sysconfdir%g
4655 s%@sharedstatedir@%$sharedstatedir%g
4656 s%@localstatedir@%$localstatedir%g
4657 s%@libdir@%$libdir%g
4658 s%@includedir@%$includedir%g
4659 s%@oldincludedir@%$oldincludedir%g
4660 s%@infodir@%$infodir%g
4661 s%@mandir@%$mandir%g
4663 s%@host_alias@%$host_alias%g
4664 s%@host_cpu@%$host_cpu%g
4665 s%@host_vendor@%$host_vendor%g
4666 s%@host_os@%$host_os%g
4667 s%@VLC_VERSION@%$VLC_VERSION%g
4668 s%@VLC_CODENAME@%$VLC_CODENAME%g
4669 s%@SET_MAKE@%$SET_MAKE%g
4672 s%@RANLIB@%$RANLIB%g
4673 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4674 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4675 s%@INSTALL_DATA@%$INSTALL_DATA%g
4676 s%@GETOPT@%$GETOPT%g
4677 s%@ESD_CONFIG@%$ESD_CONFIG%g
4678 s%@GTK_CONFIG@%$GTK_CONFIG%g
4681 s%@PLUGINS@%$PLUGINS%g
4682 s%@BUILTINS@%$BUILTINS%g
4683 s%@ALIASES@%$ALIASES%g
4684 s%@DEFINE@%$DEFINE%g
4685 s%@INCLUDE@%$INCLUDE%g
4690 s%@PROFILING@%$PROFILING%g
4691 s%@OPTIMS@%$OPTIMS%g
4694 s%@LCFLAGS@%$LCFLAGS%g
4695 s%@PLCFLAGS@%$PLCFLAGS%g
4697 s%@LIB_ALSA@%$LIB_ALSA%g
4698 s%@LIB_BEOS@%$LIB_BEOS%g
4699 s%@LIB_DARWIN@%$LIB_DARWIN%g
4700 s%@LIB_DVD@%$LIB_DVD%g
4701 s%@LIB_ESD@%$LIB_ESD%g
4702 s%@LIB_GGI@%$LIB_GGI%g
4703 s%@LIB_GLIDE@%$LIB_GLIDE%g
4704 s%@LIB_GNOME@%$LIB_GNOME%g
4705 s%@LIB_GTK@%$LIB_GTK%g
4706 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
4707 s%@LIB_MACOSX@%$LIB_MACOSX%g
4708 s%@LIB_NCURSES@%$LIB_NCURSES%g
4709 s%@LIB_QT@%$LIB_QT%g
4710 s%@LIB_TS@%$LIB_TS%g
4711 s%@LIB_SDL@%$LIB_SDL%g
4712 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
4713 s%@LIB_X11@%$LIB_X11%g
4714 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
4715 s%@LIB_YUV@%$LIB_YUV%g
4716 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
4717 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
4718 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
4719 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
4720 s%@CFLAGS_X11@%$CFLAGS_X11%g
4721 s%@LOCAL_LIBDVDCSS@%$LOCAL_LIBDVDCSS%g
4726 cat >> $CONFIG_STATUS <<\EOF
4728 # Split the substitutions into bite-sized pieces for seds with
4729 # small command number limits, like on Digital OSF/1 and HP-UX.
4730 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4731 ac_file=1 # Number of current file.
4732 ac_beg=1 # First line for current file.
4733 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4736 while $ac_more_lines; do
4737 if test $ac_beg -gt 1; then
4738 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4740 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4742 if test ! -s conftest.s$ac_file; then
4744 rm -f conftest.s$ac_file
4746 if test -z "$ac_sed_cmds"; then
4747 ac_sed_cmds="sed -f conftest.s$ac_file"
4749 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4751 ac_file=`expr $ac_file + 1`
4753 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4756 if test -z "$ac_sed_cmds"; then
4761 cat >> $CONFIG_STATUS <<EOF
4763 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
4765 cat >> $CONFIG_STATUS <<\EOF
4766 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4769 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4770 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4771 *) ac_file_in="${ac_file}.in" ;;
4774 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4776 # Remove last slash and all that follows it. Not all systems have dirname.
4777 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4778 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4779 # The file is in a subdirectory.
4780 test ! -d "$ac_dir" && mkdir "$ac_dir"
4781 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4782 # A "../" for each directory in $ac_dir_suffix.
4783 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4785 ac_dir_suffix= ac_dots=
4788 case "$ac_given_srcdir" in
4790 if test -z "$ac_dots"; then top_srcdir=.
4791 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4792 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4794 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4795 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4798 case "$ac_given_INSTALL" in
4799 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4800 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4803 echo creating "$ac_file"
4805 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4807 *Makefile*) ac_comsub="1i\\
4808 # $configure_input" ;;
4812 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4814 s%@configure_input@%$configure_input%g
4815 s%@srcdir@%$srcdir%g
4816 s%@top_srcdir@%$top_srcdir%g
4817 s%@INSTALL@%$INSTALL%g
4818 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4822 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4823 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4825 # ac_d sets the value in "#define NAME VALUE" lines.
4826 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4827 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4830 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4831 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4832 ac_uB='\([ ]\)%\1#\2define\3'
4835 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4836 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4837 ac_eB='$%\1#\2define\3'
4841 if test "${CONFIG_HEADERS+set}" != set; then
4843 cat >> $CONFIG_STATUS <<EOF
4844 CONFIG_HEADERS="include/defs.h"
4846 cat >> $CONFIG_STATUS <<\EOF
4848 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4851 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4852 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4853 *) ac_file_in="${ac_file}.in" ;;
4856 echo creating $ac_file
4858 rm -f conftest.frag conftest.in conftest.out
4859 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4860 cat $ac_file_inputs > conftest.in
4864 # Transform confdefs.h into a sed script conftest.vals that substitutes
4865 # the proper values into config.h.in to produce config.h. And first:
4866 # Protect against being on the right side of a sed subst in config.status.
4867 # Protect against being in an unquoted here document in config.status.
4869 cat > conftest.hdr <<\EOF
4872 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4876 sed -n -f conftest.hdr confdefs.h > conftest.vals
4879 # This sed command replaces #undef with comments. This is necessary, for
4880 # example, in the case of _POSIX_SOURCE, which is predefined and required
4881 # on some systems where configure will not decide to define it.
4882 cat >> conftest.vals <<\EOF
4883 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4886 # Break up conftest.vals because some shells have a limit on
4887 # the size of here documents, and old seds have small limits too.
4892 ac_lines=`grep -c . conftest.vals`
4893 # grep -c gives empty output for an empty file on some AIX systems.
4894 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4895 # Write a limited-size here document to conftest.frag.
4896 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4897 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4899 sed -f conftest.frag conftest.in > conftest.out
4901 mv conftest.out conftest.in
4903 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4905 mv conftest.tail conftest.vals
4909 cat >> $CONFIG_STATUS <<\EOF
4910 rm -f conftest.frag conftest.h
4911 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4912 cat conftest.in >> conftest.h
4914 if cmp -s $ac_file conftest.h 2>/dev/null; then
4915 echo "$ac_file is unchanged"
4918 # Remove last slash and all that follows it. Not all systems have dirname.
4919 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4920 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4921 # The file is in a subdirectory.
4922 test ! -d "$ac_dir" && mkdir "$ac_dir"
4925 mv conftest.h $ac_file
4930 cat >> $CONFIG_STATUS <<EOF
4933 cat >> $CONFIG_STATUS <<\EOF
4937 chmod +x $CONFIG_STATUS
4938 rm -fr confdefs* $ac_clean_files
4939 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4943 global configuration
4944 --------------------
4946 architecture : ${ARCH}
4947 optimizations : ${OPTIMS}
4948 inline assembly : ${ASM}
4952 vlc version : ${VLC_VERSION}
4953 debug mode : ${DEBUG}
4954 statistics : ${STATS}
4955 trace mode : ${TRACE}
4956 profiling : ${PROFILING}
4957 need builtin getopt : ${GETOPT}
4958 built-in modules :${BUILTINS}
4959 plugin modules :${PLUGINS}
4960 vlc aliases :${ALIASES}
4962 libdvdcss configuration
4963 -----------------------
4964 CSS decryption : ${CSS}
4966 You may now tune Makefile.opts at your convenience. To build vlc, type
4967 \`make vlc'. To build libdvdcss only, type \`make libdvdcss'."