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-dummy dummy module (default enabled)"
17 --disable-null Null module (default enabled)"
19 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
21 --disable-mmx Disable MMX optimizations (default enabled for x86)"
23 --enable-altivec Enable altivec optimizations (default disabled since it is broken)"
25 --disable-css Disable DVD CSS decryption (default enabled)"
27 --enable-debug Enable debug mode (default disabled)"
29 --enable-stats Enable printing of statistics (default disabled)"
31 --disable-optimizations Disable compiler optimizations (default enabled)"
33 --disable-dsp Linux /dev/dsp support (default enabled)"
35 --enable-esd Esound library support (default disabled)"
37 --enable-darwin Darwin sound support (default disabled)"
39 --enable-macosx Mac OS X interface support (default enabled in Mac OS X)"
41 --enable-fb Linux framebuffer support (default disabled)"
43 --with-ggi[=name] GGI support (default disabled)"
45 --with-sdl[=name] SDL support (default enabled)"
47 --with-glide[=name] Glide (3dfx) support (default disabled)"
49 --enable-ncurses ncurses interface support (default disabled)"
51 --enable-qt Qt interface support (default disabled)"
53 --enable-kde KDE interface support (default disabled)"
55 --enable-gnome Gnome interface support (default disabled)"
57 --disable-gtk Gtk+ support (default enabled)"
59 --disable-x11 X11 support (default enabled)"
61 --disable-xvideo XVideo support (default enabled)"
63 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
69 cache_file=./config.cache
78 program_transform_name=s,x,x,
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
99 # Initialize some other variables.
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
110 # If the previous option needs an argument, assign it.
111 if test -n "$ac_prev"; then
112 eval "$ac_prev=\$ac_option"
118 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 # Accept the important Cygnus configure options, so we can diagnose typos.
126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129 bindir="$ac_optarg" ;;
131 -build | --build | --buil | --bui | --bu)
133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134 build="$ac_optarg" ;;
136 -cache-file | --cache-file | --cache-fil | --cache-fi \
137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138 ac_prev=cache_file ;;
139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141 cache_file="$ac_optarg" ;;
143 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147 datadir="$ac_optarg" ;;
149 -disable-* | --disable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}=no" ;;
158 -enable-* | --enable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}='$ac_optarg'" ;;
171 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173 | --exec | --exe | --ex)
174 ac_prev=exec_prefix ;;
175 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177 | --exec=* | --exe=* | --ex=*)
178 exec_prefix="$ac_optarg" ;;
180 -gas | --gas | --ga | --g)
181 # Obsolete; use --with-gas.
184 -help | --help | --hel | --he)
185 # Omit some internal or obsolete options to make the list less imposing.
186 # This message is too long to be a string in the A/UX 3.1 sh.
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
191 --cache-file=FILE cache test results in FILE
192 --help print this message
193 --no-create do not create output files
194 --quiet, --silent do not print \`checking...' messages
195 --version print the version of autoconf that created configure
196 Directory and file names:
197 --prefix=PREFIX install architecture-independent files in PREFIX
199 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201 --bindir=DIR user executables in DIR [EPREFIX/bin]
202 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
203 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
204 --datadir=DIR read-only architecture-independent data in DIR
206 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
207 --sharedstatedir=DIR modifiable architecture-independent data in DIR
209 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
210 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
211 --includedir=DIR C header files in DIR [PREFIX/include]
212 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
213 --infodir=DIR info documentation in DIR [PREFIX/info]
214 --mandir=DIR man documentation in DIR [PREFIX/man]
215 --srcdir=DIR find the sources in DIR [configure dir or ..]
216 --program-prefix=PREFIX prepend PREFIX to installed program names
217 --program-suffix=SUFFIX append SUFFIX to installed program names
218 --program-transform-name=PROGRAM
219 run sed PROGRAM on installed program names
223 --build=BUILD configure for building on BUILD [BUILD=HOST]
224 --host=HOST configure for HOST [guessed]
225 --target=TARGET configure for TARGET [TARGET=HOST]
226 Features and packages:
227 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
228 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
229 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
230 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
231 --x-includes=DIR X include files are in DIR
232 --x-libraries=DIR X library files are in DIR
234 if test -n "$ac_help"; then
235 echo "--enable and --with options recognized:$ac_help"
239 -host | --host | --hos | --ho)
241 -host=* | --host=* | --hos=* | --ho=*)
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir="$ac_optarg" ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir="$ac_optarg" ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
259 libdir="$ac_optarg" ;;
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir="$ac_optarg" ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir="$ac_optarg" ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280 mandir="$ac_optarg" ;;
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir="$ac_optarg" ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306 prefix="$ac_optarg" ;;
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix="$ac_optarg" ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix="$ac_optarg" ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name="$ac_optarg" ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir="$ac_optarg" ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir="$ac_optarg" ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368 srcdir="$ac_optarg" ;;
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir="$ac_optarg" ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target="$ac_optarg" ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers)
386 echo "configure generated by autoconf version 2.13"
390 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}='$ac_optarg'" ;;
402 -without-* | --without-*)
403 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}=no" ;;
412 # Obsolete; use --with-x.
415 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416 | --x-incl | --x-inc | --x-in | --x-i)
417 ac_prev=x_includes ;;
418 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420 x_includes="$ac_optarg" ;;
422 -x-libraries | --x-libraries | --x-librarie | --x-librari \
423 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424 ac_prev=x_libraries ;;
425 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427 x_libraries="$ac_optarg" ;;
429 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434 echo "configure: warning: $ac_option: invalid host type" 1>&2
436 if test "x$nonopt" != xNONE; then
437 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445 if test -n "$ac_prev"; then
446 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451 # File descriptor usage:
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478 | --no-cr | --no-c) ;;
479 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 # Only set these to C if already set. These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
493 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
504 ac_unique_file=src/interface/main.c
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508 ac_srcdir_defaulted=yes
509 # Try the directory containing this script, then its parent.
511 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514 if test ! -r $srcdir/$ac_unique_file; then
518 ac_srcdir_defaulted=no
520 if test ! -r $srcdir/$ac_unique_file; then
521 if test "$ac_srcdir_defaulted" = yes; then
522 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$CONFIG_SITE"; then
531 if test "x$prefix" != xNONE; then
532 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 for ac_site_file in $CONFIG_SITE; do
538 if test -r "$ac_site_file"; then
539 echo "loading site script $ac_site_file"
544 if test -r "$cache_file"; then
545 echo "loading cache $cache_file"
548 echo "creating cache $cache_file"
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp='$CPP $CPPFLAGS'
555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling=$ac_cv_prog_cc_cross
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
570 ac_n= ac_c='\c' ac_t=
577 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
578 if test -f $ac_dir/install-sh; then
580 ac_install_sh="$ac_aux_dir/install-sh -c"
582 elif test -f $ac_dir/install.sh; then
584 ac_install_sh="$ac_aux_dir/install.sh -c"
588 if test -z "$ac_aux_dir"; then
589 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
591 ac_config_guess=$ac_aux_dir/config.guess
592 ac_config_sub=$ac_aux_dir/config.sub
593 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
596 # Make sure we can run config.sub.
597 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
598 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
601 echo $ac_n "checking host system type""... $ac_c" 1>&6
602 echo "configure:603: checking host system type" >&5
605 case "$host_alias" in
609 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
610 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
612 *) host_alias=$nonopt ;;
616 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
617 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$host" 1>&6
628 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
629 echo "configure:630: checking whether ${MAKE-make} sets \${MAKE}" >&5
630 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
631 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
634 cat > conftestmake <<\EOF
636 @echo 'ac_maketemp="${MAKE}"'
638 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
639 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
640 if test -n "$ac_maketemp"; then
641 eval ac_cv_prog_make_${ac_make}_set=yes
643 eval ac_cv_prog_make_${ac_make}_set=no
647 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
648 echo "$ac_t""yes" 1>&6
651 echo "$ac_t""no" 1>&6
652 SET_MAKE="MAKE=${MAKE-make}"
655 # Extract the first word of "gcc", so it can be a program name with args.
656 set dummy gcc; ac_word=$2
657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658 echo "configure:659: checking for $ac_word" >&5
659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 if test -n "$CC"; then
663 ac_cv_prog_CC="$CC" # Let the user override the test.
665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
667 for ac_dir in $ac_dummy; do
668 test -z "$ac_dir" && ac_dir=.
669 if test -f $ac_dir/$ac_word; then
678 if test -n "$CC"; then
679 echo "$ac_t""$CC" 1>&6
681 echo "$ac_t""no" 1>&6
684 if test -z "$CC"; then
685 # Extract the first word of "cc", so it can be a program name with args.
686 set dummy cc; ac_word=$2
687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
688 echo "configure:689: checking for $ac_word" >&5
689 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
692 if test -n "$CC"; then
693 ac_cv_prog_CC="$CC" # Let the user override the test.
695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
698 for ac_dir in $ac_dummy; do
699 test -z "$ac_dir" && ac_dir=.
700 if test -f $ac_dir/$ac_word; then
701 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
710 if test $ac_prog_rejected = yes; then
711 # We found a bogon in the path, so make sure we never use it.
712 set dummy $ac_cv_prog_CC
714 if test $# -gt 0; then
715 # We chose a different compiler from the bogus one.
716 # However, it has the same basename, so the bogon will be chosen
717 # first if we set CC to just the basename; use the full file name.
719 set dummy "$ac_dir/$ac_word" "$@"
727 if test -n "$CC"; then
728 echo "$ac_t""$CC" 1>&6
730 echo "$ac_t""no" 1>&6
733 if test -z "$CC"; then
736 # Extract the first word of "cl", so it can be a program name with args.
737 set dummy cl; ac_word=$2
738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
739 echo "configure:740: checking for $ac_word" >&5
740 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
743 if test -n "$CC"; then
744 ac_cv_prog_CC="$CC" # Let the user override the test.
746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
748 for ac_dir in $ac_dummy; do
749 test -z "$ac_dir" && ac_dir=.
750 if test -f $ac_dir/$ac_word; then
759 if test -n "$CC"; then
760 echo "$ac_t""$CC" 1>&6
762 echo "$ac_t""no" 1>&6
767 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775 ac_cpp='$CPP $CPPFLAGS'
776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778 cross_compiling=$ac_cv_prog_cc_cross
780 cat > conftest.$ac_ext << EOF
782 #line 783 "configure"
783 #include "confdefs.h"
787 if { (eval echo configure:788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
788 ac_cv_prog_cc_works=yes
789 # If we can't run a trivial program, we are probably using a cross compiler.
790 if (./conftest; exit) 2>/dev/null; then
791 ac_cv_prog_cc_cross=no
793 ac_cv_prog_cc_cross=yes
796 echo "configure: failed program was:" >&5
797 cat conftest.$ac_ext >&5
798 ac_cv_prog_cc_works=no
802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
803 ac_cpp='$CPP $CPPFLAGS'
804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
806 cross_compiling=$ac_cv_prog_cc_cross
808 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
809 if test $ac_cv_prog_cc_works = no; then
810 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
812 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
813 echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
814 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
815 cross_compiling=$ac_cv_prog_cc_cross
817 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
818 echo "configure:819: checking whether we are using GNU C" >&5
819 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 cat > conftest.c <<EOF
827 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
834 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
836 if test $ac_cv_prog_gcc = yes; then
842 ac_test_CFLAGS="${CFLAGS+set}"
843 ac_save_CFLAGS="$CFLAGS"
845 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
846 echo "configure:847: checking whether ${CC-cc} accepts -g" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 echo 'void f(){}' > conftest.c
851 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
860 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
861 if test "$ac_test_CFLAGS" = set; then
862 CFLAGS="$ac_save_CFLAGS"
863 elif test $ac_cv_prog_cc_g = yes; then
864 if test "$GCC" = yes; then
870 if test "$GCC" = yes; then
877 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
878 echo "configure:879: checking how to run the C preprocessor" >&5
879 # On Suns, sometimes $CPP names a directory.
880 if test -n "$CPP" && test -d "$CPP"; then
883 if test -z "$CPP"; then
884 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
887 # This must be in double quotes, not single quotes, because CPP may get
888 # substituted into the Makefile and "${CC-cc}" will confuse make.
890 # On the NeXT, cc -E runs the code through the compiler's parser,
891 # not just through cpp.
892 cat > conftest.$ac_ext <<EOF
893 #line 894 "configure"
894 #include "confdefs.h"
898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
899 { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
901 if test -z "$ac_err"; then
905 echo "configure: failed program was:" >&5
906 cat conftest.$ac_ext >&5
908 CPP="${CC-cc} -E -traditional-cpp"
909 cat > conftest.$ac_ext <<EOF
910 #line 911 "configure"
911 #include "confdefs.h"
915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
916 { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
918 if test -z "$ac_err"; then
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
925 CPP="${CC-cc} -nologo -E"
926 cat > conftest.$ac_ext <<EOF
927 #line 928 "configure"
928 #include "confdefs.h"
932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
933 { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
935 if test -z "$ac_err"; then
939 echo "configure: failed program was:" >&5
940 cat conftest.$ac_ext >&5
949 ac_cv_prog_CPP="$CPP"
951 CPP="$ac_cv_prog_CPP"
953 ac_cv_prog_CPP="$CPP"
955 echo "$ac_t""$CPP" 1>&6
958 # Find a good install program. We prefer a C program (faster),
959 # so one script is as good as another. But avoid the broken or
960 # incompatible versions:
961 # SysV /etc/install, /usr/sbin/install
962 # SunOS /usr/etc/install
965 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
966 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
968 # ./install, which can be erroneously created by make from ./install.sh.
969 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
970 echo "configure:971: checking for a BSD compatible install" >&5
971 if test -z "$INSTALL"; then
972 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
976 for ac_dir in $PATH; do
977 # Account for people who put trailing slashes in PATH elements.
979 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
981 # OSF1 and SCO ODT 3.0 have their own names for install.
982 # Don't use installbsd from OSF since it installs stuff as root
984 for ac_prog in ginstall scoinst install; do
985 if test -f $ac_dir/$ac_prog; then
986 if test $ac_prog = install &&
987 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
988 # AIX install. It has an incompatible calling convention.
991 ac_cv_path_install="$ac_dir/$ac_prog -c"
1002 if test "${ac_cv_path_install+set}" = set; then
1003 INSTALL="$ac_cv_path_install"
1005 # As a last resort, use the slow shell script. We don't cache a
1006 # path for INSTALL within a source directory, because that will
1007 # break other packages using the cache if that directory is
1008 # removed, or if the path is relative.
1009 INSTALL="$ac_install_sh"
1012 echo "$ac_t""$INSTALL" 1>&6
1014 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1015 # It thinks the first close brace ends the variable substitution.
1016 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1018 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1020 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1023 echo $ac_n "checking for working const""... $ac_c" 1>&6
1024 echo "configure:1025: checking for working const" >&5
1025 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 cat > conftest.$ac_ext <<EOF
1029 #line 1030 "configure"
1030 #include "confdefs.h"
1034 /* Ultrix mips cc rejects this. */
1035 typedef int charset[2]; const charset x;
1036 /* SunOS 4.1.1 cc rejects this. */
1037 char const *const *ccp;
1039 /* NEC SVR4.0.2 mips cc rejects this. */
1040 struct point {int x, y;};
1041 static struct point const zero = {0,0};
1042 /* AIX XL C 1.02.0.0 rejects this.
1043 It does not let you subtract one const X* pointer from another in an arm
1044 of an if-expression whose if-part is not a constant expression */
1045 const char *g = "string";
1046 ccp = &g + (g ? g-g : 0);
1047 /* HPUX 7.0 cc rejects these. */
1050 ccp = (char const *const *) p;
1051 { /* SCO 3.2v4 cc rejects this. */
1053 char const *s = 0 ? (char *) 0 : (char const *) 0;
1057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1059 const int *foo = &x[0];
1062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1063 typedef const int *iptr;
1067 { /* AIX XL C 1.02.0.0 rejects this saying
1068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1069 struct s { int j; const int *ap[3]; };
1070 struct s *b; b->j = 5;
1072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1078 if { (eval echo configure:1079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1082 echo "configure: failed program was:" >&5
1083 cat conftest.$ac_ext >&5
1090 echo "$ac_t""$ac_cv_c_const" 1>&6
1091 if test $ac_cv_c_const = no; then
1092 cat >> confdefs.h <<\EOF
1098 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether byte ordering is bigendian" >&5
1100 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 ac_cv_c_bigendian=unknown
1104 # See if sys/param.h defines the BYTE_ORDER macro.
1105 cat > conftest.$ac_ext <<EOF
1106 #line 1107 "configure"
1107 #include "confdefs.h"
1108 #include <sys/types.h>
1109 #include <sys/param.h>
1112 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1117 if { (eval echo configure:1118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1119 # It does; now see whether it defined to BIG_ENDIAN or not.
1120 cat > conftest.$ac_ext <<EOF
1121 #line 1122 "configure"
1122 #include "confdefs.h"
1123 #include <sys/types.h>
1124 #include <sys/param.h>
1127 #if BYTE_ORDER != BIG_ENDIAN
1132 if { (eval echo configure:1133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1134 ac_cv_c_bigendian=yes
1136 echo "configure: failed program was:" >&5
1137 cat conftest.$ac_ext >&5
1139 ac_cv_c_bigendian=no
1143 echo "configure: failed program was:" >&5
1144 cat conftest.$ac_ext >&5
1147 if test $ac_cv_c_bigendian = unknown; then
1148 if test "$cross_compiling" = yes; then
1149 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1151 cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1155 /* Are we little or big endian? From Harbison&Steele. */
1159 char c[sizeof (long)];
1162 exit (u.c[sizeof (long) - 1] == 1);
1165 if { (eval echo configure:1166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1167 ac_cv_c_bigendian=no
1169 echo "configure: failed program was:" >&5
1170 cat conftest.$ac_ext >&5
1172 ac_cv_c_bigendian=yes
1180 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1181 if test $ac_cv_c_bigendian = yes; then
1182 cat >> confdefs.h <<\EOF
1183 #define WORDS_BIGENDIAN 1
1189 for ac_func in gettimeofday select strerror strtod strtol
1191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_func" >&5
1193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1199 /* System header to define __stub macros and hopefully few prototypes,
1200 which can conflict with char $ac_func(); below. */
1202 /* Override any gcc2 internal prototype to avoid an error. */
1203 /* We use char because int might match the return type of a gcc2
1204 builtin and then its argument prototype would still apply. */
1209 /* The GNU C library defines this for functions which it implements
1210 to always fail with ENOSYS. Some functions are actually named
1211 something starting with __ and the normal name is an alias. */
1212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1220 if { (eval echo configure:1221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1222 eval "ac_cv_func_$ac_func=yes"
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1227 eval "ac_cv_func_$ac_func=no"
1232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1233 echo "$ac_t""yes" 1>&6
1234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1235 cat >> confdefs.h <<EOF
1236 #define $ac_tr_func 1
1240 echo "$ac_t""no" 1>&6
1244 for ac_func in setenv putenv
1246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_func" >&5
1248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 cat > conftest.$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1254 /* System header to define __stub macros and hopefully few prototypes,
1255 which can conflict with char $ac_func(); below. */
1257 /* Override any gcc2 internal prototype to avoid an error. */
1258 /* We use char because int might match the return type of a gcc2
1259 builtin and then its argument prototype would still apply. */
1264 /* The GNU C library defines this for functions which it implements
1265 to always fail with ENOSYS. Some functions are actually named
1266 something starting with __ and the normal name is an alias. */
1267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1275 if { (eval echo configure:1276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1277 eval "ac_cv_func_$ac_func=yes"
1279 echo "configure: failed program was:" >&5
1280 cat conftest.$ac_ext >&5
1282 eval "ac_cv_func_$ac_func=no"
1287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1290 cat >> confdefs.h <<EOF
1291 #define $ac_tr_func 1
1295 echo "$ac_t""no" 1>&6
1299 echo $ac_n "checking for connect""... $ac_c" 1>&6
1300 echo "configure:1301: checking for connect" >&5
1301 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 /* System header to define __stub macros and hopefully few prototypes,
1308 which can conflict with char connect(); below. */
1310 /* Override any gcc2 internal prototype to avoid an error. */
1311 /* We use char because int might match the return type of a gcc2
1312 builtin and then its argument prototype would still apply. */
1317 /* The GNU C library defines this for functions which it implements
1318 to always fail with ENOSYS. Some functions are actually named
1319 something starting with __ and the normal name is an alias. */
1320 #if defined (__stub_connect) || defined (__stub___connect)
1328 if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1330 eval "ac_cv_func_connect=yes"
1332 echo "configure: failed program was:" >&5
1333 cat conftest.$ac_ext >&5
1335 eval "ac_cv_func_connect=no"
1340 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1341 echo "$ac_t""yes" 1>&6
1344 echo "$ac_t""no" 1>&6
1345 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1346 echo "configure:1347: checking for connect in -lsocket" >&5
1347 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1351 ac_save_LIBS="$LIBS"
1352 LIBS="-lsocket $LIBS"
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 /* Override any gcc2 internal prototype to avoid an error. */
1357 /* We use char because int might match the return type of a gcc2
1358 builtin and then its argument prototype would still apply. */
1365 if { (eval echo configure:1366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1367 eval "ac_cv_lib_$ac_lib_var=yes"
1369 echo "configure: failed program was:" >&5
1370 cat conftest.$ac_ext >&5
1372 eval "ac_cv_lib_$ac_lib_var=no"
1375 LIBS="$ac_save_LIBS"
1378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1379 echo "$ac_t""yes" 1>&6
1380 LIB="${LIB} -lsocket"
1382 echo "$ac_t""no" 1>&6
1387 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1388 echo "configure:1389: checking for gethostbyname" >&5
1389 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 cat > conftest.$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1395 /* System header to define __stub macros and hopefully few prototypes,
1396 which can conflict with char gethostbyname(); below. */
1398 /* Override any gcc2 internal prototype to avoid an error. */
1399 /* We use char because int might match the return type of a gcc2
1400 builtin and then its argument prototype would still apply. */
1401 char gethostbyname();
1405 /* The GNU C library defines this for functions which it implements
1406 to always fail with ENOSYS. Some functions are actually named
1407 something starting with __ and the normal name is an alias. */
1408 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1416 if { (eval echo configure:1417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1418 eval "ac_cv_func_gethostbyname=yes"
1420 echo "configure: failed program was:" >&5
1421 cat conftest.$ac_ext >&5
1423 eval "ac_cv_func_gethostbyname=no"
1428 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1429 echo "$ac_t""yes" 1>&6
1432 echo "$ac_t""no" 1>&6
1433 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1434 echo "configure:1435: checking for gethostbyname in -lnsl" >&5
1435 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 ac_save_LIBS="$LIBS"
1441 cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 /* Override any gcc2 internal prototype to avoid an error. */
1445 /* We use char because int might match the return type of a gcc2
1446 builtin and then its argument prototype would still apply. */
1447 char gethostbyname();
1453 if { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1455 eval "ac_cv_lib_$ac_lib_var=yes"
1457 echo "configure: failed program was:" >&5
1458 cat conftest.$ac_ext >&5
1460 eval "ac_cv_lib_$ac_lib_var=no"
1463 LIBS="$ac_save_LIBS"
1466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1467 echo "$ac_t""yes" 1>&6
1470 echo "$ac_t""no" 1>&6
1475 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1476 echo "configure:1477: checking for nanosleep" >&5
1477 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1483 /* System header to define __stub macros and hopefully few prototypes,
1484 which can conflict with char nanosleep(); below. */
1486 /* Override any gcc2 internal prototype to avoid an error. */
1487 /* We use char because int might match the return type of a gcc2
1488 builtin and then its argument prototype would still apply. */
1493 /* The GNU C library defines this for functions which it implements
1494 to always fail with ENOSYS. Some functions are actually named
1495 something starting with __ and the normal name is an alias. */
1496 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1504 if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1506 eval "ac_cv_func_nanosleep=yes"
1508 echo "configure: failed program was:" >&5
1509 cat conftest.$ac_ext >&5
1511 eval "ac_cv_func_nanosleep=no"
1516 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1517 echo "$ac_t""yes" 1>&6
1520 echo "$ac_t""no" 1>&6
1521 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1522 echo "configure:1523: checking for nanosleep in -lrt" >&5
1523 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 ac_save_LIBS="$LIBS"
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1532 /* Override any gcc2 internal prototype to avoid an error. */
1533 /* We use char because int might match the return type of a gcc2
1534 builtin and then its argument prototype would still apply. */
1541 if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1543 eval "ac_cv_lib_$ac_lib_var=yes"
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1548 eval "ac_cv_lib_$ac_lib_var=no"
1551 LIBS="$ac_save_LIBS"
1554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1555 echo "$ac_t""yes" 1>&6
1558 echo "$ac_t""no" 1>&6
1559 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1560 echo "configure:1561: checking for nanosleep in -lposix4" >&5
1561 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 ac_save_LIBS="$LIBS"
1566 LIBS="-lposix4 $LIBS"
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 /* Override any gcc2 internal prototype to avoid an error. */
1571 /* We use char because int might match the return type of a gcc2
1572 builtin and then its argument prototype would still apply. */
1579 if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1581 eval "ac_cv_lib_$ac_lib_var=yes"
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1586 eval "ac_cv_lib_$ac_lib_var=no"
1589 LIBS="$ac_save_LIBS"
1592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1593 echo "$ac_t""yes" 1>&6
1594 LIB="${LIB} -lposix4"
1596 echo "$ac_t""no" 1>&6
1603 for ac_func in usleep
1605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1606 echo "configure:1607: checking for $ac_func" >&5
1607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 cat > conftest.$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1613 /* System header to define __stub macros and hopefully few prototypes,
1614 which can conflict with char $ac_func(); below. */
1616 /* Override any gcc2 internal prototype to avoid an error. */
1617 /* We use char because int might match the return type of a gcc2
1618 builtin and then its argument prototype would still apply. */
1623 /* The GNU C library defines this for functions which it implements
1624 to always fail with ENOSYS. Some functions are actually named
1625 something starting with __ and the normal name is an alias. */
1626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1636 eval "ac_cv_func_$ac_func=yes"
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1641 eval "ac_cv_func_$ac_func=no"
1646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1647 echo "$ac_t""yes" 1>&6
1648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1649 cat >> confdefs.h <<EOF
1650 #define $ac_tr_func 1
1654 echo "$ac_t""no" 1>&6
1658 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1659 echo "configure:1660: checking for inet_aton" >&5
1660 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+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 inet_aton(); 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_inet_aton) || defined (__stub___inet_aton)
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_inet_aton=yes"
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1694 eval "ac_cv_func_inet_aton=no"
1699 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1700 echo "$ac_t""yes" 1>&6
1703 echo "$ac_t""no" 1>&6
1704 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1705 echo "configure:1706: checking for inet_aton in -lresolv" >&5
1706 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 ac_save_LIBS="$LIBS"
1711 LIBS="-lresolv $LIBS"
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* Override any gcc2 internal prototype to avoid an error. */
1716 /* We use char because int might match the return type of a gcc2
1717 builtin and then its argument prototype would still apply. */
1724 if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1726 eval "ac_cv_lib_$ac_lib_var=yes"
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1731 eval "ac_cv_lib_$ac_lib_var=no"
1734 LIBS="$ac_save_LIBS"
1737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1738 echo "$ac_t""yes" 1>&6
1739 LIB="${LIB} -lresolv"
1741 echo "$ac_t""no" 1>&6
1746 for ac_func in vasprintf
1748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1749 echo "configure:1750: checking for $ac_func" >&5
1750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1756 /* System header to define __stub macros and hopefully few prototypes,
1757 which can conflict with char $ac_func(); below. */
1759 /* Override any gcc2 internal prototype to avoid an error. */
1760 /* We use char because int might match the return type of a gcc2
1761 builtin and then its argument prototype would still apply. */
1766 /* The GNU C library defines this for functions which it implements
1767 to always fail with ENOSYS. Some functions are actually named
1768 something starting with __ and the normal name is an alias. */
1769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1777 if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1779 eval "ac_cv_func_$ac_func=yes"
1781 echo "configure: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1784 eval "ac_cv_func_$ac_func=no"
1789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1790 echo "$ac_t""yes" 1>&6
1791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1792 cat >> confdefs.h <<EOF
1793 #define $ac_tr_func 1
1797 echo "$ac_t""no" 1>&6
1802 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1803 echo "configure:1804: checking for getopt_long" >&5
1804 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 /* System header to define __stub macros and hopefully few prototypes,
1811 which can conflict with char getopt_long(); below. */
1813 /* Override any gcc2 internal prototype to avoid an error. */
1814 /* We use char because int might match the return type of a gcc2
1815 builtin and then its argument prototype would still apply. */
1820 /* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1833 eval "ac_cv_func_getopt_long=yes"
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 eval "ac_cv_func_getopt_long=no"
1843 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
1844 echo "$ac_t""yes" 1>&6
1845 cat >> confdefs.h <<\EOF
1846 #define HAVE_GETOPT_LONG 1
1850 echo "$ac_t""no" 1>&6
1851 # FreeBSD has a gnugetopt library for this:
1852 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
1853 echo "configure:1854: checking for getopt_long in -lgnugetopt" >&5
1854 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
1855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 ac_save_LIBS="$LIBS"
1859 LIBS="-lgnugetopt $LIBS"
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1863 /* Override any gcc2 internal prototype to avoid an error. */
1864 /* We use char because int might match the return type of a gcc2
1865 builtin and then its argument prototype would still apply. */
1872 if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1874 eval "ac_cv_lib_$ac_lib_var=yes"
1876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1879 eval "ac_cv_lib_$ac_lib_var=no"
1882 LIBS="$ac_save_LIBS"
1885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1886 echo "$ac_t""yes" 1>&6
1887 cat >> confdefs.h <<\EOF
1888 #define HAVE_GETOPT_LONG 1
1890 LIB="${LIB} -lgnugetopt"
1892 echo "$ac_t""no" 1>&6
1900 for ac_hdr in unistd.h
1902 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1903 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_hdr" >&5
1905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 cat > conftest.$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1914 { (eval echo configure:1915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1916 if test -z "$ac_err"; then
1918 eval "ac_cv_header_$ac_safe=yes"
1921 echo "configure: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1924 eval "ac_cv_header_$ac_safe=no"
1928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1929 echo "$ac_t""yes" 1>&6
1930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1931 cat >> confdefs.h <<EOF
1932 #define $ac_tr_hdr 1
1936 echo "$ac_t""no" 1>&6
1940 for ac_func in getpagesize
1942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1943 echo "configure:1944: checking for $ac_func" >&5
1944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1947 cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1950 /* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char $ac_func(); below. */
1953 /* Override any gcc2 internal prototype to avoid an error. */
1954 /* We use char because int might match the return type of a gcc2
1955 builtin and then its argument prototype would still apply. */
1960 /* The GNU C library defines this for functions which it implements
1961 to always fail with ENOSYS. Some functions are actually named
1962 something starting with __ and the normal name is an alias. */
1963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1971 if { (eval echo configure:1972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1973 eval "ac_cv_func_$ac_func=yes"
1975 echo "configure: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1978 eval "ac_cv_func_$ac_func=no"
1983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1984 echo "$ac_t""yes" 1>&6
1985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1986 cat >> confdefs.h <<EOF
1987 #define $ac_tr_func 1
1991 echo "$ac_t""no" 1>&6
1995 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1996 echo "configure:1997: checking for working mmap" >&5
1997 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
2000 if test "$cross_compiling" = yes; then
2001 ac_cv_func_mmap_fixed_mapped=no
2003 cat > conftest.$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2007 /* Thanks to Mike Haertel and Jim Avera for this test.
2008 Here is a matrix of mmap possibilities:
2009 mmap private not fixed
2010 mmap private fixed at somewhere currently unmapped
2011 mmap private fixed at somewhere already mapped
2012 mmap shared not fixed
2013 mmap shared fixed at somewhere currently unmapped
2014 mmap shared fixed at somewhere already mapped
2015 For private mappings, we should verify that changes cannot be read()
2016 back from the file, nor mmap's back from the file at a different
2017 address. (There have been systems where private was not correctly
2018 implemented like the infamous i386 svr4.0, and systems where the
2019 VM page cache was not coherent with the filesystem buffer cache
2020 like early versions of FreeBSD and possibly contemporary NetBSD.)
2021 For shared mappings, we should conversely verify that changes get
2022 propogated back to all the places they're supposed to be.
2024 Grep wants private fixed already mapped.
2025 The main things grep needs to know about mmap are:
2026 * does it exist and is it safe to write into the mmap'd area
2027 * how to use it (BSD variants) */
2028 #include <sys/types.h>
2030 #include <sys/mman.h>
2032 /* This mess was copied from the GNU getpagesize.h. */
2033 #ifndef HAVE_GETPAGESIZE
2034 # ifdef HAVE_UNISTD_H
2035 # include <unistd.h>
2038 /* Assume that all systems that can run configure have sys/param.h. */
2039 # ifndef HAVE_SYS_PARAM_H
2040 # define HAVE_SYS_PARAM_H 1
2043 # ifdef _SC_PAGESIZE
2044 # define getpagesize() sysconf(_SC_PAGESIZE)
2045 # else /* no _SC_PAGESIZE */
2046 # ifdef HAVE_SYS_PARAM_H
2047 # include <sys/param.h>
2048 # ifdef EXEC_PAGESIZE
2049 # define getpagesize() EXEC_PAGESIZE
2050 # else /* no EXEC_PAGESIZE */
2052 # define getpagesize() NBPG * CLSIZE
2055 # endif /* no CLSIZE */
2056 # else /* no NBPG */
2058 # define getpagesize() NBPC
2059 # else /* no NBPC */
2061 # define getpagesize() PAGESIZE
2062 # endif /* PAGESIZE */
2063 # endif /* no NBPC */
2064 # endif /* no NBPG */
2065 # endif /* no EXEC_PAGESIZE */
2066 # else /* no HAVE_SYS_PARAM_H */
2067 # define getpagesize() 8192 /* punt totally */
2068 # endif /* no HAVE_SYS_PARAM_H */
2069 # endif /* no _SC_PAGESIZE */
2071 #endif /* no HAVE_GETPAGESIZE */
2074 extern "C" { void *malloc(unsigned); }
2082 char *data, *data2, *data3;
2086 pagesize = getpagesize();
2089 * First, make a file with some known garbage in it.
2091 data = malloc(pagesize);
2094 for (i = 0; i < pagesize; ++i)
2095 *(data + i) = rand();
2097 fd = creat("conftestmmap", 0600);
2100 if (write(fd, data, pagesize) != pagesize)
2105 * Next, try to mmap the file at a fixed address which
2106 * already has something else allocated at it. If we can,
2107 * also make sure that we see the same garbage.
2109 fd = open("conftestmmap", O_RDWR);
2112 data2 = malloc(2 * pagesize);
2115 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2116 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2117 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2119 for (i = 0; i < pagesize; ++i)
2120 if (*(data + i) != *(data2 + i))
2124 * Finally, make sure that changes to the mapped area
2125 * do not percolate back to the file as seen by read().
2126 * (This is a bug on some variants of i386 svr4.0.)
2128 for (i = 0; i < pagesize; ++i)
2129 *(data2 + i) = *(data2 + i) + 1;
2130 data3 = malloc(pagesize);
2133 if (read(fd, data3, pagesize) != pagesize)
2135 for (i = 0; i < pagesize; ++i)
2136 if (*(data + i) != *(data3 + i))
2139 unlink("conftestmmap");
2144 if { (eval echo configure:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2146 ac_cv_func_mmap_fixed_mapped=yes
2148 echo "configure: failed program was:" >&5
2149 cat conftest.$ac_ext >&5
2151 ac_cv_func_mmap_fixed_mapped=no
2158 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2159 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2160 cat >> confdefs.h <<\EOF
2166 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2167 echo "configure:2168: checking return type of signal handlers" >&5
2168 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 cat > conftest.$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2174 #include <sys/types.h>
2180 extern "C" void (*signal (int, void (*)(int)))(int);
2182 void (*signal ()) ();
2189 if { (eval echo configure:2190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2191 ac_cv_type_signal=void
2193 echo "configure: failed program was:" >&5
2194 cat conftest.$ac_ext >&5
2196 ac_cv_type_signal=int
2201 echo "$ac_t""$ac_cv_type_signal" 1>&6
2202 cat >> confdefs.h <<EOF
2203 #define RETSIGTYPE $ac_cv_type_signal
2207 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2208 echo "configure:2209: checking for dlopen in -ldl" >&5
2209 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 ac_save_LIBS="$LIBS"
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 /* Override any gcc2 internal prototype to avoid an error. */
2219 /* We use char because int might match the return type of a gcc2
2220 builtin and then its argument prototype would still apply. */
2227 if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2229 eval "ac_cv_lib_$ac_lib_var=yes"
2231 echo "configure: failed program was:" >&5
2232 cat conftest.$ac_ext >&5
2234 eval "ac_cv_lib_$ac_lib_var=no"
2237 LIBS="$ac_save_LIBS"
2240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2241 echo "$ac_t""yes" 1>&6
2244 echo "$ac_t""no" 1>&6
2247 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2248 echo "configure:2249: checking for pow in -lm" >&5
2249 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 ac_save_LIBS="$LIBS"
2255 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2258 /* Override any gcc2 internal prototype to avoid an error. */
2259 /* We use char because int might match the return type of a gcc2
2260 builtin and then its argument prototype would still apply. */
2267 if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2269 eval "ac_cv_lib_$ac_lib_var=yes"
2271 echo "configure: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2274 eval "ac_cv_lib_$ac_lib_var=no"
2277 LIBS="$ac_save_LIBS"
2280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2281 echo "$ac_t""yes" 1>&6
2282 LIB_YUV="${LIB_YUV} -lm"
2284 echo "$ac_t""no" 1>&6
2287 echo $ac_n "checking for old style FreeBSD -pthread flag""... $ac_c" 1>&6
2288 echo "configure:2289: checking for old style FreeBSD -pthread flag" >&5
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2292 #if defined(__FreeBSD_cc_version) && __FreeBSD_cc_version <= 500001
2297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2298 egrep "yes" >/dev/null 2>&1; then
2300 echo "$ac_t""yes" 1>&6
2301 DEFINE="${DEFINE} -D_THREAD_SAFE" LIB="${LIB} -pthread"
2304 echo "$ac_t""no" 1>&6
2305 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2306 echo "configure:2307: checking for pthread_create in -lpthread" >&5
2307 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2311 ac_save_LIBS="$LIBS"
2312 LIBS="-lpthread $LIBS"
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2316 /* Override any gcc2 internal prototype to avoid an error. */
2317 /* We use char because int might match the return type of a gcc2
2318 builtin and then its argument prototype would still apply. */
2319 char pthread_create();
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2327 eval "ac_cv_lib_$ac_lib_var=yes"
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2332 eval "ac_cv_lib_$ac_lib_var=no"
2335 LIBS="$ac_save_LIBS"
2338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 LIB="${LIB} -lpthread"
2342 echo "$ac_t""no" 1>&6
2348 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2349 echo "configure:2350: checking for thread_create in -lthreads" >&5
2350 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 ac_save_LIBS="$LIBS"
2355 LIBS="-lthreads $LIBS"
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 /* Override any gcc2 internal prototype to avoid an error. */
2360 /* We use char because int might match the return type of a gcc2
2361 builtin and then its argument prototype would still apply. */
2362 char thread_create();
2368 if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2370 eval "ac_cv_lib_$ac_lib_var=yes"
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 eval "ac_cv_lib_$ac_lib_var=no"
2378 LIBS="$ac_save_LIBS"
2381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2382 echo "$ac_t""yes" 1>&6
2383 LIB="${LIB} -lthreads"
2385 echo "$ac_t""no" 1>&6
2389 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2390 for ac_hdr in stddef.h
2392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_hdr" >&5
2395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2406 if test -z "$ac_err"; then
2408 eval "ac_cv_header_$ac_safe=yes"
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 eval "ac_cv_header_$ac_safe=no"
2418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2421 cat >> confdefs.h <<EOF
2422 #define $ac_tr_hdr 1
2426 echo "$ac_t""no" 1>&6
2430 for ac_hdr in getopt.h
2432 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2434 echo "configure:2435: checking for $ac_hdr" >&5
2435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2444 { (eval echo configure:2445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2446 if test -z "$ac_err"; then
2448 eval "ac_cv_header_$ac_safe=yes"
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2454 eval "ac_cv_header_$ac_safe=no"
2458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2460 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2461 cat >> confdefs.h <<EOF
2462 #define $ac_tr_hdr 1
2466 echo "$ac_t""no" 1>&6
2470 for ac_hdr in sys/sockio.h
2472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2474 echo "configure:2475: checking for $ac_hdr" >&5
2475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2484 { (eval echo configure:2485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2486 if test -z "$ac_err"; then
2488 eval "ac_cv_header_$ac_safe=yes"
2491 echo "configure: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2494 eval "ac_cv_header_$ac_safe=no"
2498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2501 cat >> confdefs.h <<EOF
2502 #define $ac_tr_hdr 1
2506 echo "$ac_t""no" 1>&6
2510 for ac_hdr in fcntl.h sys/time.h unistd.h
2512 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2514 echo "configure:2515: checking for $ac_hdr" >&5
2515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2524 { (eval echo configure:2525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2526 if test -z "$ac_err"; then
2528 eval "ac_cv_header_$ac_safe=yes"
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2534 eval "ac_cv_header_$ac_safe=no"
2538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2539 echo "$ac_t""yes" 1>&6
2540 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2541 cat >> confdefs.h <<EOF
2542 #define $ac_tr_hdr 1
2546 echo "$ac_t""no" 1>&6
2550 for ac_hdr in sys/soundcard.h machine/soundcard.h
2552 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2553 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2554 echo "configure:2555: checking for $ac_hdr" >&5
2555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2564 { (eval echo configure:2565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2566 if test -z "$ac_err"; then
2568 eval "ac_cv_header_$ac_safe=yes"
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 eval "ac_cv_header_$ac_safe=no"
2578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2579 echo "$ac_t""yes" 1>&6
2580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2581 cat >> confdefs.h <<EOF
2582 #define $ac_tr_hdr 1
2586 echo "$ac_t""no" 1>&6
2590 for ac_hdr in dlfcn.h image.h
2592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2594 echo "configure:2595: checking for $ac_hdr" >&5
2595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2604 { (eval echo configure:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2606 if test -z "$ac_err"; then
2608 eval "ac_cv_header_$ac_safe=yes"
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2614 eval "ac_cv_header_$ac_safe=no"
2618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2619 echo "$ac_t""yes" 1>&6
2620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2621 cat >> confdefs.h <<EOF
2622 #define $ac_tr_hdr 1
2626 echo "$ac_t""no" 1>&6
2630 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2634 echo "configure:2635: checking for $ac_hdr" >&5
2635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2644 { (eval echo configure:2645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2646 if test -z "$ac_err"; then
2648 eval "ac_cv_header_$ac_safe=yes"
2651 echo "configure: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2654 eval "ac_cv_header_$ac_safe=no"
2658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2659 echo "$ac_t""yes" 1>&6
2660 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2661 cat >> confdefs.h <<EOF
2662 #define $ac_tr_hdr 1
2666 echo "$ac_t""no" 1>&6
2670 for ac_hdr in machine/param.h
2672 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $ac_hdr" >&5
2675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2684 { (eval echo configure:2685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2686 if test -z "$ac_err"; then
2688 eval "ac_cv_header_$ac_safe=yes"
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2694 eval "ac_cv_header_$ac_safe=no"
2698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2699 echo "$ac_t""yes" 1>&6
2700 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2701 cat >> confdefs.h <<EOF
2702 #define $ac_tr_hdr 1
2706 echo "$ac_t""no" 1>&6
2711 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2713 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2715 echo "configure:2716: checking for $ac_hdr" >&5
2716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2725 { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2727 if test -z "$ac_err"; then
2729 eval "ac_cv_header_$ac_safe=yes"
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2735 eval "ac_cv_header_$ac_safe=no"
2739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2740 echo "$ac_t""yes" 1>&6
2741 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2742 cat >> confdefs.h <<EOF
2743 #define $ac_tr_hdr 1
2747 echo "$ac_t""no" 1>&6
2754 CFLAGS="${CFLAGS} -Wall -Werror"
2755 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2756 echo "configure:2757: checking for ntohl in sys/param.h" >&5
2757 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2760 #include <sys/param.h>
2761 void foo() { int meuh; ntohl(meuh); }
2766 if { (eval echo configure:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2768 cat >> confdefs.h <<\EOF
2769 #define NTOHL_IN_SYS_PARAM_H 1
2772 echo "$ac_t""yes" 1>&6
2774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2777 echo "$ac_t""no" 1>&6
2781 CFLAGS="${CFLAGS} -rdynamic -Wall -Werror"
2782 echo $ac_n "checking if \$CC groks -rdynamic without complaining too much""... $ac_c" 1>&6
2783 echo "configure:2784: checking if \$CC groks -rdynamic without complaining too much" >&5
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2792 if { (eval echo configure:2793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2794 LCFLAGS="${LCFLAGS} -rdynamic"
2795 echo "$ac_t""yes" 1>&6
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2800 echo "$ac_t""no" 1>&6
2806 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
2807 echo "configure:2808: checking for boolean_t in sys/types.h" >&5
2808 cat > conftest.$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2811 #include <sys/types.h>
2812 void quux() { boolean_t foo; }
2817 if { (eval echo configure:2818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2819 cat >> confdefs.h <<\EOF
2820 #define BOOLEAN_T_IN_SYS_TYPES_H 1
2823 echo "$ac_t""yes" 1>&6
2825 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2828 echo "$ac_t""no" 1>&6
2831 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
2832 echo "configure:2833: checking for boolean_t in pthread.h" >&5
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <pthread.h>
2837 void quux() { boolean_t foo; }
2842 if { (eval echo configure:2843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2844 cat >> confdefs.h <<\EOF
2845 #define BOOLEAN_T_IN_PTHREAD_H 1
2848 echo "$ac_t""yes" 1>&6
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2853 echo "$ac_t""no" 1>&6
2857 echo $ac_n "checking for working const""... $ac_c" 1>&6
2858 echo "configure:2859: checking for working const" >&5
2859 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 cat > conftest.$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2868 /* Ultrix mips cc rejects this. */
2869 typedef int charset[2]; const charset x;
2870 /* SunOS 4.1.1 cc rejects this. */
2871 char const *const *ccp;
2873 /* NEC SVR4.0.2 mips cc rejects this. */
2874 struct point {int x, y;};
2875 static struct point const zero = {0,0};
2876 /* AIX XL C 1.02.0.0 rejects this.
2877 It does not let you subtract one const X* pointer from another in an arm
2878 of an if-expression whose if-part is not a constant expression */
2879 const char *g = "string";
2880 ccp = &g + (g ? g-g : 0);
2881 /* HPUX 7.0 cc rejects these. */
2884 ccp = (char const *const *) p;
2885 { /* SCO 3.2v4 cc rejects this. */
2887 char const *s = 0 ? (char *) 0 : (char const *) 0;
2891 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2893 const int *foo = &x[0];
2896 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2897 typedef const int *iptr;
2901 { /* AIX XL C 1.02.0.0 rejects this saying
2902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2903 struct s { int j; const int *ap[3]; };
2904 struct s *b; b->j = 5;
2906 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2912 if { (eval echo configure:2913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2916 echo "configure: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2924 echo "$ac_t""$ac_cv_c_const" 1>&6
2925 if test $ac_cv_c_const = no; then
2926 cat >> confdefs.h <<\EOF
2932 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2933 echo "configure:2934: checking for ANSI C header files" >&5
2934 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2937 cat > conftest.$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2946 { (eval echo configure:2947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2948 if test -z "$ac_err"; then
2950 ac_cv_header_stdc=yes
2953 echo "configure: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2956 ac_cv_header_stdc=no
2960 if test $ac_cv_header_stdc = yes; then
2961 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2968 egrep "memchr" >/dev/null 2>&1; then
2972 ac_cv_header_stdc=no
2978 if test $ac_cv_header_stdc = yes; then
2979 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2986 egrep "free" >/dev/null 2>&1; then
2990 ac_cv_header_stdc=no
2996 if test $ac_cv_header_stdc = yes; then
2997 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2998 if test "$cross_compiling" = yes; then
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3005 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3006 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3008 int main () { int i; for (i = 0; i < 256; i++)
3009 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3013 if { (eval echo configure:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3017 echo "configure: failed program was:" >&5
3018 cat conftest.$ac_ext >&5
3020 ac_cv_header_stdc=no
3028 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3029 if test $ac_cv_header_stdc = yes; then
3030 cat >> confdefs.h <<\EOF
3031 #define STDC_HEADERS 1
3036 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3037 echo "configure:3038: checking for size_t" >&5
3038 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3041 cat > conftest.$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3044 #include <sys/types.h>
3050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3051 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3053 ac_cv_type_size_t=yes
3056 ac_cv_type_size_t=no
3061 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3062 if test $ac_cv_type_size_t = no; then
3063 cat >> confdefs.h <<\EOF
3064 #define size_t unsigned
3069 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3070 echo "configure:3071: checking whether time.h and sys/time.h may both be included" >&5
3071 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 cat > conftest.$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3077 #include <sys/types.h>
3078 #include <sys/time.h>
3084 if { (eval echo configure:3085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3086 ac_cv_header_time=yes
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3091 ac_cv_header_time=no
3096 echo "$ac_t""$ac_cv_header_time" 1>&6
3097 if test $ac_cv_header_time = yes; then
3098 cat >> confdefs.h <<\EOF
3099 #define TIME_WITH_SYS_TIME 1
3107 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion"
3108 if test x$host_os = xbeos; then
3109 ACCEL_PLUGINS="yuvmmx idctmmx motionmmx"
3111 ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext"
3114 for ac_hdr in sys/ioctl.h
3116 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3117 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3118 echo "configure:3119: checking for $ac_hdr" >&5
3119 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3128 { (eval echo configure:3129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3130 if test -z "$ac_err"; then
3132 eval "ac_cv_header_$ac_safe=yes"
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3138 eval "ac_cv_header_$ac_safe=no"
3142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3143 echo "$ac_t""yes" 1>&6
3144 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3145 cat >> confdefs.h <<EOF
3146 #define $ac_tr_hdr 1
3149 BUILTINS="${BUILTINS} dvd"
3150 for ac_hdr in linux/cdrom.h
3152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3154 echo "configure:3155: checking for $ac_hdr" >&5
3155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3164 { (eval echo configure:3165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3166 if test -z "$ac_err"; then
3168 eval "ac_cv_header_$ac_safe=yes"
3171 echo "configure: failed program was:" >&5
3172 cat conftest.$ac_ext >&5
3174 eval "ac_cv_header_$ac_safe=no"
3178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3179 echo "$ac_t""yes" 1>&6
3180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3181 cat >> confdefs.h <<EOF
3182 #define $ac_tr_hdr 1
3186 echo "$ac_t""no" 1>&6
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 #include <linux/cdrom.h>
3195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3196 egrep "dvd" >/dev/null 2>&1; then
3199 cat >> confdefs.h <<\EOF
3209 echo "$ac_t""no" 1>&6
3214 # Check whether --enable-dummy or --disable-dummy was given.
3215 if test "${enable_dummy+set}" = set; then
3216 enableval="$enable_dummy"
3220 if test x$enable_dummy != xno; then
3221 BUILTINS="${BUILTINS} dummy"; fi
3223 # Check whether --enable-null or --disable-null was given.
3224 if test "${enable_null+set}" = set; then
3225 enableval="$enable_null"
3229 if test x$enable_null != xno; then
3230 BUILTINS="${BUILTINS} null"; fi
3232 # Check whether --enable-ppro or --disable-ppro was given.
3233 if test "${enable_ppro+set}" = set; then
3234 enableval="$enable_ppro"
3235 if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
3237 if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
3241 # Check whether --enable-mmx or --disable-mmx was given.
3242 if test "${enable_mmx+set}" = set; then
3243 enableval="$enable_mmx"
3244 if test x$enableval = xyes; then ARCH="${ARCH} mmx";
3245 BUILTINS="${BUILTINS} ${ACCEL_PLUGINS}"; fi
3247 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86; then ARCH="${ARCH} mmx";
3248 BUILTINS="${BUILTINS} ${ACCEL_PLUGINS}"; fi
3252 # Check whether --enable-altivec or --disable-altivec was given.
3253 if test "${enable_altivec+set}" = set; then
3254 enableval="$enable_altivec"
3255 if test x$enableval = xyes; then ARCH="${ARCH} altivec";
3256 BUILTINS="${BUILTINS} idctaltivec"
3257 LIB_IDCTALTIVEC="-framework vecLib"
3261 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])
3263 # Check whether --enable-css or --disable-css was given.
3264 if test "${enable_css+set}" = set; then
3265 enableval="$enable_css"
3266 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3271 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3276 # Check whether --enable-debug or --disable-debug was given.
3277 if test "${enable_debug+set}" = set; then
3278 enableval="$enable_debug"
3279 if test x$enableval = xyes; then DEBUG=1; fi
3283 # Check whether --enable-stats or --disable-stats was given.
3284 if test "${enable_stats+set}" = set; then
3285 enableval="$enable_stats"
3286 if test x$enableval = xyes; then STATS=1; fi
3290 # Check whether --enable-optimizations or --disable-optimizations was given.
3291 if test "${enable_optimizations+set}" = set; then
3292 enableval="$enable_optimizations"
3293 if test x$enableval = xno; then OPTIMS=0; fi
3301 if test x$host_os = xbeos; then
3302 BUILTINS="${BUILTINS} beos"
3303 LIB_BEOS="-lbe -lgame -lroot -ltracker"
3307 # Check whether --enable-dsp or --disable-dsp was given.
3308 if test "${enable_dsp+set}" = set; then
3309 enableval="$enable_dsp"
3313 if test x$enable_dsp != xno; then
3314 if test -c /dev/dsp; then
3315 PLUGINS="${PLUGINS} dsp"
3319 # Check whether --enable-esd or --disable-esd was given.
3320 if test "${enable_esd+set}" = set; then
3321 enableval="$enable_esd"
3322 if test x$enable_esd = xyes; then
3323 # Extract the first word of "esd-config", so it can be a program name with args.
3324 set dummy esd-config; ac_word=$2
3325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3326 echo "configure:3327: checking for $ac_word" >&5
3327 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6
3330 case "$ESD_CONFIG" in
3332 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
3335 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
3338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3340 for ac_dir in $ac_dummy; do
3341 test -z "$ac_dir" && ac_dir=.
3342 if test -f $ac_dir/$ac_word; then
3343 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
3348 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
3352 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
3353 if test -n "$ESD_CONFIG"; then
3354 echo "$ac_t""$ESD_CONFIG" 1>&6
3356 echo "$ac_t""no" 1>&6
3359 if test x${ESD_CONFIG} != xno; then
3360 PLUGINS="${PLUGINS} esd"
3361 LIB_ESD="`${ESD_CONFIG} --libs`"
3367 # Check whether --enable-darwin or --disable-darwin was given.
3368 if test "${enable_darwin+set}" = set; then
3369 enableval="$enable_darwin"
3370 if test x$enable_darwin = xyes; then
3371 PLUGINS="${PLUGINS} darwin"
3372 LIB_DARWIN="-framework CoreAudio"
3377 # Check whether --enable-macosx or --disable-macosx was given.
3378 if test "${enable_macosx+set}" = set; then
3379 enableval="$enable_macosx"
3380 if test x$enable_macosx = xyes; then
3381 BUILTINS="${BUILTINS} macosx"
3382 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3383 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3384 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3387 for ac_hdr in Carbon/Carbon.h
3389 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3390 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3391 echo "configure:3392: checking for $ac_hdr" >&5
3392 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3401 { (eval echo configure:3402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3403 if test -z "$ac_err"; then
3405 eval "ac_cv_header_$ac_safe=yes"
3408 echo "configure: failed program was:" >&5
3409 cat conftest.$ac_ext >&5
3411 eval "ac_cv_header_$ac_safe=no"
3415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3416 echo "$ac_t""yes" 1>&6
3417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3418 cat >> confdefs.h <<EOF
3419 #define $ac_tr_hdr 1
3421 BUILTINS="${BUILTINS} macosx"
3422 LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3423 LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
3424 LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
3427 echo "$ac_t""no" 1>&6
3434 # Check whether --enable-fb or --disable-fb was given.
3435 if test "${enable_fb+set}" = set; then
3436 enableval="$enable_fb"
3437 if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi
3441 # Check whether --with-ggi or --without-ggi was given.
3442 if test "${with_ggi+set}" = set; then
3444 if test "x$withval" != "xno";
3446 PLUGINS="${PLUGINS} ggi";
3447 if test "x$withval" != "xyes";
3449 LIB_GGI="-l"$withval
3457 # Check whether --with-sdl or --without-sdl was given.
3458 if test "${with_sdl+set}" = set; then
3460 if test "x$withval" != "xno";
3462 PLUGINS="${PLUGINS} sdl";
3463 if test "x$withval" != "xyes";
3465 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -L"$withval"/lib -l"$withval
3466 INCLUDE="${INCLUDE} -I"$withval"/include"
3468 for ac_hdr in SDL/SDL.h
3470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3472 echo "configure:3473: checking for $ac_hdr" >&5
3473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 cat > conftest.$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3482 { (eval echo configure:3483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3484 if test -z "$ac_err"; then
3486 eval "ac_cv_header_$ac_safe=yes"
3489 echo "configure: failed program was:" >&5
3490 cat conftest.$ac_ext >&5
3492 eval "ac_cv_header_$ac_safe=no"
3496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3497 echo "$ac_t""yes" 1>&6
3498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3499 cat >> confdefs.h <<EOF
3500 #define $ac_tr_hdr 1
3504 echo "$ac_t""no" 1>&6
3505 echo "Cannot find SDL headers !"; exit
3509 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
3514 if test "x$withval" = "x";
3516 for ac_hdr in SDL/SDL.h
3518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3520 echo "configure:3521: checking for $ac_hdr" >&5
3521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3524 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3530 { (eval echo configure:3531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3532 if test -z "$ac_err"; then
3534 eval "ac_cv_header_$ac_safe=yes"
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3540 eval "ac_cv_header_$ac_safe=no"
3544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3545 echo "$ac_t""yes" 1>&6
3546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3547 cat >> confdefs.h <<EOF
3548 #define $ac_tr_hdr 1
3550 PLUGINS="${PLUGINS} sdl"
3551 LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
3553 echo "$ac_t""no" 1>&6
3559 # Check whether --with-glide or --without-glide was given.
3560 if test "${with_glide+set}" = set; then
3561 withval="$with_glide"
3562 if test "x$withval" != "xno";
3564 PLUGINS="${PLUGINS} glide";
3565 if test "x$withval" != "xyes";
3567 LIB_GLIDE="-l"$withval
3569 LIB_GLIDE="-lglide2x"
3575 # Check whether --enable-ncurses or --disable-ncurses was given.
3576 if test "${enable_ncurses+set}" = set; then
3577 enableval="$enable_ncurses"
3578 if test x$enable_ncurses = xyes; then
3579 PLUGINS="${PLUGINS} ncurses"
3580 LIB_NCURSES="-lncurses"
3585 # Check whether --enable-qt or --disable-qt was given.
3586 if test "${enable_qt+set}" = set; then
3587 enableval="$enable_qt"
3588 if test x$enable_qt = xyes; then
3589 PLUGINS="${PLUGINS} qt"
3590 ALIASES="${ALIASES} qvlc"
3591 LIB_QT="-lqt -L${QTDIR}/lib"
3596 # Check whether --enable-kde or --disable-kde was given.
3597 if test "${enable_kde+set}" = set; then
3598 enableval="$enable_kde"
3599 if test x$enable_kde = xyes; then PLUGINS="${PLUGINS} kde"; ALIASES="${ALIASES} kvlc"; fi
3603 # Check whether --enable-gnome or --disable-gnome was given.
3604 if test "${enable_gnome+set}" = set; then
3605 enableval="$enable_gnome"
3606 if test x$enable_gnome = xyes; then
3607 PLUGINS="${PLUGINS} gnome"
3608 ALIASES="${ALIASES} gnome-vlc"
3609 LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
3614 # Check whether --enable-gtk or --disable-gtk was given.
3615 if test "${enable_gtk+set}" = set; then
3616 enableval="$enable_gtk"
3620 if test x$enable_gtk != xno; then
3621 # Extract the first word of "gtk-config", so it can be a program name with args.
3622 set dummy gtk-config; ac_word=$2
3623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3624 echo "configure:3625: checking for $ac_word" >&5
3625 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 case "$GTK_CONFIG" in
3630 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
3633 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
3636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3638 for ac_dir in $ac_dummy; do
3639 test -z "$ac_dir" && ac_dir=.
3640 if test -f $ac_dir/$ac_word; then
3641 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
3646 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
3650 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
3651 if test -n "$GTK_CONFIG"; then
3652 echo "$ac_t""$GTK_CONFIG" 1>&6
3654 echo "$ac_t""no" 1>&6
3657 if test x${GTK_CONFIG} != xno; then
3658 PLUGINS="${PLUGINS} gtk"
3659 ALIASES="${ALIASES} gvlc"
3660 CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
3661 LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
3665 # Check whether --enable-x11 or --disable-x11 was given.
3666 if test "${enable_x11+set}" = set; then
3667 enableval="$enable_x11"
3671 if test x$enable_x11 != xno; then
3672 if test x$x_includes = xNONE; then
3673 x_includes=/usr/X11R6/include
3675 if test x$x_libraries = xNONE; then
3676 x_libraries=/usr/X11R6/lib
3678 saved_CPPFLAGS=$CPPFLAGS
3679 CPPFLAGS="$CPPFLAGS -I$x_includes"
3680 for ac_hdr in X11/Xlib.h
3682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3684 echo "configure:3685: checking for $ac_hdr" >&5
3685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3688 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3694 { (eval echo configure:3695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3696 if test -z "$ac_err"; then
3698 eval "ac_cv_header_$ac_safe=yes"
3701 echo "configure: failed program was:" >&5
3702 cat conftest.$ac_ext >&5
3704 eval "ac_cv_header_$ac_safe=no"
3708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3709 echo "$ac_t""yes" 1>&6
3710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3711 cat >> confdefs.h <<EOF
3712 #define $ac_tr_hdr 1
3715 PLUGINS="${PLUGINS} x11"
3716 LIB_X11="-L$x_libraries -lX11 -lXext"
3717 CFLAGS_X11="-I$x_includes"
3719 CPPFLAGS=$saved_CPPFLAGS
3721 echo "$ac_t""no" 1>&6
3727 # Check whether --enable-xvideo or --disable-xvideo was given.
3728 if test "${enable_xvideo+set}" = set; then
3729 enableval="$enable_xvideo"
3733 if test x$enable_xvideo != xno; then
3734 if test x$x_includes = xNONE; then
3735 x_includes=/usr/X11R6/include
3737 if test x$x_libraries = xNONE; then
3738 x_libraries=/usr/X11R6/lib
3740 saved_CPPFLAGS=$CPPFLAGS
3741 CPPFLAGS="$CPPFLAGS -I$x_includes"
3742 for ac_hdr in X11/extensions/Xv.h
3744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3746 echo "configure:3747: checking for $ac_hdr" >&5
3747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3750 cat > conftest.$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3756 { (eval echo configure:3757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3758 if test -z "$ac_err"; then
3760 eval "ac_cv_header_$ac_safe=yes"
3763 echo "configure: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3766 eval "ac_cv_header_$ac_safe=no"
3770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3771 echo "$ac_t""yes" 1>&6
3772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3773 cat >> confdefs.h <<EOF
3774 #define $ac_tr_hdr 1
3777 PLUGINS="${PLUGINS} xvideo"
3778 LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
3779 CFLAGS_X11="-I$x_includes"
3781 CPPFLAGS=$saved_CPPFLAGS
3783 echo "$ac_t""no" 1>&6
3789 # Check whether --enable-alsa or --disable-alsa was given.
3790 if test "${enable_alsa+set}" = set; then
3791 enableval="$enable_alsa"
3792 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3793 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3794 echo "configure:3795: checking for sys/asoundlib.h" >&5
3795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3801 #include <sys/asoundlib.h>
3803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3804 { (eval echo configure:3805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3806 if test -z "$ac_err"; then
3808 eval "ac_cv_header_$ac_safe=yes"
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 eval "ac_cv_header_$ac_safe=no"
3818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3819 echo "$ac_t""yes" 1>&6
3820 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3821 echo "configure:3822: checking for main in -lasound" >&5
3822 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3826 ac_save_LIBS="$LIBS"
3827 LIBS="-lasound $LIBS"
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3836 if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3838 eval "ac_cv_lib_$ac_lib_var=yes"
3840 echo "configure: failed program was:" >&5
3841 cat conftest.$ac_ext >&5
3843 eval "ac_cv_lib_$ac_lib_var=no"
3846 LIBS="$ac_save_LIBS"
3849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3850 echo "$ac_t""yes" 1>&6
3853 echo "$ac_t""no" 1>&6
3858 echo "$ac_t""no" 1>&6
3861 if test x$have_alsa = xtrue; then
3862 PLUGINS="${PLUGINS} alsa"
3907 cat > confcache <<\EOF
3908 # This file is a shell script that caches the results of configure
3909 # tests run on this system so they can be shared between configure
3910 # scripts and configure runs. It is not useful on other systems.
3911 # If it contains results you don't want to keep, you may remove or edit it.
3913 # By default, configure uses ./config.cache as the cache file,
3914 # creating it if it does not exist already. You can give configure
3915 # the --cache-file=FILE option to use a different cache file; that is
3916 # what configure does when it calls configure scripts in
3917 # subdirectories, so they share the cache.
3918 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3919 # config.status only pays attention to the cache file if you give it the
3920 # --recheck option to rerun configure.
3923 # The following way of writing the cache mishandles newlines in values,
3924 # but we know of no workaround that is simple, portable, and efficient.
3925 # So, don't put newlines in cache variables' values.
3926 # Ultrix sh set writes to stderr and can't be redirected directly,
3927 # and sets the high bit in the cache file unless we assign to the vars.
3929 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3931 # `set' does not quote correctly, so add quotes (double-quote substitution
3932 # turns \\\\ into \\, and sed turns \\ into \).
3934 -e "s/'/'\\\\''/g" \
3935 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3938 # `set' quotes correctly as required by POSIX, so do not add quotes.
3939 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3942 if cmp -s $cache_file confcache; then
3945 if test -w $cache_file; then
3946 echo "updating cache $cache_file"
3947 cat confcache > $cache_file
3949 echo "not updating unwritable cache $cache_file"
3954 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3956 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3957 # Let make expand exec_prefix.
3958 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3960 # Any assignment to VPATH causes Sun make to only execute
3961 # the first set of double-colon rules, so remove it if not needed.
3962 # If there is a colon in the path, we need to keep it.
3963 if test "x$srcdir" = x.; then
3964 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3967 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3969 DEFS=-DHAVE_CONFIG_H
3971 # Without the "./", some shells look in PATH for config.status.
3972 : ${CONFIG_STATUS=./config.status}
3974 echo creating $CONFIG_STATUS
3975 rm -f $CONFIG_STATUS
3976 cat > $CONFIG_STATUS <<EOF
3978 # Generated automatically by configure.
3979 # Run this file to recreate the current configuration.
3980 # This directory was configured as follows,
3981 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3983 # $0 $ac_configure_args
3985 # Compiler output produced by configure, useful for debugging
3986 # configure, is in ./config.log if it exists.
3988 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3991 case "\$ac_option" in
3992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3993 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3994 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3995 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3996 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3998 -help | --help | --hel | --he | --h)
3999 echo "\$ac_cs_usage"; exit 0 ;;
4000 *) echo "\$ac_cs_usage"; exit 1 ;;
4004 ac_given_srcdir=$srcdir
4005 ac_given_INSTALL="$INSTALL"
4007 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4009 cat >> $CONFIG_STATUS <<EOF
4011 # Protect against being on the right side of a sed subst in config.status.
4012 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4013 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4017 s%@CFLAGS@%$CFLAGS%g
4018 s%@CPPFLAGS@%$CPPFLAGS%g
4019 s%@CXXFLAGS@%$CXXFLAGS%g
4020 s%@FFLAGS@%$FFLAGS%g
4022 s%@LDFLAGS@%$LDFLAGS%g
4024 s%@exec_prefix@%$exec_prefix%g
4025 s%@prefix@%$prefix%g
4026 s%@program_transform_name@%$program_transform_name%g
4027 s%@bindir@%$bindir%g
4028 s%@sbindir@%$sbindir%g
4029 s%@libexecdir@%$libexecdir%g
4030 s%@datadir@%$datadir%g
4031 s%@sysconfdir@%$sysconfdir%g
4032 s%@sharedstatedir@%$sharedstatedir%g
4033 s%@localstatedir@%$localstatedir%g
4034 s%@libdir@%$libdir%g
4035 s%@includedir@%$includedir%g
4036 s%@oldincludedir@%$oldincludedir%g
4037 s%@infodir@%$infodir%g
4038 s%@mandir@%$mandir%g
4040 s%@host_alias@%$host_alias%g
4041 s%@host_cpu@%$host_cpu%g
4042 s%@host_vendor@%$host_vendor%g
4043 s%@host_os@%$host_os%g
4044 s%@VLC_VERSION@%$VLC_VERSION%g
4045 s%@VLC_CODENAME@%$VLC_CODENAME%g
4046 s%@SET_MAKE@%$SET_MAKE%g
4049 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4050 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4051 s%@INSTALL_DATA@%$INSTALL_DATA%g
4052 s%@GETOPT@%$GETOPT%g
4053 s%@ESD_CONFIG@%$ESD_CONFIG%g
4054 s%@GTK_CONFIG@%$GTK_CONFIG%g
4057 s%@PLUGINS@%$PLUGINS%g
4058 s%@BUILTINS@%$BUILTINS%g
4059 s%@ALIASES@%$ALIASES%g
4060 s%@DEFINE@%$DEFINE%g
4061 s%@INCLUDE@%$INCLUDE%g
4064 s%@OPTIMS@%$OPTIMS%g
4066 s%@LCFLAGS@%$LCFLAGS%g
4068 s%@LIB_ALSA@%$LIB_ALSA%g
4069 s%@LIB_BEOS@%$LIB_BEOS%g
4070 s%@LIB_DARWIN@%$LIB_DARWIN%g
4071 s%@LIB_ESD@%$LIB_ESD%g
4072 s%@LIB_GGI@%$LIB_GGI%g
4073 s%@LIB_GLIDE@%$LIB_GLIDE%g
4074 s%@LIB_GNOME@%$LIB_GNOME%g
4075 s%@LIB_GTK@%$LIB_GTK%g
4076 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
4077 s%@LIB_MACOSX@%$LIB_MACOSX%g
4078 s%@LIB_NCURSES@%$LIB_NCURSES%g
4079 s%@LIB_QT@%$LIB_QT%g
4080 s%@LIB_TS@%$LIB_TS%g
4081 s%@LIB_SDL@%$LIB_SDL%g
4082 s%@LIB_X11@%$LIB_X11%g
4083 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
4084 s%@LIB_YUV@%$LIB_YUV%g
4085 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
4086 s%@CFLAGS_X11@%$CFLAGS_X11%g
4091 cat >> $CONFIG_STATUS <<\EOF
4093 # Split the substitutions into bite-sized pieces for seds with
4094 # small command number limits, like on Digital OSF/1 and HP-UX.
4095 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4096 ac_file=1 # Number of current file.
4097 ac_beg=1 # First line for current file.
4098 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4101 while $ac_more_lines; do
4102 if test $ac_beg -gt 1; then
4103 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4105 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4107 if test ! -s conftest.s$ac_file; then
4109 rm -f conftest.s$ac_file
4111 if test -z "$ac_sed_cmds"; then
4112 ac_sed_cmds="sed -f conftest.s$ac_file"
4114 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4116 ac_file=`expr $ac_file + 1`
4118 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4121 if test -z "$ac_sed_cmds"; then
4126 cat >> $CONFIG_STATUS <<EOF
4128 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
4130 cat >> $CONFIG_STATUS <<\EOF
4131 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4134 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4135 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4136 *) ac_file_in="${ac_file}.in" ;;
4139 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4141 # Remove last slash and all that follows it. Not all systems have dirname.
4142 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4143 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4144 # The file is in a subdirectory.
4145 test ! -d "$ac_dir" && mkdir "$ac_dir"
4146 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4147 # A "../" for each directory in $ac_dir_suffix.
4148 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4150 ac_dir_suffix= ac_dots=
4153 case "$ac_given_srcdir" in
4155 if test -z "$ac_dots"; then top_srcdir=.
4156 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4157 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4159 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4160 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4163 case "$ac_given_INSTALL" in
4164 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4165 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4168 echo creating "$ac_file"
4170 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4172 *Makefile*) ac_comsub="1i\\
4173 # $configure_input" ;;
4177 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4179 s%@configure_input@%$configure_input%g
4180 s%@srcdir@%$srcdir%g
4181 s%@top_srcdir@%$top_srcdir%g
4182 s%@INSTALL@%$INSTALL%g
4183 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4187 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4188 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4190 # ac_d sets the value in "#define NAME VALUE" lines.
4191 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4192 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4195 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4196 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4197 ac_uB='\([ ]\)%\1#\2define\3'
4200 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4201 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4202 ac_eB='$%\1#\2define\3'
4206 if test "${CONFIG_HEADERS+set}" != set; then
4208 cat >> $CONFIG_STATUS <<EOF
4209 CONFIG_HEADERS="include/defs.h"
4211 cat >> $CONFIG_STATUS <<\EOF
4213 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4214 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4216 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4217 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4218 *) ac_file_in="${ac_file}.in" ;;
4221 echo creating $ac_file
4223 rm -f conftest.frag conftest.in conftest.out
4224 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4225 cat $ac_file_inputs > conftest.in
4229 # Transform confdefs.h into a sed script conftest.vals that substitutes
4230 # the proper values into config.h.in to produce config.h. And first:
4231 # Protect against being on the right side of a sed subst in config.status.
4232 # Protect against being in an unquoted here document in config.status.
4234 cat > conftest.hdr <<\EOF
4237 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4241 sed -n -f conftest.hdr confdefs.h > conftest.vals
4244 # This sed command replaces #undef with comments. This is necessary, for
4245 # example, in the case of _POSIX_SOURCE, which is predefined and required
4246 # on some systems where configure will not decide to define it.
4247 cat >> conftest.vals <<\EOF
4248 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4251 # Break up conftest.vals because some shells have a limit on
4252 # the size of here documents, and old seds have small limits too.
4257 ac_lines=`grep -c . conftest.vals`
4258 # grep -c gives empty output for an empty file on some AIX systems.
4259 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4260 # Write a limited-size here document to conftest.frag.
4261 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4262 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4264 sed -f conftest.frag conftest.in > conftest.out
4266 mv conftest.out conftest.in
4268 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4270 mv conftest.tail conftest.vals
4274 cat >> $CONFIG_STATUS <<\EOF
4275 rm -f conftest.frag conftest.h
4276 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4277 cat conftest.in >> conftest.h
4279 if cmp -s $ac_file conftest.h 2>/dev/null; then
4280 echo "$ac_file is unchanged"
4283 # Remove last slash and all that follows it. Not all systems have dirname.
4284 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4285 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4286 # The file is in a subdirectory.
4287 test ! -d "$ac_dir" && mkdir "$ac_dir"
4290 mv conftest.h $ac_file
4295 cat >> $CONFIG_STATUS <<EOF
4298 cat >> $CONFIG_STATUS <<\EOF
4302 chmod +x $CONFIG_STATUS
4303 rm -fr confdefs* $ac_clean_files
4304 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4310 vlc version : ${VLC_VERSION}
4312 architecture : ${ARCH}
4313 debug mode : ${DEBUG}
4314 statistics : ${STATS}
4315 optimizations : ${OPTIMS}
4316 CSS decryption : ${CSS}
4317 need builtin getopt : ${GETOPT}
4318 plugin modules : ${PLUGINS}
4319 built-in modules : ${BUILTINS}
4320 vlc aliases : ${ALIASES}
4322 You may now tune Makefile.opts at your convenience."