3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-ppro Disable PentiumPro optimizations (default enabled for x86)"
17 --disable-mmx Disable MMX optimizations (default enabled for x86)"
19 --disable-css Disable DVD CSS decryption (default enabled)"
21 --enable-debug Enable debug mode (default disabled)"
23 --enable-stats Enable printing of statistics (default disabled)"
25 --disable-optimizations Disable compiler optimizations (default enabled)"
27 --disable-dummy dummy module (default enabled)"
29 --disable-null Null module (default enabled)"
31 --disable-dsp Linux /dev/dsp support (default enabled)"
33 --enable-esd Esound library support (default disabled)"
35 --enable-fb Linux framebuffer support (default disabled)"
37 --with-ggi[=name] GGI support (default disabled)"
39 --with-sdl[=name] SDL support (default enabled)"
41 --with-glide[=name] Glide (3dfx) support (default disabled)"
43 --enable-ncurses ncurses interface support (default disabled)"
45 --enable-qt Qt interface support (default disabled)"
47 --enable-kde KDE interface support (default disabled)"
49 --enable-gnome Gnome interface support (default disabled)"
51 --disable-gtk Gtk+ support (default enabled)"
53 --disable-x11 X11 support (default enabled)"
55 --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)"
57 # Initialize some variables set by options.
58 # The variables have the same names as the options, with
59 # dashes changed to underlines.
61 cache_file=./config.cache
70 program_transform_name=s,x,x,
78 bindir='${exec_prefix}/bin'
79 sbindir='${exec_prefix}/sbin'
80 libexecdir='${exec_prefix}/libexec'
81 datadir='${prefix}/share'
82 sysconfdir='${prefix}/etc'
83 sharedstatedir='${prefix}/com'
84 localstatedir='${prefix}/var'
85 libdir='${exec_prefix}/lib'
86 includedir='${prefix}/include'
87 oldincludedir='/usr/include'
88 infodir='${prefix}/info'
89 mandir='${prefix}/man'
91 # Initialize some other variables.
94 SHELL=${CONFIG_SHELL-/bin/sh}
95 # Maximum number of lines to put in a shell here document.
102 # If the previous option needs an argument, assign it.
103 if test -n "$ac_prev"; then
104 eval "$ac_prev=\$ac_option"
110 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
114 # Accept the important Cygnus configure options, so we can diagnose typos.
118 -bindir | --bindir | --bindi | --bind | --bin | --bi)
120 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
121 bindir="$ac_optarg" ;;
123 -build | --build | --buil | --bui | --bu)
125 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
126 build="$ac_optarg" ;;
128 -cache-file | --cache-file | --cache-fil | --cache-fi \
129 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
130 ac_prev=cache_file ;;
131 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
132 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
133 cache_file="$ac_optarg" ;;
135 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
137 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
139 datadir="$ac_optarg" ;;
141 -disable-* | --disable-*)
142 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
143 # Reject names that are not valid shell variable names.
144 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
145 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}=no" ;;
150 -enable-* | --enable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}='$ac_optarg'" ;;
163 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
164 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
165 | --exec | --exe | --ex)
166 ac_prev=exec_prefix ;;
167 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
168 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
169 | --exec=* | --exe=* | --ex=*)
170 exec_prefix="$ac_optarg" ;;
172 -gas | --gas | --ga | --g)
173 # Obsolete; use --with-gas.
176 -help | --help | --hel | --he)
177 # Omit some internal or obsolete options to make the list less imposing.
178 # This message is too long to be a string in the A/UX 3.1 sh.
180 Usage: configure [options] [host]
181 Options: [defaults in brackets after descriptions]
183 --cache-file=FILE cache test results in FILE
184 --help print this message
185 --no-create do not create output files
186 --quiet, --silent do not print \`checking...' messages
187 --version print the version of autoconf that created configure
188 Directory and file names:
189 --prefix=PREFIX install architecture-independent files in PREFIX
191 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
193 --bindir=DIR user executables in DIR [EPREFIX/bin]
194 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
195 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
196 --datadir=DIR read-only architecture-independent data in DIR
198 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
199 --sharedstatedir=DIR modifiable architecture-independent data in DIR
201 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
202 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
203 --includedir=DIR C header files in DIR [PREFIX/include]
204 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
205 --infodir=DIR info documentation in DIR [PREFIX/info]
206 --mandir=DIR man documentation in DIR [PREFIX/man]
207 --srcdir=DIR find the sources in DIR [configure dir or ..]
208 --program-prefix=PREFIX prepend PREFIX to installed program names
209 --program-suffix=SUFFIX append SUFFIX to installed program names
210 --program-transform-name=PROGRAM
211 run sed PROGRAM on installed program names
215 --build=BUILD configure for building on BUILD [BUILD=HOST]
216 --host=HOST configure for HOST [guessed]
217 --target=TARGET configure for TARGET [TARGET=HOST]
218 Features and packages:
219 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
220 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
221 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
222 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
223 --x-includes=DIR X include files are in DIR
224 --x-libraries=DIR X library files are in DIR
226 if test -n "$ac_help"; then
227 echo "--enable and --with options recognized:$ac_help"
231 -host | --host | --hos | --ho)
233 -host=* | --host=* | --hos=* | --ho=*)
236 -includedir | --includedir | --includedi | --included | --include \
237 | --includ | --inclu | --incl | --inc)
238 ac_prev=includedir ;;
239 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
240 | --includ=* | --inclu=* | --incl=* | --inc=*)
241 includedir="$ac_optarg" ;;
243 -infodir | --infodir | --infodi | --infod | --info | --inf)
245 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
246 infodir="$ac_optarg" ;;
248 -libdir | --libdir | --libdi | --libd)
250 -libdir=* | --libdir=* | --libdi=* | --libd=*)
251 libdir="$ac_optarg" ;;
253 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
254 | --libexe | --libex | --libe)
255 ac_prev=libexecdir ;;
256 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
257 | --libexe=* | --libex=* | --libe=*)
258 libexecdir="$ac_optarg" ;;
260 -localstatedir | --localstatedir | --localstatedi | --localstated \
261 | --localstate | --localstat | --localsta | --localst \
262 | --locals | --local | --loca | --loc | --lo)
263 ac_prev=localstatedir ;;
264 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
265 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
266 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
267 localstatedir="$ac_optarg" ;;
269 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
271 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
272 mandir="$ac_optarg" ;;
275 # Obsolete; use --without-fp.
278 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
282 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
283 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
286 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
287 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
288 | --oldin | --oldi | --old | --ol | --o)
289 ac_prev=oldincludedir ;;
290 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
291 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
292 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
293 oldincludedir="$ac_optarg" ;;
295 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
297 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
298 prefix="$ac_optarg" ;;
300 -program-prefix | --program-prefix | --program-prefi | --program-pref \
301 | --program-pre | --program-pr | --program-p)
302 ac_prev=program_prefix ;;
303 -program-prefix=* | --program-prefix=* | --program-prefi=* \
304 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
305 program_prefix="$ac_optarg" ;;
307 -program-suffix | --program-suffix | --program-suffi | --program-suff \
308 | --program-suf | --program-su | --program-s)
309 ac_prev=program_suffix ;;
310 -program-suffix=* | --program-suffix=* | --program-suffi=* \
311 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
312 program_suffix="$ac_optarg" ;;
314 -program-transform-name | --program-transform-name \
315 | --program-transform-nam | --program-transform-na \
316 | --program-transform-n | --program-transform- \
317 | --program-transform | --program-transfor \
318 | --program-transfo | --program-transf \
319 | --program-trans | --program-tran \
320 | --progr-tra | --program-tr | --program-t)
321 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
332 | -silent | --silent | --silen | --sile | --sil)
335 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
337 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
339 sbindir="$ac_optarg" ;;
341 -sharedstatedir | --sharedstatedir | --sharedstatedi \
342 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
343 | --sharedst | --shareds | --shared | --share | --shar \
345 ac_prev=sharedstatedir ;;
346 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
347 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
348 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
350 sharedstatedir="$ac_optarg" ;;
352 -site | --site | --sit)
354 -site=* | --site=* | --sit=*)
357 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
359 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
360 srcdir="$ac_optarg" ;;
362 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
363 | --syscon | --sysco | --sysc | --sys | --sy)
364 ac_prev=sysconfdir ;;
365 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
366 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
367 sysconfdir="$ac_optarg" ;;
369 -target | --target | --targe | --targ | --tar | --ta | --t)
371 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
372 target="$ac_optarg" ;;
374 -v | -verbose | --verbose | --verbos | --verbo | --verb)
377 -version | --version | --versio | --versi | --vers)
378 echo "configure generated by autoconf version 2.13"
382 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
392 eval "with_${ac_package}='$ac_optarg'" ;;
394 -without-* | --without-*)
395 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
398 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400 ac_package=`echo $ac_package| sed 's/-/_/g'`
401 eval "with_${ac_package}=no" ;;
404 # Obsolete; use --with-x.
407 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
408 | --x-incl | --x-inc | --x-in | --x-i)
409 ac_prev=x_includes ;;
410 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
411 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
412 x_includes="$ac_optarg" ;;
414 -x-libraries | --x-libraries | --x-librarie | --x-librari \
415 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
416 ac_prev=x_libraries ;;
417 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
418 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
419 x_libraries="$ac_optarg" ;;
421 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
425 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
426 echo "configure: warning: $ac_option: invalid host type" 1>&2
428 if test "x$nonopt" != xNONE; then
429 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
437 if test -n "$ac_prev"; then
438 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
441 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
443 # File descriptor usage:
446 # 2 errors and warnings
447 # 3 some systems may open it to /dev/tty
448 # 4 used on the Kubota Titan
449 # 6 checking for... messages and results
450 # 5 compiler messages saved in config.log
451 if test "$silent" = yes; then
459 This file contains any messages produced by compilers while
460 running configure, to aid debugging if configure makes a mistake.
463 # Strip out --no-create and --no-recursion so they do not pile up.
464 # Also quote any args containing shell metacharacters.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c) ;;
471 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
472 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
473 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
474 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
475 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
480 # Only set these to C if already set. These must not be set unconditionally
481 # because not all systems understand e.g. LANG=C (notably SCO).
482 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
483 # Non-C LC_CTYPE values break the ctype check.
484 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
485 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
486 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
487 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
490 rm -rf conftest* confdefs.h
491 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
494 # A filename unique to this package, relative to the directory that
495 # configure is in, which we can look for to find out if srcdir is correct.
496 ac_unique_file=src/interface/main.c
498 # Find the source files, if location was not specified.
499 if test -z "$srcdir"; then
500 ac_srcdir_defaulted=yes
501 # Try the directory containing this script, then its parent.
503 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
504 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
506 if test ! -r $srcdir/$ac_unique_file; then
510 ac_srcdir_defaulted=no
512 if test ! -r $srcdir/$ac_unique_file; then
513 if test "$ac_srcdir_defaulted" = yes; then
514 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
516 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
519 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
521 # Prefer explicitly selected file to automatically selected ones.
522 if test -z "$CONFIG_SITE"; then
523 if test "x$prefix" != xNONE; then
524 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
526 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529 for ac_site_file in $CONFIG_SITE; do
530 if test -r "$ac_site_file"; then
531 echo "loading site script $ac_site_file"
536 if test -r "$cache_file"; then
537 echo "loading cache $cache_file"
540 echo "creating cache $cache_file"
545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
546 ac_cpp='$CPP $CPPFLAGS'
547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
549 cross_compiling=$ac_cv_prog_cc_cross
553 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
554 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
555 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
562 ac_n= ac_c='\c' ac_t=
569 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
570 if test -f $ac_dir/install-sh; then
572 ac_install_sh="$ac_aux_dir/install-sh -c"
574 elif test -f $ac_dir/install.sh; then
576 ac_install_sh="$ac_aux_dir/install.sh -c"
580 if test -z "$ac_aux_dir"; then
581 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
583 ac_config_guess=$ac_aux_dir/config.guess
584 ac_config_sub=$ac_aux_dir/config.sub
585 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
588 # Make sure we can run config.sub.
589 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
590 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
593 echo $ac_n "checking host system type""... $ac_c" 1>&6
594 echo "configure:595: checking host system type" >&5
597 case "$host_alias" in
601 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
602 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
604 *) host_alias=$nonopt ;;
608 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
609 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
610 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
611 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
612 echo "$ac_t""$host" 1>&6
620 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
621 echo "configure:622: checking whether ${MAKE-make} sets \${MAKE}" >&5
622 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
623 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
626 cat > conftestmake <<\EOF
628 @echo 'ac_maketemp="${MAKE}"'
630 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
631 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
632 if test -n "$ac_maketemp"; then
633 eval ac_cv_prog_make_${ac_make}_set=yes
635 eval ac_cv_prog_make_${ac_make}_set=no
639 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
640 echo "$ac_t""yes" 1>&6
643 echo "$ac_t""no" 1>&6
644 SET_MAKE="MAKE=${MAKE-make}"
647 if test -z "$CC"; then
648 # Extract the first word of "gcc", so it can be a program name with args.
649 set dummy gcc; ac_word=$2
650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
651 echo "configure:652: checking for $ac_word" >&5
652 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
655 if test -n "$CC"; then
656 ac_cv_prog_CC="$CC" # Let the user override the test.
658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
660 for ac_dir in $ac_dummy; do
661 test -z "$ac_dir" && ac_dir=.
662 if test -f $ac_dir/$ac_word; then
671 if test -n "$CC"; then
672 echo "$ac_t""$CC" 1>&6
674 echo "$ac_t""no" 1>&6
677 if test -z "$CC"; then
678 # Extract the first word of "cc", so it can be a program name with args.
679 set dummy cc; ac_word=$2
680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
681 echo "configure:682: checking for $ac_word" >&5
682 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
685 if test -n "$CC"; then
686 ac_cv_prog_CC="$CC" # Let the user override the test.
688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
691 for ac_dir in $ac_dummy; do
692 test -z "$ac_dir" && ac_dir=.
693 if test -f $ac_dir/$ac_word; then
694 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
703 if test $ac_prog_rejected = yes; then
704 # We found a bogon in the path, so make sure we never use it.
705 set dummy $ac_cv_prog_CC
707 if test $# -gt 0; then
708 # We chose a different compiler from the bogus one.
709 # However, it has the same basename, so the bogon will be chosen
710 # first if we set CC to just the basename; use the full file name.
712 set dummy "$ac_dir/$ac_word" "$@"
720 if test -n "$CC"; then
721 echo "$ac_t""$CC" 1>&6
723 echo "$ac_t""no" 1>&6
726 if test -z "$CC"; then
729 # Extract the first word of "cl", so it can be a program name with args.
730 set dummy cl; ac_word=$2
731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
732 echo "configure:733: checking for $ac_word" >&5
733 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
736 if test -n "$CC"; then
737 ac_cv_prog_CC="$CC" # Let the user override the test.
739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
741 for ac_dir in $ac_dummy; do
742 test -z "$ac_dir" && ac_dir=.
743 if test -f $ac_dir/$ac_word; then
752 if test -n "$CC"; then
753 echo "$ac_t""$CC" 1>&6
755 echo "$ac_t""no" 1>&6
760 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
763 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
764 echo "configure:765: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
767 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
768 ac_cpp='$CPP $CPPFLAGS'
769 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
770 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
771 cross_compiling=$ac_cv_prog_cc_cross
773 cat > conftest.$ac_ext << EOF
775 #line 776 "configure"
776 #include "confdefs.h"
780 if { (eval echo configure:781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
781 ac_cv_prog_cc_works=yes
782 # If we can't run a trivial program, we are probably using a cross compiler.
783 if (./conftest; exit) 2>/dev/null; then
784 ac_cv_prog_cc_cross=no
786 ac_cv_prog_cc_cross=yes
789 echo "configure: failed program was:" >&5
790 cat conftest.$ac_ext >&5
791 ac_cv_prog_cc_works=no
795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
796 ac_cpp='$CPP $CPPFLAGS'
797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
799 cross_compiling=$ac_cv_prog_cc_cross
801 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
802 if test $ac_cv_prog_cc_works = no; then
803 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
805 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
806 echo "configure:807: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
807 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
808 cross_compiling=$ac_cv_prog_cc_cross
810 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
811 echo "configure:812: checking whether we are using GNU C" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 cat > conftest.c <<EOF
820 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
827 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
829 if test $ac_cv_prog_gcc = yes; then
835 ac_test_CFLAGS="${CFLAGS+set}"
836 ac_save_CFLAGS="$CFLAGS"
838 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
839 echo "configure:840: checking whether ${CC-cc} accepts -g" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 echo 'void f(){}' > conftest.c
844 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
853 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
854 if test "$ac_test_CFLAGS" = set; then
855 CFLAGS="$ac_save_CFLAGS"
856 elif test $ac_cv_prog_cc_g = yes; then
857 if test "$GCC" = yes; then
863 if test "$GCC" = yes; then
871 if test -z "$CPP"; then
872 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
873 echo "configure:874: checking how to run the C preprocessor" >&5
874 # On Suns, sometimes $CPP names a directory.
875 if test -n "$CPP" && test -d "$CPP"; then
878 if test -z "$CPP"; then
879 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 # This must be in double quotes, not single quotes, because CPP may get
883 # substituted into the Makefile and "${CC-cc}" will confuse make.
885 # On the NeXT, cc -E runs the code through the compiler's parser,
886 # not just through cpp.
887 cat > conftest.$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
900 echo "configure: failed program was:" >&5
901 cat conftest.$ac_ext >&5
903 CPP="${CC-cc} -E -traditional-cpp"
904 cat > conftest.$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
911 { (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
913 if test -z "$ac_err"; then
917 echo "configure: failed program was:" >&5
918 cat conftest.$ac_ext >&5
920 CPP="${CC-cc} -nologo -E"
921 cat > conftest.$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
928 { (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
930 if test -z "$ac_err"; then
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
944 ac_cv_prog_CPP="$CPP"
946 CPP="$ac_cv_prog_CPP"
948 ac_cv_prog_CPP="$CPP"
950 echo "$ac_t""$CPP" 1>&6
954 # Find a good install program. We prefer a C program (faster),
955 # so one script is as good as another. But avoid the broken or
956 # incompatible versions:
957 # SysV /etc/install, /usr/sbin/install
958 # SunOS /usr/etc/install
961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
964 # ./install, which can be erroneously created by make from ./install.sh.
965 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
966 echo "configure:967: checking for a BSD compatible install" >&5
967 if test -z "$INSTALL"; then
968 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
972 for ac_dir in $PATH; do
973 # Account for people who put trailing slashes in PATH elements.
975 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
977 # OSF1 and SCO ODT 3.0 have their own names for install.
978 # Don't use installbsd from OSF since it installs stuff as root
980 for ac_prog in ginstall scoinst install; do
981 if test -f $ac_dir/$ac_prog; then
982 if test $ac_prog = install &&
983 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
984 # AIX install. It has an incompatible calling convention.
987 ac_cv_path_install="$ac_dir/$ac_prog -c"
998 if test "${ac_cv_path_install+set}" = set; then
999 INSTALL="$ac_cv_path_install"
1001 # As a last resort, use the slow shell script. We don't cache a
1002 # path for INSTALL within a source directory, because that will
1003 # break other packages using the cache if that directory is
1004 # removed, or if the path is relative.
1005 INSTALL="$ac_install_sh"
1008 echo "$ac_t""$INSTALL" 1>&6
1010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1011 # It thinks the first close brace ends the variable substitution.
1012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1019 echo $ac_n "checking for working const""... $ac_c" 1>&6
1020 echo "configure:1021: checking for working const" >&5
1021 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 cat > conftest.$ac_ext <<EOF
1025 #line 1026 "configure"
1026 #include "confdefs.h"
1030 /* Ultrix mips cc rejects this. */
1031 typedef int charset[2]; const charset x;
1032 /* SunOS 4.1.1 cc rejects this. */
1033 char const *const *ccp;
1035 /* NEC SVR4.0.2 mips cc rejects this. */
1036 struct point {int x, y;};
1037 static struct point const zero = {0,0};
1038 /* AIX XL C 1.02.0.0 rejects this.
1039 It does not let you subtract one const X* pointer from another in an arm
1040 of an if-expression whose if-part is not a constant expression */
1041 const char *g = "string";
1042 ccp = &g + (g ? g-g : 0);
1043 /* HPUX 7.0 cc rejects these. */
1046 ccp = (char const *const *) p;
1047 { /* SCO 3.2v4 cc rejects this. */
1049 char const *s = 0 ? (char *) 0 : (char const *) 0;
1053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1055 const int *foo = &x[0];
1058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1059 typedef const int *iptr;
1063 { /* AIX XL C 1.02.0.0 rejects this saying
1064 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1065 struct s { int j; const int *ap[3]; };
1066 struct s *b; b->j = 5;
1068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1074 if { (eval echo configure:1075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1078 echo "configure: failed program was:" >&5
1079 cat conftest.$ac_ext >&5
1086 echo "$ac_t""$ac_cv_c_const" 1>&6
1087 if test $ac_cv_c_const = no; then
1088 cat >> confdefs.h <<\EOF
1094 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1095 echo "configure:1096: checking whether byte ordering is bigendian" >&5
1096 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1099 ac_cv_c_bigendian=unknown
1100 # See if sys/param.h defines the BYTE_ORDER macro.
1101 cat > conftest.$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1104 #include <sys/types.h>
1105 #include <sys/param.h>
1108 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1113 if { (eval echo configure:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1115 # It does; now see whether it defined to BIG_ENDIAN or not.
1116 cat > conftest.$ac_ext <<EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1119 #include <sys/types.h>
1120 #include <sys/param.h>
1123 #if BYTE_ORDER != BIG_ENDIAN
1128 if { (eval echo configure:1129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1130 ac_cv_c_bigendian=yes
1132 echo "configure: failed program was:" >&5
1133 cat conftest.$ac_ext >&5
1135 ac_cv_c_bigendian=no
1139 echo "configure: failed program was:" >&5
1140 cat conftest.$ac_ext >&5
1143 if test $ac_cv_c_bigendian = unknown; then
1144 if test "$cross_compiling" = yes; then
1145 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1147 cat > conftest.$ac_ext <<EOF
1148 #line 1149 "configure"
1149 #include "confdefs.h"
1151 /* Are we little or big endian? From Harbison&Steele. */
1155 char c[sizeof (long)];
1158 exit (u.c[sizeof (long) - 1] == 1);
1161 if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1163 ac_cv_c_bigendian=no
1165 echo "configure: failed program was:" >&5
1166 cat conftest.$ac_ext >&5
1168 ac_cv_c_bigendian=yes
1176 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1177 if test $ac_cv_c_bigendian = yes; then
1178 cat >> confdefs.h <<\EOF
1179 #define WORDS_BIGENDIAN 1
1185 for ac_func in gettimeofday select strerror strtod strtol
1187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_func" >&5
1189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 cat > conftest.$ac_ext <<EOF
1193 #line 1194 "configure"
1194 #include "confdefs.h"
1195 /* System header to define __stub macros and hopefully few prototypes,
1196 which can conflict with char $ac_func(); below. */
1198 /* Override any gcc2 internal prototype to avoid an error. */
1199 /* We use char because int might match the return type of a gcc2
1200 builtin and then its argument prototype would still apply. */
1205 /* The GNU C library defines this for functions which it implements
1206 to always fail with ENOSYS. Some functions are actually named
1207 something starting with __ and the normal name is an alias. */
1208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1216 if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1218 eval "ac_cv_func_$ac_func=yes"
1220 echo "configure: failed program was:" >&5
1221 cat conftest.$ac_ext >&5
1223 eval "ac_cv_func_$ac_func=no"
1228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1229 echo "$ac_t""yes" 1>&6
1230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1231 cat >> confdefs.h <<EOF
1232 #define $ac_tr_func 1
1236 echo "$ac_t""no" 1>&6
1240 for ac_func in setenv putenv
1242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1243 echo "configure:1244: checking for $ac_func" >&5
1244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1250 /* System header to define __stub macros and hopefully few prototypes,
1251 which can conflict with char $ac_func(); below. */
1253 /* Override any gcc2 internal prototype to avoid an error. */
1254 /* We use char because int might match the return type of a gcc2
1255 builtin and then its argument prototype would still apply. */
1260 /* The GNU C library defines this for functions which it implements
1261 to always fail with ENOSYS. Some functions are actually named
1262 something starting with __ and the normal name is an alias. */
1263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1271 if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1273 eval "ac_cv_func_$ac_func=yes"
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1278 eval "ac_cv_func_$ac_func=no"
1283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1286 cat >> confdefs.h <<EOF
1287 #define $ac_tr_func 1
1291 echo "$ac_t""no" 1>&6
1295 echo $ac_n "checking for connect""... $ac_c" 1>&6
1296 echo "configure:1297: checking for connect" >&5
1297 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 cat > conftest.$ac_ext <<EOF
1301 #line 1302 "configure"
1302 #include "confdefs.h"
1303 /* System header to define __stub macros and hopefully few prototypes,
1304 which can conflict with char connect(); below. */
1306 /* Override any gcc2 internal prototype to avoid an error. */
1307 /* We use char because int might match the return type of a gcc2
1308 builtin and then its argument prototype would still apply. */
1313 /* The GNU C library defines this for functions which it implements
1314 to always fail with ENOSYS. Some functions are actually named
1315 something starting with __ and the normal name is an alias. */
1316 #if defined (__stub_connect) || defined (__stub___connect)
1324 if { (eval echo configure:1325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1326 eval "ac_cv_func_connect=yes"
1328 echo "configure: failed program was:" >&5
1329 cat conftest.$ac_ext >&5
1331 eval "ac_cv_func_connect=no"
1336 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1337 echo "$ac_t""yes" 1>&6
1340 echo "$ac_t""no" 1>&6
1341 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1342 echo "configure:1343: checking for connect in -lsocket" >&5
1343 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 ac_save_LIBS="$LIBS"
1348 LIBS="-lsocket $LIBS"
1349 cat > conftest.$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1352 /* Override any gcc2 internal prototype to avoid an error. */
1353 /* We use char because int might match the return type of a gcc2
1354 builtin and then its argument prototype would still apply. */
1361 if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1363 eval "ac_cv_lib_$ac_lib_var=yes"
1365 echo "configure: failed program was:" >&5
1366 cat conftest.$ac_ext >&5
1368 eval "ac_cv_lib_$ac_lib_var=no"
1371 LIBS="$ac_save_LIBS"
1374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1375 echo "$ac_t""yes" 1>&6
1376 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1377 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1378 cat >> confdefs.h <<EOF
1379 #define $ac_tr_lib 1
1382 LIBS="-lsocket $LIBS"
1385 echo "$ac_t""no" 1>&6
1390 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1391 echo "configure:1392: checking for gethostbyname" >&5
1392 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1398 /* System header to define __stub macros and hopefully few prototypes,
1399 which can conflict with char gethostbyname(); below. */
1401 /* Override any gcc2 internal prototype to avoid an error. */
1402 /* We use char because int might match the return type of a gcc2
1403 builtin and then its argument prototype would still apply. */
1404 char gethostbyname();
1408 /* The GNU C library defines this for functions which it implements
1409 to always fail with ENOSYS. Some functions are actually named
1410 something starting with __ and the normal name is an alias. */
1411 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1419 if { (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1421 eval "ac_cv_func_gethostbyname=yes"
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1426 eval "ac_cv_func_gethostbyname=no"
1431 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1432 echo "$ac_t""yes" 1>&6
1435 echo "$ac_t""no" 1>&6
1436 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1437 echo "configure:1438: checking for gethostbyname in -lnsl" >&5
1438 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 ac_save_LIBS="$LIBS"
1444 cat > conftest.$ac_ext <<EOF
1445 #line 1446 "configure"
1446 #include "confdefs.h"
1447 /* Override any gcc2 internal prototype to avoid an error. */
1448 /* We use char because int might match the return type of a gcc2
1449 builtin and then its argument prototype would still apply. */
1450 char gethostbyname();
1456 if { (eval echo configure:1457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1458 eval "ac_cv_lib_$ac_lib_var=yes"
1460 echo "configure: failed program was:" >&5
1461 cat conftest.$ac_ext >&5
1463 eval "ac_cv_lib_$ac_lib_var=no"
1466 LIBS="$ac_save_LIBS"
1469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1470 echo "$ac_t""yes" 1>&6
1471 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1472 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1473 cat >> confdefs.h <<EOF
1474 #define $ac_tr_lib 1
1480 echo "$ac_t""no" 1>&6
1485 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1486 echo "configure:1487: checking for nanosleep" >&5
1487 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6
1490 cat > conftest.$ac_ext <<EOF
1491 #line 1492 "configure"
1492 #include "confdefs.h"
1493 /* System header to define __stub macros and hopefully few prototypes,
1494 which can conflict with char nanosleep(); below. */
1496 /* Override any gcc2 internal prototype to avoid an error. */
1497 /* We use char because int might match the return type of a gcc2
1498 builtin and then its argument prototype would still apply. */
1503 /* The GNU C library defines this for functions which it implements
1504 to always fail with ENOSYS. Some functions are actually named
1505 something starting with __ and the normal name is an alias. */
1506 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1514 if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1516 eval "ac_cv_func_nanosleep=yes"
1518 echo "configure: failed program was:" >&5
1519 cat conftest.$ac_ext >&5
1521 eval "ac_cv_func_nanosleep=no"
1526 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1527 echo "$ac_t""yes" 1>&6
1530 echo "$ac_t""no" 1>&6
1531 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1532 echo "configure:1533: checking for nanosleep in -lrt" >&5
1533 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1534 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 ac_save_LIBS="$LIBS"
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1542 /* Override any gcc2 internal prototype to avoid an error. */
1543 /* We use char because int might match the return type of a gcc2
1544 builtin and then its argument prototype would still apply. */
1551 if { (eval echo configure:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1553 eval "ac_cv_lib_$ac_lib_var=yes"
1555 echo "configure: failed program was:" >&5
1556 cat conftest.$ac_ext >&5
1558 eval "ac_cv_lib_$ac_lib_var=no"
1561 LIBS="$ac_save_LIBS"
1564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1565 echo "$ac_t""yes" 1>&6
1566 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1567 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1568 cat >> confdefs.h <<EOF
1569 #define $ac_tr_lib 1
1575 echo "$ac_t""no" 1>&6
1576 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1577 echo "configure:1578: checking for nanosleep in -lposix4" >&5
1578 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 ac_save_LIBS="$LIBS"
1583 LIBS="-lposix4 $LIBS"
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 /* Override any gcc2 internal prototype to avoid an error. */
1588 /* We use char because int might match the return type of a gcc2
1589 builtin and then its argument prototype would still apply. */
1596 if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1598 eval "ac_cv_lib_$ac_lib_var=yes"
1600 echo "configure: failed program was:" >&5
1601 cat conftest.$ac_ext >&5
1603 eval "ac_cv_lib_$ac_lib_var=no"
1606 LIBS="$ac_save_LIBS"
1609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1610 echo "$ac_t""yes" 1>&6
1611 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1612 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1613 cat >> confdefs.h <<EOF
1614 #define $ac_tr_lib 1
1617 LIBS="-lposix4 $LIBS"
1620 echo "$ac_t""no" 1>&6
1627 for ac_func in usleep
1629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1630 echo "configure:1631: checking for $ac_func" >&5
1631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1637 /* System header to define __stub macros and hopefully few prototypes,
1638 which can conflict with char $ac_func(); below. */
1640 /* Override any gcc2 internal prototype to avoid an error. */
1641 /* We use char because int might match the return type of a gcc2
1642 builtin and then its argument prototype would still apply. */
1647 /* The GNU C library defines this for functions which it implements
1648 to always fail with ENOSYS. Some functions are actually named
1649 something starting with __ and the normal name is an alias. */
1650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1658 if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1660 eval "ac_cv_func_$ac_func=yes"
1662 echo "configure: failed program was:" >&5
1663 cat conftest.$ac_ext >&5
1665 eval "ac_cv_func_$ac_func=no"
1670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1671 echo "$ac_t""yes" 1>&6
1672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1673 cat >> confdefs.h <<EOF
1674 #define $ac_tr_func 1
1678 echo "$ac_t""no" 1>&6
1682 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1683 echo "configure:1684: checking for inet_aton" >&5
1684 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1690 /* System header to define __stub macros and hopefully few prototypes,
1691 which can conflict with char inet_aton(); below. */
1693 /* Override any gcc2 internal prototype to avoid an error. */
1694 /* We use char because int might match the return type of a gcc2
1695 builtin and then its argument prototype would still apply. */
1700 /* The GNU C library defines this for functions which it implements
1701 to always fail with ENOSYS. Some functions are actually named
1702 something starting with __ and the normal name is an alias. */
1703 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1711 if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1713 eval "ac_cv_func_inet_aton=yes"
1715 echo "configure: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1718 eval "ac_cv_func_inet_aton=no"
1723 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1724 echo "$ac_t""yes" 1>&6
1727 echo "$ac_t""no" 1>&6
1728 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1729 echo "configure:1730: checking for inet_aton in -lresolv" >&5
1730 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 ac_save_LIBS="$LIBS"
1735 LIBS="-lresolv $LIBS"
1736 cat > conftest.$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 /* Override any gcc2 internal prototype to avoid an error. */
1740 /* We use char because int might match the return type of a gcc2
1741 builtin and then its argument prototype would still apply. */
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1750 eval "ac_cv_lib_$ac_lib_var=yes"
1752 echo "configure: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1755 eval "ac_cv_lib_$ac_lib_var=no"
1758 LIBS="$ac_save_LIBS"
1761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1762 echo "$ac_t""yes" 1>&6
1763 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1764 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1765 cat >> confdefs.h <<EOF
1766 #define $ac_tr_lib 1
1769 LIBS="-lresolv $LIBS"
1772 echo "$ac_t""no" 1>&6
1777 for ac_func in vasprintf
1779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1780 echo "configure:1781: checking for $ac_func" >&5
1781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 cat > conftest.$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 /* System header to define __stub macros and hopefully few prototypes,
1788 which can conflict with char $ac_func(); below. */
1790 /* Override any gcc2 internal prototype to avoid an error. */
1791 /* We use char because int might match the return type of a gcc2
1792 builtin and then its argument prototype would still apply. */
1797 /* The GNU C library defines this for functions which it implements
1798 to always fail with ENOSYS. Some functions are actually named
1799 something starting with __ and the normal name is an alias. */
1800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1810 eval "ac_cv_func_$ac_func=yes"
1812 echo "configure: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1815 eval "ac_cv_func_$ac_func=no"
1820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1821 echo "$ac_t""yes" 1>&6
1822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1823 cat >> confdefs.h <<EOF
1824 #define $ac_tr_func 1
1828 echo "$ac_t""no" 1>&6
1832 for ac_hdr in unistd.h
1834 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1835 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_hdr" >&5
1837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1846 { (eval echo configure:1847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1848 if test -z "$ac_err"; then
1850 eval "ac_cv_header_$ac_safe=yes"
1853 echo "configure: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1856 eval "ac_cv_header_$ac_safe=no"
1860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1861 echo "$ac_t""yes" 1>&6
1862 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1863 cat >> confdefs.h <<EOF
1864 #define $ac_tr_hdr 1
1868 echo "$ac_t""no" 1>&6
1872 for ac_func in getpagesize
1874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_func" >&5
1876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1882 /* System header to define __stub macros and hopefully few prototypes,
1883 which can conflict with char $ac_func(); below. */
1885 /* Override any gcc2 internal prototype to avoid an error. */
1886 /* We use char because int might match the return type of a gcc2
1887 builtin and then its argument prototype would still apply. */
1892 /* The GNU C library defines this for functions which it implements
1893 to always fail with ENOSYS. Some functions are actually named
1894 something starting with __ and the normal name is an alias. */
1895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1903 if { (eval echo configure:1904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1905 eval "ac_cv_func_$ac_func=yes"
1907 echo "configure: failed program was:" >&5
1908 cat conftest.$ac_ext >&5
1910 eval "ac_cv_func_$ac_func=no"
1915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1916 echo "$ac_t""yes" 1>&6
1917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1918 cat >> confdefs.h <<EOF
1919 #define $ac_tr_func 1
1923 echo "$ac_t""no" 1>&6
1927 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1928 echo "configure:1929: checking for working mmap" >&5
1929 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 if test "$cross_compiling" = yes; then
1933 ac_cv_func_mmap_fixed_mapped=no
1935 cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1939 /* Thanks to Mike Haertel and Jim Avera for this test.
1940 Here is a matrix of mmap possibilities:
1941 mmap private not fixed
1942 mmap private fixed at somewhere currently unmapped
1943 mmap private fixed at somewhere already mapped
1944 mmap shared not fixed
1945 mmap shared fixed at somewhere currently unmapped
1946 mmap shared fixed at somewhere already mapped
1947 For private mappings, we should verify that changes cannot be read()
1948 back from the file, nor mmap's back from the file at a different
1949 address. (There have been systems where private was not correctly
1950 implemented like the infamous i386 svr4.0, and systems where the
1951 VM page cache was not coherent with the filesystem buffer cache
1952 like early versions of FreeBSD and possibly contemporary NetBSD.)
1953 For shared mappings, we should conversely verify that changes get
1954 propogated back to all the places they're supposed to be.
1956 Grep wants private fixed already mapped.
1957 The main things grep needs to know about mmap are:
1958 * does it exist and is it safe to write into the mmap'd area
1959 * how to use it (BSD variants) */
1960 #include <sys/types.h>
1962 #include <sys/mman.h>
1964 /* This mess was copied from the GNU getpagesize.h. */
1965 #ifndef HAVE_GETPAGESIZE
1966 # ifdef HAVE_UNISTD_H
1967 # include <unistd.h>
1970 /* Assume that all systems that can run configure have sys/param.h. */
1971 # ifndef HAVE_SYS_PARAM_H
1972 # define HAVE_SYS_PARAM_H 1
1975 # ifdef _SC_PAGESIZE
1976 # define getpagesize() sysconf(_SC_PAGESIZE)
1977 # else /* no _SC_PAGESIZE */
1978 # ifdef HAVE_SYS_PARAM_H
1979 # include <sys/param.h>
1980 # ifdef EXEC_PAGESIZE
1981 # define getpagesize() EXEC_PAGESIZE
1982 # else /* no EXEC_PAGESIZE */
1984 # define getpagesize() NBPG * CLSIZE
1987 # endif /* no CLSIZE */
1988 # else /* no NBPG */
1990 # define getpagesize() NBPC
1991 # else /* no NBPC */
1993 # define getpagesize() PAGESIZE
1994 # endif /* PAGESIZE */
1995 # endif /* no NBPC */
1996 # endif /* no NBPG */
1997 # endif /* no EXEC_PAGESIZE */
1998 # else /* no HAVE_SYS_PARAM_H */
1999 # define getpagesize() 8192 /* punt totally */
2000 # endif /* no HAVE_SYS_PARAM_H */
2001 # endif /* no _SC_PAGESIZE */
2003 #endif /* no HAVE_GETPAGESIZE */
2006 extern "C" { void *malloc(unsigned); }
2014 char *data, *data2, *data3;
2018 pagesize = getpagesize();
2021 * First, make a file with some known garbage in it.
2023 data = malloc(pagesize);
2026 for (i = 0; i < pagesize; ++i)
2027 *(data + i) = rand();
2029 fd = creat("conftestmmap", 0600);
2032 if (write(fd, data, pagesize) != pagesize)
2037 * Next, try to mmap the file at a fixed address which
2038 * already has something else allocated at it. If we can,
2039 * also make sure that we see the same garbage.
2041 fd = open("conftestmmap", O_RDWR);
2044 data2 = malloc(2 * pagesize);
2047 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2048 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2049 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2051 for (i = 0; i < pagesize; ++i)
2052 if (*(data + i) != *(data2 + i))
2056 * Finally, make sure that changes to the mapped area
2057 * do not percolate back to the file as seen by read().
2058 * (This is a bug on some variants of i386 svr4.0.)
2060 for (i = 0; i < pagesize; ++i)
2061 *(data2 + i) = *(data2 + i) + 1;
2062 data3 = malloc(pagesize);
2065 if (read(fd, data3, pagesize) != pagesize)
2067 for (i = 0; i < pagesize; ++i)
2068 if (*(data + i) != *(data3 + i))
2071 unlink("conftestmmap");
2076 if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2078 ac_cv_func_mmap_fixed_mapped=yes
2080 echo "configure: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2083 ac_cv_func_mmap_fixed_mapped=no
2090 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2091 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2092 cat >> confdefs.h <<\EOF
2098 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2099 echo "configure:2100: checking return type of signal handlers" >&5
2100 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 cat > conftest.$ac_ext <<EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2106 #include <sys/types.h>
2112 extern "C" void (*signal (int, void (*)(int)))(int);
2114 void (*signal ()) ();
2121 if { (eval echo configure:2122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2123 ac_cv_type_signal=void
2125 echo "configure: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2128 ac_cv_type_signal=int
2133 echo "$ac_t""$ac_cv_type_signal" 1>&6
2134 cat >> confdefs.h <<EOF
2135 #define RETSIGTYPE $ac_cv_type_signal
2139 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2140 echo "configure:2141: checking for dlopen in -ldl" >&5
2141 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 ac_save_LIBS="$LIBS"
2147 cat > conftest.$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 /* Override any gcc2 internal prototype to avoid an error. */
2151 /* We use char because int might match the return type of a gcc2
2152 builtin and then its argument prototype would still apply. */
2159 if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2161 eval "ac_cv_lib_$ac_lib_var=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2166 eval "ac_cv_lib_$ac_lib_var=no"
2169 LIBS="$ac_save_LIBS"
2172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2174 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2175 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2176 cat >> confdefs.h <<EOF
2177 #define $ac_tr_lib 1
2183 echo "$ac_t""no" 1>&6
2186 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2187 echo "configure:2188: checking for optarg in -lgnugetopt" >&5
2188 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 ac_save_LIBS="$LIBS"
2193 LIBS="-lgnugetopt $LIBS"
2194 cat > conftest.$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2197 /* Override any gcc2 internal prototype to avoid an error. */
2198 /* We use char because int might match the return type of a gcc2
2199 builtin and then its argument prototype would still apply. */
2206 if { (eval echo configure:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2208 eval "ac_cv_lib_$ac_lib_var=yes"
2210 echo "configure: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2213 eval "ac_cv_lib_$ac_lib_var=no"
2216 LIBS="$ac_save_LIBS"
2219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2220 echo "$ac_t""yes" 1>&6
2221 ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2222 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2223 cat >> confdefs.h <<EOF
2224 #define $ac_tr_lib 1
2227 LIBS="-lgnugetopt $LIBS"
2230 echo "$ac_t""no" 1>&6
2233 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2234 echo "configure:2235: checking for _ in -lbe" >&5
2235 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2236 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2239 ac_save_LIBS="$LIBS"
2241 cat > conftest.$ac_ext <<EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2244 /* Override any gcc2 internal prototype to avoid an error. */
2245 /* We use char because int might match the return type of a gcc2
2246 builtin and then its argument prototype would still apply. */
2253 if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2255 eval "ac_cv_lib_$ac_lib_var=yes"
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2260 eval "ac_cv_lib_$ac_lib_var=no"
2263 LIBS="$ac_save_LIBS"
2266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2267 echo "$ac_t""yes" 1>&6
2268 ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2269 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2270 cat >> confdefs.h <<EOF
2271 #define $ac_tr_lib 1
2277 echo "$ac_t""no" 1>&6
2280 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2281 echo "configure:2282: checking for _ in -lgame" >&5
2282 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 ac_save_LIBS="$LIBS"
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 /* Override any gcc2 internal prototype to avoid an error. */
2292 /* We use char because int might match the return type of a gcc2
2293 builtin and then its argument prototype would still apply. */
2300 if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2302 eval "ac_cv_lib_$ac_lib_var=yes"
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2307 eval "ac_cv_lib_$ac_lib_var=no"
2310 LIBS="$ac_save_LIBS"
2313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2314 echo "$ac_t""yes" 1>&6
2315 ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2316 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2317 cat >> confdefs.h <<EOF
2318 #define $ac_tr_lib 1
2324 echo "$ac_t""no" 1>&6
2327 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2328 echo "configure:2329: checking for _ in -lroot" >&5
2329 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 ac_save_LIBS="$LIBS"
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 /* Override any gcc2 internal prototype to avoid an error. */
2339 /* We use char because int might match the return type of a gcc2
2340 builtin and then its argument prototype would still apply. */
2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2349 eval "ac_cv_lib_$ac_lib_var=yes"
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2354 eval "ac_cv_lib_$ac_lib_var=no"
2357 LIBS="$ac_save_LIBS"
2360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2361 echo "$ac_t""yes" 1>&6
2362 ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2364 cat >> confdefs.h <<EOF
2365 #define $ac_tr_lib 1
2371 echo "$ac_t""no" 1>&6
2374 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2375 echo "configure:2376: checking for powl in -lm" >&5
2376 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2380 ac_save_LIBS="$LIBS"
2382 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385 /* Override any gcc2 internal prototype to avoid an error. */
2386 /* We use char because int might match the return type of a gcc2
2387 builtin and then its argument prototype would still apply. */
2394 if { (eval echo configure:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2396 eval "ac_cv_lib_$ac_lib_var=yes"
2398 echo "configure: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2401 eval "ac_cv_lib_$ac_lib_var=no"
2404 LIBS="$ac_save_LIBS"
2407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2408 echo "$ac_t""yes" 1>&6
2409 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2410 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2411 cat >> confdefs.h <<EOF
2412 #define $ac_tr_lib 1
2418 echo "$ac_t""no" 1>&6
2421 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2422 echo "configure:2423: checking for pthread_create in -lpthread" >&5
2423 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 ac_save_LIBS="$LIBS"
2428 LIBS="-lpthread $LIBS"
2429 cat > conftest.$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 /* Override any gcc2 internal prototype to avoid an error. */
2433 /* We use char because int might match the return type of a gcc2
2434 builtin and then its argument prototype would still apply. */
2435 char pthread_create();
2441 if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2443 eval "ac_cv_lib_$ac_lib_var=yes"
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2448 eval "ac_cv_lib_$ac_lib_var=no"
2451 LIBS="$ac_save_LIBS"
2454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2455 echo "$ac_t""yes" 1>&6
2456 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2457 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2458 cat >> confdefs.h <<EOF
2459 #define $ac_tr_lib 1
2462 LIBS="-lpthread $LIBS"
2465 echo "$ac_t""no" 1>&6
2468 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2469 echo "configure:2470: checking for thread_create in -lthreads" >&5
2470 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 ac_save_LIBS="$LIBS"
2475 LIBS="-lthreads $LIBS"
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2479 /* Override any gcc2 internal prototype to avoid an error. */
2480 /* We use char because int might match the return type of a gcc2
2481 builtin and then its argument prototype would still apply. */
2482 char thread_create();
2488 if { (eval echo configure:2489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2490 eval "ac_cv_lib_$ac_lib_var=yes"
2492 echo "configure: failed program was:" >&5
2493 cat conftest.$ac_ext >&5
2495 eval "ac_cv_lib_$ac_lib_var=no"
2498 LIBS="$ac_save_LIBS"
2501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2502 echo "$ac_t""yes" 1>&6
2503 ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2504 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2505 cat >> confdefs.h <<EOF
2506 #define $ac_tr_lib 1
2509 LIBS="-lthreads $LIBS"
2512 echo "$ac_t""no" 1>&6
2516 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2517 echo "configure:2518: checking for getopt_long" >&5
2518 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524 /* System header to define __stub macros and hopefully few prototypes,
2525 which can conflict with char getopt_long(); below. */
2527 /* Override any gcc2 internal prototype to avoid an error. */
2528 /* We use char because int might match the return type of a gcc2
2529 builtin and then its argument prototype would still apply. */
2534 /* The GNU C library defines this for functions which it implements
2535 to always fail with ENOSYS. Some functions are actually named
2536 something starting with __ and the normal name is an alias. */
2537 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2545 if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2547 eval "ac_cv_func_getopt_long=yes"
2549 echo "configure: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2552 eval "ac_cv_func_getopt_long=no"
2557 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2558 echo "$ac_t""yes" 1>&6
2561 echo "$ac_t""no" 1>&6
2562 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2567 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2568 for ac_hdr in stddef.h
2570 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2571 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2572 echo "configure:2573: checking for $ac_hdr" >&5
2573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 cat > conftest.$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2582 { (eval echo configure:2583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2584 if test -z "$ac_err"; then
2586 eval "ac_cv_header_$ac_safe=yes"
2589 echo "configure: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2592 eval "ac_cv_header_$ac_safe=no"
2596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2597 echo "$ac_t""yes" 1>&6
2598 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2599 cat >> confdefs.h <<EOF
2600 #define $ac_tr_hdr 1
2604 echo "$ac_t""no" 1>&6
2608 for ac_hdr in getopt.h
2610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2612 echo "configure:2613: checking for $ac_hdr" >&5
2613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2622 { (eval echo configure:2623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2624 if test -z "$ac_err"; then
2626 eval "ac_cv_header_$ac_safe=yes"
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2632 eval "ac_cv_header_$ac_safe=no"
2636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2637 echo "$ac_t""yes" 1>&6
2638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2639 cat >> confdefs.h <<EOF
2640 #define $ac_tr_hdr 1
2644 echo "$ac_t""no" 1>&6
2648 for ac_hdr in sys/sockio.h
2650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2652 echo "configure:2653: checking for $ac_hdr" >&5
2653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2662 { (eval echo configure:2663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2664 if test -z "$ac_err"; then
2666 eval "ac_cv_header_$ac_safe=yes"
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 eval "ac_cv_header_$ac_safe=no"
2676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2677 echo "$ac_t""yes" 1>&6
2678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2679 cat >> confdefs.h <<EOF
2680 #define $ac_tr_hdr 1
2684 echo "$ac_t""no" 1>&6
2688 for ac_hdr in fcntl.h sys/time.h unistd.h
2690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2692 echo "configure:2693: checking for $ac_hdr" >&5
2693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2702 { (eval echo configure:2703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2704 if test -z "$ac_err"; then
2706 eval "ac_cv_header_$ac_safe=yes"
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2712 eval "ac_cv_header_$ac_safe=no"
2716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2717 echo "$ac_t""yes" 1>&6
2718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2719 cat >> confdefs.h <<EOF
2720 #define $ac_tr_hdr 1
2724 echo "$ac_t""no" 1>&6
2728 for ac_hdr in sys/soundcard.h machine/soundcard.h
2730 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2732 echo "configure:2733: checking for $ac_hdr" >&5
2733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2742 { (eval echo configure:2743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2744 if test -z "$ac_err"; then
2746 eval "ac_cv_header_$ac_safe=yes"
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2752 eval "ac_cv_header_$ac_safe=no"
2756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2757 echo "$ac_t""yes" 1>&6
2758 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2759 cat >> confdefs.h <<EOF
2760 #define $ac_tr_hdr 1
2764 echo "$ac_t""no" 1>&6
2768 for ac_hdr in dlfcn.h image.h
2770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2772 echo "configure:2773: checking for $ac_hdr" >&5
2773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2776 cat > conftest.$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2782 { (eval echo configure:2783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2784 if test -z "$ac_err"; then
2786 eval "ac_cv_header_$ac_safe=yes"
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2792 eval "ac_cv_header_$ac_safe=no"
2796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2797 echo "$ac_t""yes" 1>&6
2798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2799 cat >> confdefs.h <<EOF
2800 #define $ac_tr_hdr 1
2804 echo "$ac_t""no" 1>&6
2808 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2810 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2812 echo "configure:2813: checking for $ac_hdr" >&5
2813 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2822 { (eval echo configure:2823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2824 if test -z "$ac_err"; then
2826 eval "ac_cv_header_$ac_safe=yes"
2829 echo "configure: failed program was:" >&5
2830 cat conftest.$ac_ext >&5
2832 eval "ac_cv_header_$ac_safe=no"
2836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2837 echo "$ac_t""yes" 1>&6
2838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2839 cat >> confdefs.h <<EOF
2840 #define $ac_tr_hdr 1
2844 echo "$ac_t""no" 1>&6
2848 for ac_hdr in machine/param.h
2850 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2851 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2852 echo "configure:2853: checking for $ac_hdr" >&5
2853 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2856 cat > conftest.$ac_ext <<EOF
2857 #line 2858 "configure"
2858 #include "confdefs.h"
2861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2862 { (eval echo configure:2863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2864 if test -z "$ac_err"; then
2866 eval "ac_cv_header_$ac_safe=yes"
2869 echo "configure: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2872 eval "ac_cv_header_$ac_safe=no"
2876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2877 echo "$ac_t""yes" 1>&6
2878 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2879 cat >> confdefs.h <<EOF
2880 #define $ac_tr_hdr 1
2884 echo "$ac_t""no" 1>&6
2889 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2891 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2893 echo "configure:2894: checking for $ac_hdr" >&5
2894 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2897 cat > conftest.$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2903 { (eval echo configure:2904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2905 if test -z "$ac_err"; then
2907 eval "ac_cv_header_$ac_safe=yes"
2910 echo "configure: failed program was:" >&5
2911 cat conftest.$ac_ext >&5
2913 eval "ac_cv_header_$ac_safe=no"
2917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2918 echo "$ac_t""yes" 1>&6
2919 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2920 cat >> confdefs.h <<EOF
2921 #define $ac_tr_hdr 1
2925 echo "$ac_t""no" 1>&6
2932 CFLAGS="${CFLAGS} -Wall -Werror"
2933 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2934 echo "configure:2935: checking for ntohl in sys/param.h" >&5
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2938 #include <sys/param.h>
2939 void foo() { int meuh; ntohl(meuh); }
2944 if { (eval echo configure:2945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2946 cat >> confdefs.h <<\EOF
2947 #define NTOHL_IN_SYS_PARAM_H 1
2950 echo "$ac_t""yes" 1>&6
2952 echo "configure: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2955 echo "$ac_t""no" 1>&6
2959 CFLAGS="${CFLAGS} -rdynamic -Wall -Werror"
2960 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2961 echo "configure:2962: checking if \$CC accepts -rdynamic" >&5
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2970 if { (eval echo configure:2971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2972 DYNAMIC_FLAG="-rdynamic"
2973 echo "$ac_t""yes" 1>&6
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2978 echo "$ac_t""no" 1>&6
2984 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
2985 echo "configure:2986: checking for boolean_t in sys/types.h" >&5
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 #include <sys/types.h>
2990 void quux() { boolean_t foo; }
2995 if { (eval echo configure:2996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2997 cat >> confdefs.h <<\EOF
2998 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3001 echo "$ac_t""yes" 1>&6
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 echo "$ac_t""no" 1>&6
3009 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3010 echo "configure:3011: checking for boolean_t in pthread.h" >&5
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3014 #include <pthread.h>
3015 void quux() { boolean_t foo; }
3020 if { (eval echo configure:3021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3022 cat >> confdefs.h <<\EOF
3023 #define BOOLEAN_T_IN_PTHREAD_H 1
3026 echo "$ac_t""yes" 1>&6
3028 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3031 echo "$ac_t""no" 1>&6
3035 echo $ac_n "checking for working const""... $ac_c" 1>&6
3036 echo "configure:3037: checking for working const" >&5
3037 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3046 /* Ultrix mips cc rejects this. */
3047 typedef int charset[2]; const charset x;
3048 /* SunOS 4.1.1 cc rejects this. */
3049 char const *const *ccp;
3051 /* NEC SVR4.0.2 mips cc rejects this. */
3052 struct point {int x, y;};
3053 static struct point const zero = {0,0};
3054 /* AIX XL C 1.02.0.0 rejects this.
3055 It does not let you subtract one const X* pointer from another in an arm
3056 of an if-expression whose if-part is not a constant expression */
3057 const char *g = "string";
3058 ccp = &g + (g ? g-g : 0);
3059 /* HPUX 7.0 cc rejects these. */
3062 ccp = (char const *const *) p;
3063 { /* SCO 3.2v4 cc rejects this. */
3065 char const *s = 0 ? (char *) 0 : (char const *) 0;
3069 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3071 const int *foo = &x[0];
3074 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3075 typedef const int *iptr;
3079 { /* AIX XL C 1.02.0.0 rejects this saying
3080 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3081 struct s { int j; const int *ap[3]; };
3082 struct s *b; b->j = 5;
3084 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3090 if { (eval echo configure:3091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3102 echo "$ac_t""$ac_cv_c_const" 1>&6
3103 if test $ac_cv_c_const = no; then
3104 cat >> confdefs.h <<\EOF
3110 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3111 echo "configure:3112: checking for ANSI C header files" >&5
3112 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 cat > conftest.$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3124 { (eval echo configure:3125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3126 if test -z "$ac_err"; then
3128 ac_cv_header_stdc=yes
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3134 ac_cv_header_stdc=no
3138 if test $ac_cv_header_stdc = yes; then
3139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3146 egrep "memchr" >/dev/null 2>&1; then
3150 ac_cv_header_stdc=no
3156 if test $ac_cv_header_stdc = yes; then
3157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3164 egrep "free" >/dev/null 2>&1; then
3168 ac_cv_header_stdc=no
3174 if test $ac_cv_header_stdc = yes; then
3175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3176 if test "$cross_compiling" = yes; then
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3183 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3184 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3186 int main () { int i; for (i = 0; i < 256; i++)
3187 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3191 if { (eval echo configure:3192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3195 echo "configure: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3198 ac_cv_header_stdc=no
3206 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3207 if test $ac_cv_header_stdc = yes; then
3208 cat >> confdefs.h <<\EOF
3209 #define STDC_HEADERS 1
3214 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3215 echo "configure:3216: checking for size_t" >&5
3216 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 #include <sys/types.h>
3228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3231 ac_cv_type_size_t=yes
3234 ac_cv_type_size_t=no
3239 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3240 if test $ac_cv_type_size_t = no; then
3241 cat >> confdefs.h <<\EOF
3242 #define size_t unsigned
3247 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3248 echo "configure:3249: checking whether time.h and sys/time.h may both be included" >&5
3249 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 #include <sys/types.h>
3256 #include <sys/time.h>
3262 if { (eval echo configure:3263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3264 ac_cv_header_time=yes
3266 echo "configure: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3269 ac_cv_header_time=no
3274 echo "$ac_t""$ac_cv_header_time" 1>&6
3275 if test $ac_cv_header_time = yes; then
3276 cat >> confdefs.h <<\EOF
3277 #define TIME_WITH_SYS_TIME 1
3283 PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
3284 if test x$host_os = xbeos; then
3285 ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3287 ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3290 for ac_hdr in sys/ioctl.h
3292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3294 echo "configure:3295: checking for $ac_hdr" >&5
3295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3304 { (eval echo configure:3305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3306 if test -z "$ac_err"; then
3308 eval "ac_cv_header_$ac_safe=yes"
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3314 eval "ac_cv_header_$ac_safe=no"
3318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3319 echo "$ac_t""yes" 1>&6
3320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3321 cat >> confdefs.h <<EOF
3322 #define $ac_tr_hdr 1
3324 PLUGINS=${PLUGINS}"dvd "
3325 for ac_hdr in linux/cdrom.h
3327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3329 echo "configure:3330: checking for $ac_hdr" >&5
3330 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3339 { (eval echo configure:3340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3341 if test -z "$ac_err"; then
3343 eval "ac_cv_header_$ac_safe=yes"
3346 echo "configure: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3349 eval "ac_cv_header_$ac_safe=no"
3353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3354 echo "$ac_t""yes" 1>&6
3355 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3356 cat >> confdefs.h <<EOF
3357 #define $ac_tr_hdr 1
3361 echo "$ac_t""no" 1>&6
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #include <linux/cdrom.h>
3370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3371 egrep "dvd" >/dev/null 2>&1; then
3373 cat >> confdefs.h <<\EOF
3381 echo "$ac_t""no" 1>&6
3387 # Check whether --enable-ppro or --disable-ppro was given.
3388 if test "${enable_ppro+set}" = set; then
3389 enableval="$enable_ppro"
3390 if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi
3392 if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi
3395 # Check whether --enable-mmx or --disable-mmx was given.
3396 if test "${enable_mmx+set}" = set; then
3397 enableval="$enable_mmx"
3398 if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3400 if test x${host_cpu} = xi686 -o x${host_cpu} = xi586; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi
3403 # Check whether --enable-css or --disable-css was given.
3404 if test "${enable_css+set}" = set; then
3405 enableval="$enable_css"
3406 if test x$enableval = xyes; then CSS=1; else CSS=0; fi
3411 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3415 # Check whether --enable-debug or --disable-debug was given.
3416 if test "${enable_debug+set}" = set; then
3417 enableval="$enable_debug"
3418 if test x$enableval = xyes; then DEBUG=1; fi
3421 # Check whether --enable-stats or --disable-stats was given.
3422 if test "${enable_stats+set}" = set; then
3423 enableval="$enable_stats"
3424 if test x$enableval = xyes; then STATS=1; fi
3427 # Check whether --enable-optimizations or --disable-optimizations was given.
3428 if test "${enable_optimizations+set}" = set; then
3429 enableval="$enable_optimizations"
3430 if test x$enableval = xno; then OPTIMS=0; fi
3439 if test x$host_os = xbeos; then
3440 PLUGINS=${PLUGINS}"dummy null beos "
3446 # Check whether --enable-dummy or --disable-dummy was given.
3447 if test "${enable_dummy+set}" = set; then
3448 enableval="$enable_dummy"
3452 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3453 # Check whether --enable-null or --disable-null was given.
3454 if test "${enable_null+set}" = set; then
3455 enableval="$enable_null"
3459 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3460 # Check whether --enable-dsp or --disable-dsp was given.
3461 if test "${enable_dsp+set}" = set; then
3462 enableval="$enable_dsp"
3466 if test x$enable_dsp != xno; then
3467 if test -c /dev/dsp; then
3468 PLUGINS=${PLUGINS}"dsp "
3471 # Check whether --enable-esd or --disable-esd was given.
3472 if test "${enable_esd+set}" = set; then
3473 enableval="$enable_esd"
3474 if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3477 # Check whether --enable-fb or --disable-fb was given.
3478 if test "${enable_fb+set}" = set; then
3479 enableval="$enable_fb"
3480 if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3483 # Check whether --with-ggi or --without-ggi was given.
3484 if test "${with_ggi+set}" = set; then
3486 if test "x$withval" != "xno";
3488 PLUGINS=${PLUGINS}"ggi ";
3489 if test "x$withval" != "xyes";
3491 LIB_GGI="-l"$withval
3498 # Check whether --with-sdl or --without-sdl was given.
3499 if test "${with_sdl+set}" = set; then
3501 if test "x$withval" != "xno";
3503 PLUGINS=${PLUGINS}"sdl ";
3504 if test "x$withval" != "xyes";
3506 LIB_SDL="L/usr/X11R6/lib -l"$withval
3508 for ac_hdr in SDL/SDL.h
3510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3512 echo "configure:3513: checking for $ac_hdr" >&5
3513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3522 { (eval echo configure:3523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3524 if test -z "$ac_err"; then
3526 eval "ac_cv_header_$ac_safe=yes"
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3532 eval "ac_cv_header_$ac_safe=no"
3536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3537 echo "$ac_t""yes" 1>&6
3538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3539 cat >> confdefs.h <<EOF
3540 #define $ac_tr_hdr 1
3544 echo "$ac_t""no" 1>&6
3545 echo "Cannot find SDL headers !"; exit
3549 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3554 if test "x$withval" = "x";
3556 for ac_hdr in SDL/SDL.h
3558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3560 echo "configure:3561: checking for $ac_hdr" >&5
3561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3570 { (eval echo configure:3571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3572 if test -z "$ac_err"; then
3574 eval "ac_cv_header_$ac_safe=yes"
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3580 eval "ac_cv_header_$ac_safe=no"
3584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3585 echo "$ac_t""yes" 1>&6
3586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3587 cat >> confdefs.h <<EOF
3588 #define $ac_tr_hdr 1
3590 PLUGINS=${PLUGINS}"sdl "
3591 LIB_SDL="-L/usr/X11R6/lib -lSDL"
3593 echo "$ac_t""no" 1>&6
3598 # Check whether --with-glide or --without-glide was given.
3599 if test "${with_glide+set}" = set; then
3600 withval="$with_glide"
3601 if test "x$withval" != "xno";
3603 PLUGINS=${PLUGINS}"glide ";
3604 if test "x$withval" != "xyes";
3606 LIB_GLIDE="-l"$withval
3608 LIB_GLIDE="-lglide2x"
3613 # Check whether --enable-ncurses or --disable-ncurses was given.
3614 if test "${enable_ncurses+set}" = set; then
3615 enableval="$enable_ncurses"
3616 if test x$enable_ncurses = xyes; then PLUGINS=${PLUGINS}"ncurses "; fi
3619 # Check whether --enable-qt or --disable-qt was given.
3620 if test "${enable_qt+set}" = set; then
3621 enableval="$enable_qt"
3622 if test x$enable_qt = xyes; then PLUGINS=${PLUGINS}"qt "; ALIASES=${ALIASES}"qvlc "; fi
3625 # Check whether --enable-kde or --disable-kde was given.
3626 if test "${enable_kde+set}" = set; then
3627 enableval="$enable_kde"
3628 if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; ALIASES=${ALIASES}"kvlc "; fi
3631 # Check whether --enable-gnome or --disable-gnome was given.
3632 if test "${enable_gnome+set}" = set; then
3633 enableval="$enable_gnome"
3634 if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; GVLC=1; fi
3637 # Check whether --enable-gtk or --disable-gtk was given.
3638 if test "${enable_gtk+set}" = set; then
3639 enableval="$enable_gtk"
3643 if test x$enable_gtk != xno; then
3644 if which gtk-config; then
3645 PLUGINS=${PLUGINS}"gtk "
3649 # Check whether --enable-x11 or --disable-x11 was given.
3650 if test "${enable_x11+set}" = set; then
3651 enableval="$enable_x11"
3655 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3657 # Check whether --enable-alsa or --disable-alsa was given.
3658 if test "${enable_alsa+set}" = set; then
3659 enableval="$enable_alsa"
3660 if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3661 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3662 echo "configure:3663: checking for sys/asoundlib.h" >&5
3663 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3669 #include <sys/asoundlib.h>
3671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3672 { (eval echo configure:3673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3674 if test -z "$ac_err"; then
3676 eval "ac_cv_header_$ac_safe=yes"
3679 echo "configure: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3682 eval "ac_cv_header_$ac_safe=no"
3686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3687 echo "$ac_t""yes" 1>&6
3688 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3689 echo "configure:3690: checking for main in -lasound" >&5
3690 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3694 ac_save_LIBS="$LIBS"
3695 LIBS="-lasound $LIBS"
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3704 if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3706 eval "ac_cv_lib_$ac_lib_var=yes"
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3711 eval "ac_cv_lib_$ac_lib_var=no"
3714 LIBS="$ac_save_LIBS"
3717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3718 echo "$ac_t""yes" 1>&6
3721 echo "$ac_t""no" 1>&6
3726 echo "$ac_t""no" 1>&6
3729 if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3733 if test x$GVLC = x1 ; then ALIASES=${ALIASES}"gvlc "; fi
3751 cat > confcache <<\EOF
3752 # This file is a shell script that caches the results of configure
3753 # tests run on this system so they can be shared between configure
3754 # scripts and configure runs. It is not useful on other systems.
3755 # If it contains results you don't want to keep, you may remove or edit it.
3757 # By default, configure uses ./config.cache as the cache file,
3758 # creating it if it does not exist already. You can give configure
3759 # the --cache-file=FILE option to use a different cache file; that is
3760 # what configure does when it calls configure scripts in
3761 # subdirectories, so they share the cache.
3762 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3763 # config.status only pays attention to the cache file if you give it the
3764 # --recheck option to rerun configure.
3767 # The following way of writing the cache mishandles newlines in values,
3768 # but we know of no workaround that is simple, portable, and efficient.
3769 # So, don't put newlines in cache variables' values.
3770 # Ultrix sh set writes to stderr and can't be redirected directly,
3771 # and sets the high bit in the cache file unless we assign to the vars.
3773 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3775 # `set' does not quote correctly, so add quotes (double-quote substitution
3776 # turns \\\\ into \\, and sed turns \\ into \).
3778 -e "s/'/'\\\\''/g" \
3779 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3782 # `set' quotes correctly as required by POSIX, so do not add quotes.
3783 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3786 if cmp -s $cache_file confcache; then
3789 if test -w $cache_file; then
3790 echo "updating cache $cache_file"
3791 cat confcache > $cache_file
3793 echo "not updating unwritable cache $cache_file"
3798 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3800 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3801 # Let make expand exec_prefix.
3802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3804 # Any assignment to VPATH causes Sun make to only execute
3805 # the first set of double-colon rules, so remove it if not needed.
3806 # If there is a colon in the path, we need to keep it.
3807 if test "x$srcdir" = x.; then
3808 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3811 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3813 DEFS=-DHAVE_CONFIG_H
3815 # Without the "./", some shells look in PATH for config.status.
3816 : ${CONFIG_STATUS=./config.status}
3818 echo creating $CONFIG_STATUS
3819 rm -f $CONFIG_STATUS
3820 cat > $CONFIG_STATUS <<EOF
3822 # Generated automatically by configure.
3823 # Run this file to recreate the current configuration.
3824 # This directory was configured as follows,
3825 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3827 # $0 $ac_configure_args
3829 # Compiler output produced by configure, useful for debugging
3830 # configure, is in ./config.log if it exists.
3832 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3835 case "\$ac_option" in
3836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3837 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3838 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3839 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3840 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3842 -help | --help | --hel | --he | --h)
3843 echo "\$ac_cs_usage"; exit 0 ;;
3844 *) echo "\$ac_cs_usage"; exit 1 ;;
3848 ac_given_srcdir=$srcdir
3849 ac_given_INSTALL="$INSTALL"
3851 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3853 cat >> $CONFIG_STATUS <<EOF
3855 # Protect against being on the right side of a sed subst in config.status.
3856 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3857 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3861 s%@CFLAGS@%$CFLAGS%g
3862 s%@CPPFLAGS@%$CPPFLAGS%g
3863 s%@CXXFLAGS@%$CXXFLAGS%g
3864 s%@FFLAGS@%$FFLAGS%g
3866 s%@LDFLAGS@%$LDFLAGS%g
3868 s%@exec_prefix@%$exec_prefix%g
3869 s%@prefix@%$prefix%g
3870 s%@program_transform_name@%$program_transform_name%g
3871 s%@bindir@%$bindir%g
3872 s%@sbindir@%$sbindir%g
3873 s%@libexecdir@%$libexecdir%g
3874 s%@datadir@%$datadir%g
3875 s%@sysconfdir@%$sysconfdir%g
3876 s%@sharedstatedir@%$sharedstatedir%g
3877 s%@localstatedir@%$localstatedir%g
3878 s%@libdir@%$libdir%g
3879 s%@includedir@%$includedir%g
3880 s%@oldincludedir@%$oldincludedir%g
3881 s%@infodir@%$infodir%g
3882 s%@mandir@%$mandir%g
3884 s%@host_alias@%$host_alias%g
3885 s%@host_cpu@%$host_cpu%g
3886 s%@host_vendor@%$host_vendor%g
3887 s%@host_os@%$host_os%g
3888 s%@VLC_VERSION@%$VLC_VERSION%g
3889 s%@VLC_CODENAME@%$VLC_CODENAME%g
3890 s%@SET_MAKE@%$SET_MAKE%g
3893 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3894 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3895 s%@INSTALL_DATA@%$INSTALL_DATA%g
3896 s%@LIBOBJS@%$LIBOBJS%g
3899 s%@PLUGINS@%$PLUGINS%g
3900 s%@ALIASES@%$ALIASES%g
3903 s%@OPTIMS@%$OPTIMS%g
3905 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3906 s%@LIB_SDL@%$LIB_SDL%g
3907 s%@LIB_GLIDE@%$LIB_GLIDE%g
3908 s%@LIB_GGI@%$LIB_GGI%g
3913 cat >> $CONFIG_STATUS <<\EOF
3915 # Split the substitutions into bite-sized pieces for seds with
3916 # small command number limits, like on Digital OSF/1 and HP-UX.
3917 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3918 ac_file=1 # Number of current file.
3919 ac_beg=1 # First line for current file.
3920 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3923 while $ac_more_lines; do
3924 if test $ac_beg -gt 1; then
3925 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3927 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3929 if test ! -s conftest.s$ac_file; then
3931 rm -f conftest.s$ac_file
3933 if test -z "$ac_sed_cmds"; then
3934 ac_sed_cmds="sed -f conftest.s$ac_file"
3936 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3938 ac_file=`expr $ac_file + 1`
3940 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3943 if test -z "$ac_sed_cmds"; then
3948 cat >> $CONFIG_STATUS <<EOF
3950 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3952 cat >> $CONFIG_STATUS <<\EOF
3953 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3956 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3957 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3958 *) ac_file_in="${ac_file}.in" ;;
3961 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3963 # Remove last slash and all that follows it. Not all systems have dirname.
3964 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3965 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3966 # The file is in a subdirectory.
3967 test ! -d "$ac_dir" && mkdir "$ac_dir"
3968 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3969 # A "../" for each directory in $ac_dir_suffix.
3970 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3972 ac_dir_suffix= ac_dots=
3975 case "$ac_given_srcdir" in
3977 if test -z "$ac_dots"; then top_srcdir=.
3978 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3979 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3981 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3982 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3985 case "$ac_given_INSTALL" in
3986 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3987 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3990 echo creating "$ac_file"
3992 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3994 *Makefile*) ac_comsub="1i\\
3995 # $configure_input" ;;
3999 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4001 s%@configure_input@%$configure_input%g
4002 s%@srcdir@%$srcdir%g
4003 s%@top_srcdir@%$top_srcdir%g
4004 s%@INSTALL@%$INSTALL%g
4005 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4009 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4010 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4012 # ac_d sets the value in "#define NAME VALUE" lines.
4013 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4014 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4017 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4018 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4019 ac_uB='\([ ]\)%\1#\2define\3'
4022 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4023 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4024 ac_eB='$%\1#\2define\3'
4028 if test "${CONFIG_HEADERS+set}" != set; then
4030 cat >> $CONFIG_STATUS <<EOF
4031 CONFIG_HEADERS="include/defs.h"
4033 cat >> $CONFIG_STATUS <<\EOF
4035 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4036 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4038 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4039 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4040 *) ac_file_in="${ac_file}.in" ;;
4043 echo creating $ac_file
4045 rm -f conftest.frag conftest.in conftest.out
4046 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4047 cat $ac_file_inputs > conftest.in
4051 # Transform confdefs.h into a sed script conftest.vals that substitutes
4052 # the proper values into config.h.in to produce config.h. And first:
4053 # Protect against being on the right side of a sed subst in config.status.
4054 # Protect against being in an unquoted here document in config.status.
4056 cat > conftest.hdr <<\EOF
4059 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4063 sed -n -f conftest.hdr confdefs.h > conftest.vals
4066 # This sed command replaces #undef with comments. This is necessary, for
4067 # example, in the case of _POSIX_SOURCE, which is predefined and required
4068 # on some systems where configure will not decide to define it.
4069 cat >> conftest.vals <<\EOF
4070 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4073 # Break up conftest.vals because some shells have a limit on
4074 # the size of here documents, and old seds have small limits too.
4079 ac_lines=`grep -c . conftest.vals`
4080 # grep -c gives empty output for an empty file on some AIX systems.
4081 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4082 # Write a limited-size here document to conftest.frag.
4083 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4084 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4086 sed -f conftest.frag conftest.in > conftest.out
4088 mv conftest.out conftest.in
4090 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4092 mv conftest.tail conftest.vals
4096 cat >> $CONFIG_STATUS <<\EOF
4097 rm -f conftest.frag conftest.h
4098 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4099 cat conftest.in >> conftest.h
4101 if cmp -s $ac_file conftest.h 2>/dev/null; then
4102 echo "$ac_file is unchanged"
4105 # Remove last slash and all that follows it. Not all systems have dirname.
4106 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4107 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4108 # The file is in a subdirectory.
4109 test ! -d "$ac_dir" && mkdir "$ac_dir"
4112 mv conftest.h $ac_file
4117 cat >> $CONFIG_STATUS <<EOF
4120 cat >> $CONFIG_STATUS <<\EOF
4124 chmod +x $CONFIG_STATUS
4125 rm -fr confdefs* $ac_clean_files
4126 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4132 vlc version : ${VLC_VERSION}
4134 architecture : ${ARCH}
4135 debug mode : ${DEBUG}
4136 statistics : ${STATS}
4137 optimizations : ${OPTIMS}
4138 CSS decryption : ${CSS}
4139 plugins : ${PLUGINS}
4140 vlc aliases : ${ALIASES}