]> git.sesse.net Git - vlc/blob - configure
(note: empty CVS mails mean that a new directory has been created,
[vlc] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --disable-ppro          Disable PentiumPro optimizations (default enabled for x86)"
16 ac_help="$ac_help
17   --disable-mmx           Disable MMX optimizations (default enabled for x86)"
18 ac_help="$ac_help
19   --enable-debug          Enable debug mode (default disabled)"
20 ac_help="$ac_help
21   --enable-stats          Enable printing of statistics (default disabled)"
22 ac_help="$ac_help
23   --disable-optimizations Disable compiler optimizations (default enabled)"
24 ac_help="$ac_help
25   --disable-dummy         dummy module (default enabled)"
26 ac_help="$ac_help
27   --disable-null          Null module (default enabled)"
28 ac_help="$ac_help
29   --disable-dsp           Linux /dev/dsp support (default enabled)"
30 ac_help="$ac_help
31   --enable-esd            Esound library support (default disabled)"
32 ac_help="$ac_help
33   --enable-fb             Linux framebuffer support (default disabled)"
34 ac_help="$ac_help
35   --with-ggi[=name]       GGI support (default disabled)"
36 ac_help="$ac_help
37   --with-sdl[=name]       SDL support (default enabled)"
38 ac_help="$ac_help
39   --with-glide[=name]     Glide (3dfx) support (default disabled)"
40 ac_help="$ac_help
41   --enable-ncurses        ncurses interface support (default disabled)"
42 ac_help="$ac_help
43   --enable-kde            KDE interface support (default disabled)"
44 ac_help="$ac_help
45   --enable-gnome          Gnome interface support (default disabled)"
46 ac_help="$ac_help
47   --disable-gtk           Gtk+ support (default enabled)"
48 ac_help="$ac_help
49   --disable-x11           X11 support (default enabled)"
50 ac_help="$ac_help
51   --enable-alsa           Alsa sound drivers support (Only for linux) (default disabled)"
52
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
56 build=NONE
57 cache_file=./config.cache
58 exec_prefix=NONE
59 host=NONE
60 no_create=
61 nonopt=NONE
62 no_recursion=
63 prefix=NONE
64 program_prefix=NONE
65 program_suffix=NONE
66 program_transform_name=s,x,x,
67 silent=
68 site=
69 srcdir=
70 target=NONE
71 verbose=
72 x_includes=NONE
73 x_libraries=NONE
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
86
87 # Initialize some other variables.
88 subdirs=
89 MFLAGS= MAKEFLAGS=
90 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
92 ac_max_here_lines=12
93
94 ac_prev=
95 for ac_option
96 do
97
98   # If the previous option needs an argument, assign it.
99   if test -n "$ac_prev"; then
100     eval "$ac_prev=\$ac_option"
101     ac_prev=
102     continue
103   fi
104
105   case "$ac_option" in
106   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
107   *) ac_optarg= ;;
108   esac
109
110   # Accept the important Cygnus configure options, so we can diagnose typos.
111
112   case "$ac_option" in
113
114   -bindir | --bindir | --bindi | --bind | --bin | --bi)
115     ac_prev=bindir ;;
116   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117     bindir="$ac_optarg" ;;
118
119   -build | --build | --buil | --bui | --bu)
120     ac_prev=build ;;
121   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
122     build="$ac_optarg" ;;
123
124   -cache-file | --cache-file | --cache-fil | --cache-fi \
125   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126     ac_prev=cache_file ;;
127   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129     cache_file="$ac_optarg" ;;
130
131   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
132     ac_prev=datadir ;;
133   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
134   | --da=*)
135     datadir="$ac_optarg" ;;
136
137   -disable-* | --disable-*)
138     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139     # Reject names that are not valid shell variable names.
140     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142     fi
143     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144     eval "enable_${ac_feature}=no" ;;
145
146   -enable-* | --enable-*)
147     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148     # Reject names that are not valid shell variable names.
149     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151     fi
152     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153     case "$ac_option" in
154       *=*) ;;
155       *) ac_optarg=yes ;;
156     esac
157     eval "enable_${ac_feature}='$ac_optarg'" ;;
158
159   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161   | --exec | --exe | --ex)
162     ac_prev=exec_prefix ;;
163   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165   | --exec=* | --exe=* | --ex=*)
166     exec_prefix="$ac_optarg" ;;
167
168   -gas | --gas | --ga | --g)
169     # Obsolete; use --with-gas.
170     with_gas=yes ;;
171
172   -help | --help | --hel | --he)
173     # Omit some internal or obsolete options to make the list less imposing.
174     # This message is too long to be a string in the A/UX 3.1 sh.
175     cat << EOF
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
178 Configuration:
179   --cache-file=FILE       cache test results in FILE
180   --help                  print this message
181   --no-create             do not create output files
182   --quiet, --silent       do not print \`checking...' messages
183   --version               print the version of autoconf that created configure
184 Directory and file names:
185   --prefix=PREFIX         install architecture-independent files in PREFIX
186                           [$ac_default_prefix]
187   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
188                           [same as prefix]
189   --bindir=DIR            user executables in DIR [EPREFIX/bin]
190   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
191   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
192   --datadir=DIR           read-only architecture-independent data in DIR
193                           [PREFIX/share]
194   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
195   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
196                           [PREFIX/com]
197   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
198   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
199   --includedir=DIR        C header files in DIR [PREFIX/include]
200   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
201   --infodir=DIR           info documentation in DIR [PREFIX/info]
202   --mandir=DIR            man documentation in DIR [PREFIX/man]
203   --srcdir=DIR            find the sources in DIR [configure dir or ..]
204   --program-prefix=PREFIX prepend PREFIX to installed program names
205   --program-suffix=SUFFIX append SUFFIX to installed program names
206   --program-transform-name=PROGRAM
207                           run sed PROGRAM on installed program names
208 EOF
209     cat << EOF
210 Host type:
211   --build=BUILD           configure for building on BUILD [BUILD=HOST]
212   --host=HOST             configure for HOST [guessed]
213   --target=TARGET         configure for TARGET [TARGET=HOST]
214 Features and packages:
215   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
216   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
217   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
218   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
219   --x-includes=DIR        X include files are in DIR
220   --x-libraries=DIR       X library files are in DIR
221 EOF
222     if test -n "$ac_help"; then
223       echo "--enable and --with options recognized:$ac_help"
224     fi
225     exit 0 ;;
226
227   -host | --host | --hos | --ho)
228     ac_prev=host ;;
229   -host=* | --host=* | --hos=* | --ho=*)
230     host="$ac_optarg" ;;
231
232   -includedir | --includedir | --includedi | --included | --include \
233   | --includ | --inclu | --incl | --inc)
234     ac_prev=includedir ;;
235   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236   | --includ=* | --inclu=* | --incl=* | --inc=*)
237     includedir="$ac_optarg" ;;
238
239   -infodir | --infodir | --infodi | --infod | --info | --inf)
240     ac_prev=infodir ;;
241   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242     infodir="$ac_optarg" ;;
243
244   -libdir | --libdir | --libdi | --libd)
245     ac_prev=libdir ;;
246   -libdir=* | --libdir=* | --libdi=* | --libd=*)
247     libdir="$ac_optarg" ;;
248
249   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250   | --libexe | --libex | --libe)
251     ac_prev=libexecdir ;;
252   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253   | --libexe=* | --libex=* | --libe=*)
254     libexecdir="$ac_optarg" ;;
255
256   -localstatedir | --localstatedir | --localstatedi | --localstated \
257   | --localstate | --localstat | --localsta | --localst \
258   | --locals | --local | --loca | --loc | --lo)
259     ac_prev=localstatedir ;;
260   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263     localstatedir="$ac_optarg" ;;
264
265   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
266     ac_prev=mandir ;;
267   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268     mandir="$ac_optarg" ;;
269
270   -nfp | --nfp | --nf)
271     # Obsolete; use --without-fp.
272     with_fp=no ;;
273
274   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275   | --no-cr | --no-c)
276     no_create=yes ;;
277
278   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280     no_recursion=yes ;;
281
282   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284   | --oldin | --oldi | --old | --ol | --o)
285     ac_prev=oldincludedir ;;
286   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289     oldincludedir="$ac_optarg" ;;
290
291   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
292     ac_prev=prefix ;;
293   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294     prefix="$ac_optarg" ;;
295
296   -program-prefix | --program-prefix | --program-prefi | --program-pref \
297   | --program-pre | --program-pr | --program-p)
298     ac_prev=program_prefix ;;
299   -program-prefix=* | --program-prefix=* | --program-prefi=* \
300   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301     program_prefix="$ac_optarg" ;;
302
303   -program-suffix | --program-suffix | --program-suffi | --program-suff \
304   | --program-suf | --program-su | --program-s)
305     ac_prev=program_suffix ;;
306   -program-suffix=* | --program-suffix=* | --program-suffi=* \
307   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308     program_suffix="$ac_optarg" ;;
309
310   -program-transform-name | --program-transform-name \
311   | --program-transform-nam | --program-transform-na \
312   | --program-transform-n | --program-transform- \
313   | --program-transform | --program-transfor \
314   | --program-transfo | --program-transf \
315   | --program-trans | --program-tran \
316   | --progr-tra | --program-tr | --program-t)
317     ac_prev=program_transform_name ;;
318   -program-transform-name=* | --program-transform-name=* \
319   | --program-transform-nam=* | --program-transform-na=* \
320   | --program-transform-n=* | --program-transform-=* \
321   | --program-transform=* | --program-transfor=* \
322   | --program-transfo=* | --program-transf=* \
323   | --program-trans=* | --program-tran=* \
324   | --progr-tra=* | --program-tr=* | --program-t=*)
325     program_transform_name="$ac_optarg" ;;
326
327   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328   | -silent | --silent | --silen | --sile | --sil)
329     silent=yes ;;
330
331   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
332     ac_prev=sbindir ;;
333   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
334   | --sbi=* | --sb=*)
335     sbindir="$ac_optarg" ;;
336
337   -sharedstatedir | --sharedstatedir | --sharedstatedi \
338   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339   | --sharedst | --shareds | --shared | --share | --shar \
340   | --sha | --sh)
341     ac_prev=sharedstatedir ;;
342   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
345   | --sha=* | --sh=*)
346     sharedstatedir="$ac_optarg" ;;
347
348   -site | --site | --sit)
349     ac_prev=site ;;
350   -site=* | --site=* | --sit=*)
351     site="$ac_optarg" ;;
352
353   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
354     ac_prev=srcdir ;;
355   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356     srcdir="$ac_optarg" ;;
357
358   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359   | --syscon | --sysco | --sysc | --sys | --sy)
360     ac_prev=sysconfdir ;;
361   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363     sysconfdir="$ac_optarg" ;;
364
365   -target | --target | --targe | --targ | --tar | --ta | --t)
366     ac_prev=target ;;
367   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368     target="$ac_optarg" ;;
369
370   -v | -verbose | --verbose | --verbos | --verbo | --verb)
371     verbose=yes ;;
372
373   -version | --version | --versio | --versi | --vers)
374     echo "configure generated by autoconf version 2.13"
375     exit 0 ;;
376
377   -with-* | --with-*)
378     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379     # Reject names that are not valid shell variable names.
380     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382     fi
383     ac_package=`echo $ac_package| sed 's/-/_/g'`
384     case "$ac_option" in
385       *=*) ;;
386       *) ac_optarg=yes ;;
387     esac
388     eval "with_${ac_package}='$ac_optarg'" ;;
389
390   -without-* | --without-*)
391     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392     # Reject names that are not valid shell variable names.
393     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395     fi
396     ac_package=`echo $ac_package| sed 's/-/_/g'`
397     eval "with_${ac_package}=no" ;;
398
399   --x)
400     # Obsolete; use --with-x.
401     with_x=yes ;;
402
403   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404   | --x-incl | --x-inc | --x-in | --x-i)
405     ac_prev=x_includes ;;
406   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408     x_includes="$ac_optarg" ;;
409
410   -x-libraries | --x-libraries | --x-librarie | --x-librari \
411   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412     ac_prev=x_libraries ;;
413   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415     x_libraries="$ac_optarg" ;;
416
417   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
418     ;;
419
420   *)
421     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422       echo "configure: warning: $ac_option: invalid host type" 1>&2
423     fi
424     if test "x$nonopt" != xNONE; then
425       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426     fi
427     nonopt="$ac_option"
428     ;;
429
430   esac
431 done
432
433 if test -n "$ac_prev"; then
434   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 fi
436
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
438
439 # File descriptor usage:
440 # 0 standard input
441 # 1 file creation
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
448   exec 6>/dev/null
449 else
450   exec 6>&1
451 fi
452 exec 5>./config.log
453
454 echo "\
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
457 " 1>&5
458
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
461 ac_configure_args=
462 for ac_arg
463 do
464   case "$ac_arg" in
465   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466   | --no-cr | --no-c) ;;
467   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
472   esac
473 done
474
475 # NLS nuisances.
476 # Only set these to C if already set.  These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
484
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
488 echo > confdefs.h
489
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file=src/interface/main.c
493
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496   ac_srcdir_defaulted=yes
497   # Try the directory containing this script, then its parent.
498   ac_prog=$0
499   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
501   srcdir=$ac_confdir
502   if test ! -r $srcdir/$ac_unique_file; then
503     srcdir=..
504   fi
505 else
506   ac_srcdir_defaulted=no
507 fi
508 if test ! -r $srcdir/$ac_unique_file; then
509   if test "$ac_srcdir_defaulted" = yes; then
510     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
511   else
512     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513   fi
514 fi
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519   if test "x$prefix" != xNONE; then
520     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
521   else
522     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523   fi
524 fi
525 for ac_site_file in $CONFIG_SITE; do
526   if test -r "$ac_site_file"; then
527     echo "loading site script $ac_site_file"
528     . "$ac_site_file"
529   fi
530 done
531
532 if test -r "$cache_file"; then
533   echo "loading cache $cache_file"
534   . $cache_file
535 else
536   echo "creating cache $cache_file"
537   > $cache_file
538 fi
539
540 ac_ext=c
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
546
547 ac_exeext=
548 ac_objext=o
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552     ac_n= ac_c='
553 ' ac_t='        '
554   else
555     ac_n=-n ac_c= ac_t=
556   fi
557 else
558   ac_n= ac_c='\c' ac_t=
559 fi
560
561
562
563
564 ac_aux_dir=
565 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
566   if test -f $ac_dir/install-sh; then
567     ac_aux_dir=$ac_dir
568     ac_install_sh="$ac_aux_dir/install-sh -c"
569     break
570   elif test -f $ac_dir/install.sh; then
571     ac_aux_dir=$ac_dir
572     ac_install_sh="$ac_aux_dir/install.sh -c"
573     break
574   fi
575 done
576 if test -z "$ac_aux_dir"; then
577   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
578 fi
579 ac_config_guess=$ac_aux_dir/config.guess
580 ac_config_sub=$ac_aux_dir/config.sub
581 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
582
583
584 # Make sure we can run config.sub.
585 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
587 fi
588
589 echo $ac_n "checking host system type""... $ac_c" 1>&6
590 echo "configure:591: checking host system type" >&5
591
592 host_alias=$host
593 case "$host_alias" in
594 NONE)
595   case $nonopt in
596   NONE)
597     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
599     fi ;;
600   *) host_alias=$nonopt ;;
601   esac ;;
602 esac
603
604 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608 echo "$ac_t""$host" 1>&6
609
610
611 VLC_VERSION=0.2.62
612
613 VLC_CODENAME=Urumov
614
615
616 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
617 echo "configure:618: checking whether ${MAKE-make} sets \${MAKE}" >&5
618 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
619 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
620   echo $ac_n "(cached) $ac_c" 1>&6
621 else
622   cat > conftestmake <<\EOF
623 all:
624         @echo 'ac_maketemp="${MAKE}"'
625 EOF
626 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
627 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
628 if test -n "$ac_maketemp"; then
629   eval ac_cv_prog_make_${ac_make}_set=yes
630 else
631   eval ac_cv_prog_make_${ac_make}_set=no
632 fi
633 rm -f conftestmake
634 fi
635 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
636   echo "$ac_t""yes" 1>&6
637   SET_MAKE=
638 else
639   echo "$ac_t""no" 1>&6
640   SET_MAKE="MAKE=${MAKE-make}"
641 fi
642
643 if test -z "$CC"; then
644   # Extract the first word of "gcc", so it can be a program name with args.
645 set dummy gcc; ac_word=$2
646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
647 echo "configure:648: checking for $ac_word" >&5
648 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
649   echo $ac_n "(cached) $ac_c" 1>&6
650 else
651   if test -n "$CC"; then
652   ac_cv_prog_CC="$CC" # Let the user override the test.
653 else
654   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
655   ac_dummy="$PATH"
656   for ac_dir in $ac_dummy; do
657     test -z "$ac_dir" && ac_dir=.
658     if test -f $ac_dir/$ac_word; then
659       ac_cv_prog_CC="gcc"
660       break
661     fi
662   done
663   IFS="$ac_save_ifs"
664 fi
665 fi
666 CC="$ac_cv_prog_CC"
667 if test -n "$CC"; then
668   echo "$ac_t""$CC" 1>&6
669 else
670   echo "$ac_t""no" 1>&6
671 fi
672
673 if test -z "$CC"; then
674   # Extract the first word of "cc", so it can be a program name with args.
675 set dummy cc; ac_word=$2
676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
677 echo "configure:678: checking for $ac_word" >&5
678 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
679   echo $ac_n "(cached) $ac_c" 1>&6
680 else
681   if test -n "$CC"; then
682   ac_cv_prog_CC="$CC" # Let the user override the test.
683 else
684   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
685   ac_prog_rejected=no
686   ac_dummy="$PATH"
687   for ac_dir in $ac_dummy; do
688     test -z "$ac_dir" && ac_dir=.
689     if test -f $ac_dir/$ac_word; then
690       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
691         ac_prog_rejected=yes
692         continue
693       fi
694       ac_cv_prog_CC="cc"
695       break
696     fi
697   done
698   IFS="$ac_save_ifs"
699 if test $ac_prog_rejected = yes; then
700   # We found a bogon in the path, so make sure we never use it.
701   set dummy $ac_cv_prog_CC
702   shift
703   if test $# -gt 0; then
704     # We chose a different compiler from the bogus one.
705     # However, it has the same basename, so the bogon will be chosen
706     # first if we set CC to just the basename; use the full file name.
707     shift
708     set dummy "$ac_dir/$ac_word" "$@"
709     shift
710     ac_cv_prog_CC="$@"
711   fi
712 fi
713 fi
714 fi
715 CC="$ac_cv_prog_CC"
716 if test -n "$CC"; then
717   echo "$ac_t""$CC" 1>&6
718 else
719   echo "$ac_t""no" 1>&6
720 fi
721
722   if test -z "$CC"; then
723     case "`uname -s`" in
724     *win32* | *WIN32*)
725       # Extract the first word of "cl", so it can be a program name with args.
726 set dummy cl; ac_word=$2
727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
728 echo "configure:729: checking for $ac_word" >&5
729 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
730   echo $ac_n "(cached) $ac_c" 1>&6
731 else
732   if test -n "$CC"; then
733   ac_cv_prog_CC="$CC" # Let the user override the test.
734 else
735   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
736   ac_dummy="$PATH"
737   for ac_dir in $ac_dummy; do
738     test -z "$ac_dir" && ac_dir=.
739     if test -f $ac_dir/$ac_word; then
740       ac_cv_prog_CC="cl"
741       break
742     fi
743   done
744   IFS="$ac_save_ifs"
745 fi
746 fi
747 CC="$ac_cv_prog_CC"
748 if test -n "$CC"; then
749   echo "$ac_t""$CC" 1>&6
750 else
751   echo "$ac_t""no" 1>&6
752 fi
753  ;;
754     esac
755   fi
756   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
757 fi
758
759 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
760 echo "configure:761: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
761
762 ac_ext=c
763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
764 ac_cpp='$CPP $CPPFLAGS'
765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
767 cross_compiling=$ac_cv_prog_cc_cross
768
769 cat > conftest.$ac_ext << EOF
770
771 #line 772 "configure"
772 #include "confdefs.h"
773
774 main(){return(0);}
775 EOF
776 if { (eval echo configure:777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
777   ac_cv_prog_cc_works=yes
778   # If we can't run a trivial program, we are probably using a cross compiler.
779   if (./conftest; exit) 2>/dev/null; then
780     ac_cv_prog_cc_cross=no
781   else
782     ac_cv_prog_cc_cross=yes
783   fi
784 else
785   echo "configure: failed program was:" >&5
786   cat conftest.$ac_ext >&5
787   ac_cv_prog_cc_works=no
788 fi
789 rm -fr conftest*
790 ac_ext=c
791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
792 ac_cpp='$CPP $CPPFLAGS'
793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
795 cross_compiling=$ac_cv_prog_cc_cross
796
797 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
798 if test $ac_cv_prog_cc_works = no; then
799   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
800 fi
801 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
802 echo "configure:803: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
803 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
804 cross_compiling=$ac_cv_prog_cc_cross
805
806 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
807 echo "configure:808: checking whether we are using GNU C" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
809   echo $ac_n "(cached) $ac_c" 1>&6
810 else
811   cat > conftest.c <<EOF
812 #ifdef __GNUC__
813   yes;
814 #endif
815 EOF
816 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
817   ac_cv_prog_gcc=yes
818 else
819   ac_cv_prog_gcc=no
820 fi
821 fi
822
823 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
824
825 if test $ac_cv_prog_gcc = yes; then
826   GCC=yes
827 else
828   GCC=
829 fi
830
831 ac_test_CFLAGS="${CFLAGS+set}"
832 ac_save_CFLAGS="$CFLAGS"
833 CFLAGS=
834 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
835 echo "configure:836: checking whether ${CC-cc} accepts -g" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
837   echo $ac_n "(cached) $ac_c" 1>&6
838 else
839   echo 'void f(){}' > conftest.c
840 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
841   ac_cv_prog_cc_g=yes
842 else
843   ac_cv_prog_cc_g=no
844 fi
845 rm -f conftest*
846
847 fi
848
849 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
850 if test "$ac_test_CFLAGS" = set; then
851   CFLAGS="$ac_save_CFLAGS"
852 elif test $ac_cv_prog_cc_g = yes; then
853   if test "$GCC" = yes; then
854     CFLAGS="-g -O2"
855   else
856     CFLAGS="-g"
857   fi
858 else
859   if test "$GCC" = yes; then
860     CFLAGS="-O2"
861   else
862     CFLAGS=
863   fi
864 fi
865
866 fi
867 if test -z "$CPP"; then
868   echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
869 echo "configure:870: checking how to run the C preprocessor" >&5
870 # On Suns, sometimes $CPP names a directory.
871 if test -n "$CPP" && test -d "$CPP"; then
872   CPP=
873 fi
874 if test -z "$CPP"; then
875 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
876   echo $ac_n "(cached) $ac_c" 1>&6
877 else
878     # This must be in double quotes, not single quotes, because CPP may get
879   # substituted into the Makefile and "${CC-cc}" will confuse make.
880   CPP="${CC-cc} -E"
881   # On the NeXT, cc -E runs the code through the compiler's parser,
882   # not just through cpp.
883   cat > conftest.$ac_ext <<EOF
884 #line 885 "configure"
885 #include "confdefs.h"
886 #include <assert.h>
887 Syntax Error
888 EOF
889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
890 { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
892 if test -z "$ac_err"; then
893   :
894 else
895   echo "$ac_err" >&5
896   echo "configure: failed program was:" >&5
897   cat conftest.$ac_ext >&5
898   rm -rf conftest*
899   CPP="${CC-cc} -E -traditional-cpp"
900   cat > conftest.$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
903 #include <assert.h>
904 Syntax Error
905 EOF
906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
907 { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
909 if test -z "$ac_err"; then
910   :
911 else
912   echo "$ac_err" >&5
913   echo "configure: failed program was:" >&5
914   cat conftest.$ac_ext >&5
915   rm -rf conftest*
916   CPP="${CC-cc} -nologo -E"
917   cat > conftest.$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
920 #include <assert.h>
921 Syntax Error
922 EOF
923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924 { (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926 if test -z "$ac_err"; then
927   :
928 else
929   echo "$ac_err" >&5
930   echo "configure: failed program was:" >&5
931   cat conftest.$ac_ext >&5
932   rm -rf conftest*
933   CPP=/lib/cpp
934 fi
935 rm -f conftest*
936 fi
937 rm -f conftest*
938 fi
939 rm -f conftest*
940   ac_cv_prog_CPP="$CPP"
941 fi
942   CPP="$ac_cv_prog_CPP"
943 else
944   ac_cv_prog_CPP="$CPP"
945 fi
946 echo "$ac_t""$CPP" 1>&6
947
948 fi
949
950 # Find a good install program.  We prefer a C program (faster),
951 # so one script is as good as another.  But avoid the broken or
952 # incompatible versions:
953 # SysV /etc/install, /usr/sbin/install
954 # SunOS /usr/etc/install
955 # IRIX /sbin/install
956 # AIX /bin/install
957 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
958 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
959 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
960 # ./install, which can be erroneously created by make from ./install.sh.
961 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
962 echo "configure:963: checking for a BSD compatible install" >&5
963 if test -z "$INSTALL"; then
964 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
965   echo $ac_n "(cached) $ac_c" 1>&6
966 else
967     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
968   for ac_dir in $PATH; do
969     # Account for people who put trailing slashes in PATH elements.
970     case "$ac_dir/" in
971     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
972     *)
973       # OSF1 and SCO ODT 3.0 have their own names for install.
974       # Don't use installbsd from OSF since it installs stuff as root
975       # by default.
976       for ac_prog in ginstall scoinst install; do
977         if test -f $ac_dir/$ac_prog; then
978           if test $ac_prog = install &&
979             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
980             # AIX install.  It has an incompatible calling convention.
981             :
982           else
983             ac_cv_path_install="$ac_dir/$ac_prog -c"
984             break 2
985           fi
986         fi
987       done
988       ;;
989     esac
990   done
991   IFS="$ac_save_IFS"
992
993 fi
994   if test "${ac_cv_path_install+set}" = set; then
995     INSTALL="$ac_cv_path_install"
996   else
997     # As a last resort, use the slow shell script.  We don't cache a
998     # path for INSTALL within a source directory, because that will
999     # break other packages using the cache if that directory is
1000     # removed, or if the path is relative.
1001     INSTALL="$ac_install_sh"
1002   fi
1003 fi
1004 echo "$ac_t""$INSTALL" 1>&6
1005
1006 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1007 # It thinks the first close brace ends the variable substitution.
1008 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1009
1010 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1011
1012 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1013
1014
1015 echo $ac_n "checking for working const""... $ac_c" 1>&6
1016 echo "configure:1017: checking for working const" >&5
1017 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1018   echo $ac_n "(cached) $ac_c" 1>&6
1019 else
1020   cat > conftest.$ac_ext <<EOF
1021 #line 1022 "configure"
1022 #include "confdefs.h"
1023
1024 int main() {
1025
1026 /* Ultrix mips cc rejects this.  */
1027 typedef int charset[2]; const charset x;
1028 /* SunOS 4.1.1 cc rejects this.  */
1029 char const *const *ccp;
1030 char **p;
1031 /* NEC SVR4.0.2 mips cc rejects this.  */
1032 struct point {int x, y;};
1033 static struct point const zero = {0,0};
1034 /* AIX XL C 1.02.0.0 rejects this.
1035    It does not let you subtract one const X* pointer from another in an arm
1036    of an if-expression whose if-part is not a constant expression */
1037 const char *g = "string";
1038 ccp = &g + (g ? g-g : 0);
1039 /* HPUX 7.0 cc rejects these. */
1040 ++ccp;
1041 p = (char**) ccp;
1042 ccp = (char const *const *) p;
1043 { /* SCO 3.2v4 cc rejects this.  */
1044   char *t;
1045   char const *s = 0 ? (char *) 0 : (char const *) 0;
1046
1047   *t++ = 0;
1048 }
1049 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1050   int x[] = {25, 17};
1051   const int *foo = &x[0];
1052   ++foo;
1053 }
1054 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1055   typedef const int *iptr;
1056   iptr p = 0;
1057   ++p;
1058 }
1059 { /* AIX XL C 1.02.0.0 rejects this saying
1060      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1061   struct s { int j; const int *ap[3]; };
1062   struct s *b; b->j = 5;
1063 }
1064 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1065   const int foo = 10;
1066 }
1067
1068 ; return 0; }
1069 EOF
1070 if { (eval echo configure:1071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1071   rm -rf conftest*
1072   ac_cv_c_const=yes
1073 else
1074   echo "configure: failed program was:" >&5
1075   cat conftest.$ac_ext >&5
1076   rm -rf conftest*
1077   ac_cv_c_const=no
1078 fi
1079 rm -f conftest*
1080 fi
1081
1082 echo "$ac_t""$ac_cv_c_const" 1>&6
1083 if test $ac_cv_c_const = no; then
1084   cat >> confdefs.h <<\EOF
1085 #define const 
1086 EOF
1087
1088 fi
1089
1090 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1091 echo "configure:1092: checking whether byte ordering is bigendian" >&5
1092 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1093   echo $ac_n "(cached) $ac_c" 1>&6
1094 else
1095   ac_cv_c_bigendian=unknown
1096 # See if sys/param.h defines the BYTE_ORDER macro.
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1100 #include <sys/types.h>
1101 #include <sys/param.h>
1102 int main() {
1103
1104 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1105  bogus endian macros
1106 #endif
1107 ; return 0; }
1108 EOF
1109 if { (eval echo configure:1110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1110   rm -rf conftest*
1111   # It does; now see whether it defined to BIG_ENDIAN or not.
1112 cat > conftest.$ac_ext <<EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1115 #include <sys/types.h>
1116 #include <sys/param.h>
1117 int main() {
1118
1119 #if BYTE_ORDER != BIG_ENDIAN
1120  not big endian
1121 #endif
1122 ; return 0; }
1123 EOF
1124 if { (eval echo configure:1125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1125   rm -rf conftest*
1126   ac_cv_c_bigendian=yes
1127 else
1128   echo "configure: failed program was:" >&5
1129   cat conftest.$ac_ext >&5
1130   rm -rf conftest*
1131   ac_cv_c_bigendian=no
1132 fi
1133 rm -f conftest*
1134 else
1135   echo "configure: failed program was:" >&5
1136   cat conftest.$ac_ext >&5
1137 fi
1138 rm -f conftest*
1139 if test $ac_cv_c_bigendian = unknown; then
1140 if test "$cross_compiling" = yes; then
1141     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1142 else
1143   cat > conftest.$ac_ext <<EOF
1144 #line 1145 "configure"
1145 #include "confdefs.h"
1146 main () {
1147   /* Are we little or big endian?  From Harbison&Steele.  */
1148   union
1149   {
1150     long l;
1151     char c[sizeof (long)];
1152   } u;
1153   u.l = 1;
1154   exit (u.c[sizeof (long) - 1] == 1);
1155 }
1156 EOF
1157 if { (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1158 then
1159   ac_cv_c_bigendian=no
1160 else
1161   echo "configure: failed program was:" >&5
1162   cat conftest.$ac_ext >&5
1163   rm -fr conftest*
1164   ac_cv_c_bigendian=yes
1165 fi
1166 rm -fr conftest*
1167 fi
1168
1169 fi
1170 fi
1171
1172 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1173 if test $ac_cv_c_bigendian = yes; then
1174   cat >> confdefs.h <<\EOF
1175 #define WORDS_BIGENDIAN 1
1176 EOF
1177
1178 fi
1179
1180
1181 echo $ac_n "checking whether compiler accepts bswap x86 instruction""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether compiler accepts bswap x86 instruction" >&5
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1186 unsigned int foo( unsigned int x )
1187    { __asm__("bswap %0" : "=r" (x) : "0" (x)); return x; }
1188 int main() {
1189
1190 ; return 0; }
1191 EOF
1192 if { (eval echo configure:1193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1193   rm -rf conftest*
1194   cat >> confdefs.h <<\EOF
1195 #define HAVE_X86_BSWAP 1
1196 EOF
1197  echo "$ac_t""yes" 1>&6
1198 else
1199   echo "configure: failed program was:" >&5
1200   cat conftest.$ac_ext >&5
1201   rm -rf conftest*
1202   echo "$ac_t""no" 1>&6
1203 fi
1204 rm -f conftest*
1205
1206 for ac_func in gettimeofday select strerror strtod strtol
1207 do
1208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1209 echo "configure:1210: checking for $ac_func" >&5
1210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1211   echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213   cat > conftest.$ac_ext <<EOF
1214 #line 1215 "configure"
1215 #include "confdefs.h"
1216 /* System header to define __stub macros and hopefully few prototypes,
1217     which can conflict with char $ac_func(); below.  */
1218 #include <assert.h>
1219 /* Override any gcc2 internal prototype to avoid an error.  */
1220 /* We use char because int might match the return type of a gcc2
1221     builtin and then its argument prototype would still apply.  */
1222 char $ac_func();
1223
1224 int main() {
1225
1226 /* The GNU C library defines this for functions which it implements
1227     to always fail with ENOSYS.  Some functions are actually named
1228     something starting with __ and the normal name is an alias.  */
1229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1230 choke me
1231 #else
1232 $ac_func();
1233 #endif
1234
1235 ; return 0; }
1236 EOF
1237 if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1238   rm -rf conftest*
1239   eval "ac_cv_func_$ac_func=yes"
1240 else
1241   echo "configure: failed program was:" >&5
1242   cat conftest.$ac_ext >&5
1243   rm -rf conftest*
1244   eval "ac_cv_func_$ac_func=no"
1245 fi
1246 rm -f conftest*
1247 fi
1248
1249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1250   echo "$ac_t""yes" 1>&6
1251     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1252   cat >> confdefs.h <<EOF
1253 #define $ac_tr_func 1
1254 EOF
1255  
1256 else
1257   echo "$ac_t""no" 1>&6
1258 fi
1259 done
1260
1261 for ac_func in setenv putenv
1262 do
1263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1264 echo "configure:1265: checking for $ac_func" >&5
1265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1266   echo $ac_n "(cached) $ac_c" 1>&6
1267 else
1268   cat > conftest.$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1271 /* System header to define __stub macros and hopefully few prototypes,
1272     which can conflict with char $ac_func(); below.  */
1273 #include <assert.h>
1274 /* Override any gcc2 internal prototype to avoid an error.  */
1275 /* We use char because int might match the return type of a gcc2
1276     builtin and then its argument prototype would still apply.  */
1277 char $ac_func();
1278
1279 int main() {
1280
1281 /* The GNU C library defines this for functions which it implements
1282     to always fail with ENOSYS.  Some functions are actually named
1283     something starting with __ and the normal name is an alias.  */
1284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1285 choke me
1286 #else
1287 $ac_func();
1288 #endif
1289
1290 ; return 0; }
1291 EOF
1292 if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1293   rm -rf conftest*
1294   eval "ac_cv_func_$ac_func=yes"
1295 else
1296   echo "configure: failed program was:" >&5
1297   cat conftest.$ac_ext >&5
1298   rm -rf conftest*
1299   eval "ac_cv_func_$ac_func=no"
1300 fi
1301 rm -f conftest*
1302 fi
1303
1304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1305   echo "$ac_t""yes" 1>&6
1306     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1307   cat >> confdefs.h <<EOF
1308 #define $ac_tr_func 1
1309 EOF
1310  
1311 else
1312   echo "$ac_t""no" 1>&6
1313 fi
1314 done
1315
1316 echo $ac_n "checking for connect""... $ac_c" 1>&6
1317 echo "configure:1318: checking for connect" >&5
1318 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1319   echo $ac_n "(cached) $ac_c" 1>&6
1320 else
1321   cat > conftest.$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1324 /* System header to define __stub macros and hopefully few prototypes,
1325     which can conflict with char connect(); below.  */
1326 #include <assert.h>
1327 /* Override any gcc2 internal prototype to avoid an error.  */
1328 /* We use char because int might match the return type of a gcc2
1329     builtin and then its argument prototype would still apply.  */
1330 char connect();
1331
1332 int main() {
1333
1334 /* The GNU C library defines this for functions which it implements
1335     to always fail with ENOSYS.  Some functions are actually named
1336     something starting with __ and the normal name is an alias.  */
1337 #if defined (__stub_connect) || defined (__stub___connect)
1338 choke me
1339 #else
1340 connect();
1341 #endif
1342
1343 ; return 0; }
1344 EOF
1345 if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1346   rm -rf conftest*
1347   eval "ac_cv_func_connect=yes"
1348 else
1349   echo "configure: failed program was:" >&5
1350   cat conftest.$ac_ext >&5
1351   rm -rf conftest*
1352   eval "ac_cv_func_connect=no"
1353 fi
1354 rm -f conftest*
1355 fi
1356
1357 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1358   echo "$ac_t""yes" 1>&6
1359   :
1360 else
1361   echo "$ac_t""no" 1>&6
1362 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1363 echo "configure:1364: checking for connect in -lsocket" >&5
1364 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1366   echo $ac_n "(cached) $ac_c" 1>&6
1367 else
1368   ac_save_LIBS="$LIBS"
1369 LIBS="-lsocket  $LIBS"
1370 cat > conftest.$ac_ext <<EOF
1371 #line 1372 "configure"
1372 #include "confdefs.h"
1373 /* Override any gcc2 internal prototype to avoid an error.  */
1374 /* We use char because int might match the return type of a gcc2
1375     builtin and then its argument prototype would still apply.  */
1376 char connect();
1377
1378 int main() {
1379 connect()
1380 ; return 0; }
1381 EOF
1382 if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1383   rm -rf conftest*
1384   eval "ac_cv_lib_$ac_lib_var=yes"
1385 else
1386   echo "configure: failed program was:" >&5
1387   cat conftest.$ac_ext >&5
1388   rm -rf conftest*
1389   eval "ac_cv_lib_$ac_lib_var=no"
1390 fi
1391 rm -f conftest*
1392 LIBS="$ac_save_LIBS"
1393
1394 fi
1395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1396   echo "$ac_t""yes" 1>&6
1397     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1398     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1399   cat >> confdefs.h <<EOF
1400 #define $ac_tr_lib 1
1401 EOF
1402
1403   LIBS="-lsocket $LIBS"
1404
1405 else
1406   echo "$ac_t""no" 1>&6
1407 fi
1408
1409 fi
1410
1411 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1412 echo "configure:1413: checking for gethostbyname" >&5
1413 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1414   echo $ac_n "(cached) $ac_c" 1>&6
1415 else
1416   cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1419 /* System header to define __stub macros and hopefully few prototypes,
1420     which can conflict with char gethostbyname(); below.  */
1421 #include <assert.h>
1422 /* Override any gcc2 internal prototype to avoid an error.  */
1423 /* We use char because int might match the return type of a gcc2
1424     builtin and then its argument prototype would still apply.  */
1425 char gethostbyname();
1426
1427 int main() {
1428
1429 /* The GNU C library defines this for functions which it implements
1430     to always fail with ENOSYS.  Some functions are actually named
1431     something starting with __ and the normal name is an alias.  */
1432 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1433 choke me
1434 #else
1435 gethostbyname();
1436 #endif
1437
1438 ; return 0; }
1439 EOF
1440 if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1441   rm -rf conftest*
1442   eval "ac_cv_func_gethostbyname=yes"
1443 else
1444   echo "configure: failed program was:" >&5
1445   cat conftest.$ac_ext >&5
1446   rm -rf conftest*
1447   eval "ac_cv_func_gethostbyname=no"
1448 fi
1449 rm -f conftest*
1450 fi
1451
1452 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1453   echo "$ac_t""yes" 1>&6
1454   :
1455 else
1456   echo "$ac_t""no" 1>&6
1457 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1458 echo "configure:1459: checking for gethostbyname in -lnsl" >&5
1459 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1461   echo $ac_n "(cached) $ac_c" 1>&6
1462 else
1463   ac_save_LIBS="$LIBS"
1464 LIBS="-lnsl  $LIBS"
1465 cat > conftest.$ac_ext <<EOF
1466 #line 1467 "configure"
1467 #include "confdefs.h"
1468 /* Override any gcc2 internal prototype to avoid an error.  */
1469 /* We use char because int might match the return type of a gcc2
1470     builtin and then its argument prototype would still apply.  */
1471 char gethostbyname();
1472
1473 int main() {
1474 gethostbyname()
1475 ; return 0; }
1476 EOF
1477 if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1478   rm -rf conftest*
1479   eval "ac_cv_lib_$ac_lib_var=yes"
1480 else
1481   echo "configure: failed program was:" >&5
1482   cat conftest.$ac_ext >&5
1483   rm -rf conftest*
1484   eval "ac_cv_lib_$ac_lib_var=no"
1485 fi
1486 rm -f conftest*
1487 LIBS="$ac_save_LIBS"
1488
1489 fi
1490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1491   echo "$ac_t""yes" 1>&6
1492     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1493     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1494   cat >> confdefs.h <<EOF
1495 #define $ac_tr_lib 1
1496 EOF
1497
1498   LIBS="-lnsl $LIBS"
1499
1500 else
1501   echo "$ac_t""no" 1>&6
1502 fi
1503
1504 fi
1505
1506 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1507 echo "configure:1508: checking for nanosleep" >&5
1508 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1509   echo $ac_n "(cached) $ac_c" 1>&6
1510 else
1511   cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 /* System header to define __stub macros and hopefully few prototypes,
1515     which can conflict with char nanosleep(); below.  */
1516 #include <assert.h>
1517 /* Override any gcc2 internal prototype to avoid an error.  */
1518 /* We use char because int might match the return type of a gcc2
1519     builtin and then its argument prototype would still apply.  */
1520 char nanosleep();
1521
1522 int main() {
1523
1524 /* The GNU C library defines this for functions which it implements
1525     to always fail with ENOSYS.  Some functions are actually named
1526     something starting with __ and the normal name is an alias.  */
1527 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1528 choke me
1529 #else
1530 nanosleep();
1531 #endif
1532
1533 ; return 0; }
1534 EOF
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1536   rm -rf conftest*
1537   eval "ac_cv_func_nanosleep=yes"
1538 else
1539   echo "configure: failed program was:" >&5
1540   cat conftest.$ac_ext >&5
1541   rm -rf conftest*
1542   eval "ac_cv_func_nanosleep=no"
1543 fi
1544 rm -f conftest*
1545 fi
1546
1547 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1548   echo "$ac_t""yes" 1>&6
1549   :
1550 else
1551   echo "$ac_t""no" 1>&6
1552 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1553 echo "configure:1554: checking for nanosleep in -lrt" >&5
1554 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1556   echo $ac_n "(cached) $ac_c" 1>&6
1557 else
1558   ac_save_LIBS="$LIBS"
1559 LIBS="-lrt  $LIBS"
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1563 /* Override any gcc2 internal prototype to avoid an error.  */
1564 /* We use char because int might match the return type of a gcc2
1565     builtin and then its argument prototype would still apply.  */
1566 char nanosleep();
1567
1568 int main() {
1569 nanosleep()
1570 ; return 0; }
1571 EOF
1572 if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1573   rm -rf conftest*
1574   eval "ac_cv_lib_$ac_lib_var=yes"
1575 else
1576   echo "configure: failed program was:" >&5
1577   cat conftest.$ac_ext >&5
1578   rm -rf conftest*
1579   eval "ac_cv_lib_$ac_lib_var=no"
1580 fi
1581 rm -f conftest*
1582 LIBS="$ac_save_LIBS"
1583
1584 fi
1585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1586   echo "$ac_t""yes" 1>&6
1587     ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1588     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1589   cat >> confdefs.h <<EOF
1590 #define $ac_tr_lib 1
1591 EOF
1592
1593   LIBS="-lrt $LIBS"
1594
1595 else
1596   echo "$ac_t""no" 1>&6
1597 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1598 echo "configure:1599: checking for nanosleep in -lposix4" >&5
1599 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1601   echo $ac_n "(cached) $ac_c" 1>&6
1602 else
1603   ac_save_LIBS="$LIBS"
1604 LIBS="-lposix4  $LIBS"
1605 cat > conftest.$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1608 /* Override any gcc2 internal prototype to avoid an error.  */
1609 /* We use char because int might match the return type of a gcc2
1610     builtin and then its argument prototype would still apply.  */
1611 char nanosleep();
1612
1613 int main() {
1614 nanosleep()
1615 ; return 0; }
1616 EOF
1617 if { (eval echo configure:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1618   rm -rf conftest*
1619   eval "ac_cv_lib_$ac_lib_var=yes"
1620 else
1621   echo "configure: failed program was:" >&5
1622   cat conftest.$ac_ext >&5
1623   rm -rf conftest*
1624   eval "ac_cv_lib_$ac_lib_var=no"
1625 fi
1626 rm -f conftest*
1627 LIBS="$ac_save_LIBS"
1628
1629 fi
1630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1631   echo "$ac_t""yes" 1>&6
1632     ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1633     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1634   cat >> confdefs.h <<EOF
1635 #define $ac_tr_lib 1
1636 EOF
1637
1638   LIBS="-lposix4 $LIBS"
1639
1640 else
1641   echo "$ac_t""no" 1>&6
1642 fi
1643
1644 fi
1645
1646 fi
1647
1648 for ac_func in usleep
1649 do
1650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1651 echo "configure:1652: checking for $ac_func" >&5
1652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1653   echo $ac_n "(cached) $ac_c" 1>&6
1654 else
1655   cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* System header to define __stub macros and hopefully few prototypes,
1659     which can conflict with char $ac_func(); below.  */
1660 #include <assert.h>
1661 /* Override any gcc2 internal prototype to avoid an error.  */
1662 /* We use char because int might match the return type of a gcc2
1663     builtin and then its argument prototype would still apply.  */
1664 char $ac_func();
1665
1666 int main() {
1667
1668 /* The GNU C library defines this for functions which it implements
1669     to always fail with ENOSYS.  Some functions are actually named
1670     something starting with __ and the normal name is an alias.  */
1671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1672 choke me
1673 #else
1674 $ac_func();
1675 #endif
1676
1677 ; return 0; }
1678 EOF
1679 if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1680   rm -rf conftest*
1681   eval "ac_cv_func_$ac_func=yes"
1682 else
1683   echo "configure: failed program was:" >&5
1684   cat conftest.$ac_ext >&5
1685   rm -rf conftest*
1686   eval "ac_cv_func_$ac_func=no"
1687 fi
1688 rm -f conftest*
1689 fi
1690
1691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1692   echo "$ac_t""yes" 1>&6
1693     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1694   cat >> confdefs.h <<EOF
1695 #define $ac_tr_func 1
1696 EOF
1697  
1698 else
1699   echo "$ac_t""no" 1>&6
1700 fi
1701 done
1702
1703 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1704 echo "configure:1705: checking for inet_aton" >&5
1705 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1706   echo $ac_n "(cached) $ac_c" 1>&6
1707 else
1708   cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1711 /* System header to define __stub macros and hopefully few prototypes,
1712     which can conflict with char inet_aton(); below.  */
1713 #include <assert.h>
1714 /* Override any gcc2 internal prototype to avoid an error.  */
1715 /* We use char because int might match the return type of a gcc2
1716     builtin and then its argument prototype would still apply.  */
1717 char inet_aton();
1718
1719 int main() {
1720
1721 /* The GNU C library defines this for functions which it implements
1722     to always fail with ENOSYS.  Some functions are actually named
1723     something starting with __ and the normal name is an alias.  */
1724 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1725 choke me
1726 #else
1727 inet_aton();
1728 #endif
1729
1730 ; return 0; }
1731 EOF
1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1733   rm -rf conftest*
1734   eval "ac_cv_func_inet_aton=yes"
1735 else
1736   echo "configure: failed program was:" >&5
1737   cat conftest.$ac_ext >&5
1738   rm -rf conftest*
1739   eval "ac_cv_func_inet_aton=no"
1740 fi
1741 rm -f conftest*
1742 fi
1743
1744 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1745   echo "$ac_t""yes" 1>&6
1746   :
1747 else
1748   echo "$ac_t""no" 1>&6
1749 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1750 echo "configure:1751: checking for inet_aton in -lresolv" >&5
1751 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1753   echo $ac_n "(cached) $ac_c" 1>&6
1754 else
1755   ac_save_LIBS="$LIBS"
1756 LIBS="-lresolv  $LIBS"
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1760 /* Override any gcc2 internal prototype to avoid an error.  */
1761 /* We use char because int might match the return type of a gcc2
1762     builtin and then its argument prototype would still apply.  */
1763 char inet_aton();
1764
1765 int main() {
1766 inet_aton()
1767 ; return 0; }
1768 EOF
1769 if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1770   rm -rf conftest*
1771   eval "ac_cv_lib_$ac_lib_var=yes"
1772 else
1773   echo "configure: failed program was:" >&5
1774   cat conftest.$ac_ext >&5
1775   rm -rf conftest*
1776   eval "ac_cv_lib_$ac_lib_var=no"
1777 fi
1778 rm -f conftest*
1779 LIBS="$ac_save_LIBS"
1780
1781 fi
1782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1783   echo "$ac_t""yes" 1>&6
1784     ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1785     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1786   cat >> confdefs.h <<EOF
1787 #define $ac_tr_lib 1
1788 EOF
1789
1790   LIBS="-lresolv $LIBS"
1791
1792 else
1793   echo "$ac_t""no" 1>&6
1794 fi
1795
1796 fi
1797
1798 for ac_func in vasprintf
1799 do
1800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1801 echo "configure:1802: checking for $ac_func" >&5
1802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1803   echo $ac_n "(cached) $ac_c" 1>&6
1804 else
1805   cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 /* System header to define __stub macros and hopefully few prototypes,
1809     which can conflict with char $ac_func(); below.  */
1810 #include <assert.h>
1811 /* Override any gcc2 internal prototype to avoid an error.  */
1812 /* We use char because int might match the return type of a gcc2
1813     builtin and then its argument prototype would still apply.  */
1814 char $ac_func();
1815
1816 int main() {
1817
1818 /* The GNU C library defines this for functions which it implements
1819     to always fail with ENOSYS.  Some functions are actually named
1820     something starting with __ and the normal name is an alias.  */
1821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1822 choke me
1823 #else
1824 $ac_func();
1825 #endif
1826
1827 ; return 0; }
1828 EOF
1829 if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1830   rm -rf conftest*
1831   eval "ac_cv_func_$ac_func=yes"
1832 else
1833   echo "configure: failed program was:" >&5
1834   cat conftest.$ac_ext >&5
1835   rm -rf conftest*
1836   eval "ac_cv_func_$ac_func=no"
1837 fi
1838 rm -f conftest*
1839 fi
1840
1841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1842   echo "$ac_t""yes" 1>&6
1843     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1844   cat >> confdefs.h <<EOF
1845 #define $ac_tr_func 1
1846 EOF
1847  
1848 else
1849   echo "$ac_t""no" 1>&6
1850 fi
1851 done
1852
1853 for ac_hdr in unistd.h
1854 do
1855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_hdr" >&5
1858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1859   echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861   cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 #include <$ac_hdr>
1865 EOF
1866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1869 if test -z "$ac_err"; then
1870   rm -rf conftest*
1871   eval "ac_cv_header_$ac_safe=yes"
1872 else
1873   echo "$ac_err" >&5
1874   echo "configure: failed program was:" >&5
1875   cat conftest.$ac_ext >&5
1876   rm -rf conftest*
1877   eval "ac_cv_header_$ac_safe=no"
1878 fi
1879 rm -f conftest*
1880 fi
1881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1882   echo "$ac_t""yes" 1>&6
1883     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1884   cat >> confdefs.h <<EOF
1885 #define $ac_tr_hdr 1
1886 EOF
1887  
1888 else
1889   echo "$ac_t""no" 1>&6
1890 fi
1891 done
1892
1893 for ac_func in getpagesize
1894 do
1895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $ac_func" >&5
1897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1898   echo $ac_n "(cached) $ac_c" 1>&6
1899 else
1900   cat > conftest.$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1903 /* System header to define __stub macros and hopefully few prototypes,
1904     which can conflict with char $ac_func(); below.  */
1905 #include <assert.h>
1906 /* Override any gcc2 internal prototype to avoid an error.  */
1907 /* We use char because int might match the return type of a gcc2
1908     builtin and then its argument prototype would still apply.  */
1909 char $ac_func();
1910
1911 int main() {
1912
1913 /* The GNU C library defines this for functions which it implements
1914     to always fail with ENOSYS.  Some functions are actually named
1915     something starting with __ and the normal name is an alias.  */
1916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1917 choke me
1918 #else
1919 $ac_func();
1920 #endif
1921
1922 ; return 0; }
1923 EOF
1924 if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1925   rm -rf conftest*
1926   eval "ac_cv_func_$ac_func=yes"
1927 else
1928   echo "configure: failed program was:" >&5
1929   cat conftest.$ac_ext >&5
1930   rm -rf conftest*
1931   eval "ac_cv_func_$ac_func=no"
1932 fi
1933 rm -f conftest*
1934 fi
1935
1936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1937   echo "$ac_t""yes" 1>&6
1938     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1939   cat >> confdefs.h <<EOF
1940 #define $ac_tr_func 1
1941 EOF
1942  
1943 else
1944   echo "$ac_t""no" 1>&6
1945 fi
1946 done
1947
1948 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1949 echo "configure:1950: checking for working mmap" >&5
1950 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1951   echo $ac_n "(cached) $ac_c" 1>&6
1952 else
1953   if test "$cross_compiling" = yes; then
1954   ac_cv_func_mmap_fixed_mapped=no
1955 else
1956   cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1959
1960 /* Thanks to Mike Haertel and Jim Avera for this test.
1961    Here is a matrix of mmap possibilities:
1962         mmap private not fixed
1963         mmap private fixed at somewhere currently unmapped
1964         mmap private fixed at somewhere already mapped
1965         mmap shared not fixed
1966         mmap shared fixed at somewhere currently unmapped
1967         mmap shared fixed at somewhere already mapped
1968    For private mappings, we should verify that changes cannot be read()
1969    back from the file, nor mmap's back from the file at a different
1970    address.  (There have been systems where private was not correctly
1971    implemented like the infamous i386 svr4.0, and systems where the
1972    VM page cache was not coherent with the filesystem buffer cache
1973    like early versions of FreeBSD and possibly contemporary NetBSD.)
1974    For shared mappings, we should conversely verify that changes get
1975    propogated back to all the places they're supposed to be.
1976
1977    Grep wants private fixed already mapped.
1978    The main things grep needs to know about mmap are:
1979    * does it exist and is it safe to write into the mmap'd area
1980    * how to use it (BSD variants)  */
1981 #include <sys/types.h>
1982 #include <fcntl.h>
1983 #include <sys/mman.h>
1984
1985 /* This mess was copied from the GNU getpagesize.h.  */
1986 #ifndef HAVE_GETPAGESIZE
1987 # ifdef HAVE_UNISTD_H
1988 #  include <unistd.h>
1989 # endif
1990
1991 /* Assume that all systems that can run configure have sys/param.h.  */
1992 # ifndef HAVE_SYS_PARAM_H
1993 #  define HAVE_SYS_PARAM_H 1
1994 # endif
1995
1996 # ifdef _SC_PAGESIZE
1997 #  define getpagesize() sysconf(_SC_PAGESIZE)
1998 # else /* no _SC_PAGESIZE */
1999 #  ifdef HAVE_SYS_PARAM_H
2000 #   include <sys/param.h>
2001 #   ifdef EXEC_PAGESIZE
2002 #    define getpagesize() EXEC_PAGESIZE
2003 #   else /* no EXEC_PAGESIZE */
2004 #    ifdef NBPG
2005 #     define getpagesize() NBPG * CLSIZE
2006 #     ifndef CLSIZE
2007 #      define CLSIZE 1
2008 #     endif /* no CLSIZE */
2009 #    else /* no NBPG */
2010 #     ifdef NBPC
2011 #      define getpagesize() NBPC
2012 #     else /* no NBPC */
2013 #      ifdef PAGESIZE
2014 #       define getpagesize() PAGESIZE
2015 #      endif /* PAGESIZE */
2016 #     endif /* no NBPC */
2017 #    endif /* no NBPG */
2018 #   endif /* no EXEC_PAGESIZE */
2019 #  else /* no HAVE_SYS_PARAM_H */
2020 #   define getpagesize() 8192   /* punt totally */
2021 #  endif /* no HAVE_SYS_PARAM_H */
2022 # endif /* no _SC_PAGESIZE */
2023
2024 #endif /* no HAVE_GETPAGESIZE */
2025
2026 #ifdef __cplusplus
2027 extern "C" { void *malloc(unsigned); }
2028 #else
2029 char *malloc();
2030 #endif
2031
2032 int
2033 main()
2034 {
2035         char *data, *data2, *data3;
2036         int i, pagesize;
2037         int fd;
2038
2039         pagesize = getpagesize();
2040
2041         /*
2042          * First, make a file with some known garbage in it.
2043          */
2044         data = malloc(pagesize);
2045         if (!data)
2046                 exit(1);
2047         for (i = 0; i < pagesize; ++i)
2048                 *(data + i) = rand();
2049         umask(0);
2050         fd = creat("conftestmmap", 0600);
2051         if (fd < 0)
2052                 exit(1);
2053         if (write(fd, data, pagesize) != pagesize)
2054                 exit(1);
2055         close(fd);
2056
2057         /*
2058          * Next, try to mmap the file at a fixed address which
2059          * already has something else allocated at it.  If we can,
2060          * also make sure that we see the same garbage.
2061          */
2062         fd = open("conftestmmap", O_RDWR);
2063         if (fd < 0)
2064                 exit(1);
2065         data2 = malloc(2 * pagesize);
2066         if (!data2)
2067                 exit(1);
2068         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2069         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2070             MAP_PRIVATE | MAP_FIXED, fd, 0L))
2071                 exit(1);
2072         for (i = 0; i < pagesize; ++i)
2073                 if (*(data + i) != *(data2 + i))
2074                         exit(1);
2075
2076         /*
2077          * Finally, make sure that changes to the mapped area
2078          * do not percolate back to the file as seen by read().
2079          * (This is a bug on some variants of i386 svr4.0.)
2080          */
2081         for (i = 0; i < pagesize; ++i)
2082                 *(data2 + i) = *(data2 + i) + 1;
2083         data3 = malloc(pagesize);
2084         if (!data3)
2085                 exit(1);
2086         if (read(fd, data3, pagesize) != pagesize)
2087                 exit(1);
2088         for (i = 0; i < pagesize; ++i)
2089                 if (*(data + i) != *(data3 + i))
2090                         exit(1);
2091         close(fd);
2092         unlink("conftestmmap");
2093         exit(0);
2094 }
2095
2096 EOF
2097 if { (eval echo configure:2098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2098 then
2099   ac_cv_func_mmap_fixed_mapped=yes
2100 else
2101   echo "configure: failed program was:" >&5
2102   cat conftest.$ac_ext >&5
2103   rm -fr conftest*
2104   ac_cv_func_mmap_fixed_mapped=no
2105 fi
2106 rm -fr conftest*
2107 fi
2108
2109 fi
2110
2111 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2112 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2113   cat >> confdefs.h <<\EOF
2114 #define HAVE_MMAP 1
2115 EOF
2116
2117 fi
2118
2119 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2120 echo "configure:2121: checking return type of signal handlers" >&5
2121 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2122   echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124   cat > conftest.$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2127 #include <sys/types.h>
2128 #include <signal.h>
2129 #ifdef signal
2130 #undef signal
2131 #endif
2132 #ifdef __cplusplus
2133 extern "C" void (*signal (int, void (*)(int)))(int);
2134 #else
2135 void (*signal ()) ();
2136 #endif
2137
2138 int main() {
2139 int i;
2140 ; return 0; }
2141 EOF
2142 if { (eval echo configure:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2143   rm -rf conftest*
2144   ac_cv_type_signal=void
2145 else
2146   echo "configure: failed program was:" >&5
2147   cat conftest.$ac_ext >&5
2148   rm -rf conftest*
2149   ac_cv_type_signal=int
2150 fi
2151 rm -f conftest*
2152 fi
2153
2154 echo "$ac_t""$ac_cv_type_signal" 1>&6
2155 cat >> confdefs.h <<EOF
2156 #define RETSIGTYPE $ac_cv_type_signal
2157 EOF
2158
2159
2160 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2161 echo "configure:2162: checking for dlopen in -ldl" >&5
2162 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2164   echo $ac_n "(cached) $ac_c" 1>&6
2165 else
2166   ac_save_LIBS="$LIBS"
2167 LIBS="-ldl  $LIBS"
2168 cat > conftest.$ac_ext <<EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2171 /* Override any gcc2 internal prototype to avoid an error.  */
2172 /* We use char because int might match the return type of a gcc2
2173     builtin and then its argument prototype would still apply.  */
2174 char dlopen();
2175
2176 int main() {
2177 dlopen()
2178 ; return 0; }
2179 EOF
2180 if { (eval echo configure:2181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2181   rm -rf conftest*
2182   eval "ac_cv_lib_$ac_lib_var=yes"
2183 else
2184   echo "configure: failed program was:" >&5
2185   cat conftest.$ac_ext >&5
2186   rm -rf conftest*
2187   eval "ac_cv_lib_$ac_lib_var=no"
2188 fi
2189 rm -f conftest*
2190 LIBS="$ac_save_LIBS"
2191
2192 fi
2193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2194   echo "$ac_t""yes" 1>&6
2195     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2196     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2197   cat >> confdefs.h <<EOF
2198 #define $ac_tr_lib 1
2199 EOF
2200
2201   LIBS="-ldl $LIBS"
2202
2203 else
2204   echo "$ac_t""no" 1>&6
2205 fi
2206
2207 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2208 echo "configure:2209: checking for optarg in -lgnugetopt" >&5
2209 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2211   echo $ac_n "(cached) $ac_c" 1>&6
2212 else
2213   ac_save_LIBS="$LIBS"
2214 LIBS="-lgnugetopt  $LIBS"
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 /* Override any gcc2 internal prototype to avoid an error.  */
2219 /* We use char because int might match the return type of a gcc2
2220     builtin and then its argument prototype would still apply.  */
2221 char optarg();
2222
2223 int main() {
2224 optarg()
2225 ; return 0; }
2226 EOF
2227 if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2228   rm -rf conftest*
2229   eval "ac_cv_lib_$ac_lib_var=yes"
2230 else
2231   echo "configure: failed program was:" >&5
2232   cat conftest.$ac_ext >&5
2233   rm -rf conftest*
2234   eval "ac_cv_lib_$ac_lib_var=no"
2235 fi
2236 rm -f conftest*
2237 LIBS="$ac_save_LIBS"
2238
2239 fi
2240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2241   echo "$ac_t""yes" 1>&6
2242     ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2243     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2244   cat >> confdefs.h <<EOF
2245 #define $ac_tr_lib 1
2246 EOF
2247
2248   LIBS="-lgnugetopt $LIBS"
2249
2250 else
2251   echo "$ac_t""no" 1>&6
2252 fi
2253
2254 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2255 echo "configure:2256: checking for _ in -lbe" >&5
2256 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2258   echo $ac_n "(cached) $ac_c" 1>&6
2259 else
2260   ac_save_LIBS="$LIBS"
2261 LIBS="-lbe  $LIBS"
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 /* Override any gcc2 internal prototype to avoid an error.  */
2266 /* We use char because int might match the return type of a gcc2
2267     builtin and then its argument prototype would still apply.  */
2268 char _();
2269
2270 int main() {
2271 _()
2272 ; return 0; }
2273 EOF
2274 if { (eval echo configure:2275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2275   rm -rf conftest*
2276   eval "ac_cv_lib_$ac_lib_var=yes"
2277 else
2278   echo "configure: failed program was:" >&5
2279   cat conftest.$ac_ext >&5
2280   rm -rf conftest*
2281   eval "ac_cv_lib_$ac_lib_var=no"
2282 fi
2283 rm -f conftest*
2284 LIBS="$ac_save_LIBS"
2285
2286 fi
2287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2288   echo "$ac_t""yes" 1>&6
2289     ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2290     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2291   cat >> confdefs.h <<EOF
2292 #define $ac_tr_lib 1
2293 EOF
2294
2295   LIBS="-lbe $LIBS"
2296
2297 else
2298   echo "$ac_t""no" 1>&6
2299 fi
2300
2301 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2302 echo "configure:2303: checking for _ in -lgame" >&5
2303 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2305   echo $ac_n "(cached) $ac_c" 1>&6
2306 else
2307   ac_save_LIBS="$LIBS"
2308 LIBS="-lgame  $LIBS"
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 /* Override any gcc2 internal prototype to avoid an error.  */
2313 /* We use char because int might match the return type of a gcc2
2314     builtin and then its argument prototype would still apply.  */
2315 char _();
2316
2317 int main() {
2318 _()
2319 ; return 0; }
2320 EOF
2321 if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2322   rm -rf conftest*
2323   eval "ac_cv_lib_$ac_lib_var=yes"
2324 else
2325   echo "configure: failed program was:" >&5
2326   cat conftest.$ac_ext >&5
2327   rm -rf conftest*
2328   eval "ac_cv_lib_$ac_lib_var=no"
2329 fi
2330 rm -f conftest*
2331 LIBS="$ac_save_LIBS"
2332
2333 fi
2334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2335   echo "$ac_t""yes" 1>&6
2336     ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2337     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2338   cat >> confdefs.h <<EOF
2339 #define $ac_tr_lib 1
2340 EOF
2341
2342   LIBS="-lgame $LIBS"
2343
2344 else
2345   echo "$ac_t""no" 1>&6
2346 fi
2347
2348 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2349 echo "configure:2350: checking for _ in -lroot" >&5
2350 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2352   echo $ac_n "(cached) $ac_c" 1>&6
2353 else
2354   ac_save_LIBS="$LIBS"
2355 LIBS="-lroot  $LIBS"
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 /* Override any gcc2 internal prototype to avoid an error.  */
2360 /* We use char because int might match the return type of a gcc2
2361     builtin and then its argument prototype would still apply.  */
2362 char _();
2363
2364 int main() {
2365 _()
2366 ; return 0; }
2367 EOF
2368 if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2369   rm -rf conftest*
2370   eval "ac_cv_lib_$ac_lib_var=yes"
2371 else
2372   echo "configure: failed program was:" >&5
2373   cat conftest.$ac_ext >&5
2374   rm -rf conftest*
2375   eval "ac_cv_lib_$ac_lib_var=no"
2376 fi
2377 rm -f conftest*
2378 LIBS="$ac_save_LIBS"
2379
2380 fi
2381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2382   echo "$ac_t""yes" 1>&6
2383     ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2384     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2385   cat >> confdefs.h <<EOF
2386 #define $ac_tr_lib 1
2387 EOF
2388
2389   LIBS="-lroot $LIBS"
2390
2391 else
2392   echo "$ac_t""no" 1>&6
2393 fi
2394
2395 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2396 echo "configure:2397: checking for powl in -lm" >&5
2397 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2399   echo $ac_n "(cached) $ac_c" 1>&6
2400 else
2401   ac_save_LIBS="$LIBS"
2402 LIBS="-lm  $LIBS"
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 /* Override any gcc2 internal prototype to avoid an error.  */
2407 /* We use char because int might match the return type of a gcc2
2408     builtin and then its argument prototype would still apply.  */
2409 char powl();
2410
2411 int main() {
2412 powl()
2413 ; return 0; }
2414 EOF
2415 if { (eval echo configure:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2416   rm -rf conftest*
2417   eval "ac_cv_lib_$ac_lib_var=yes"
2418 else
2419   echo "configure: failed program was:" >&5
2420   cat conftest.$ac_ext >&5
2421   rm -rf conftest*
2422   eval "ac_cv_lib_$ac_lib_var=no"
2423 fi
2424 rm -f conftest*
2425 LIBS="$ac_save_LIBS"
2426
2427 fi
2428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2429   echo "$ac_t""yes" 1>&6
2430     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2431     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2432   cat >> confdefs.h <<EOF
2433 #define $ac_tr_lib 1
2434 EOF
2435
2436   LIBS="-lm $LIBS"
2437
2438 else
2439   echo "$ac_t""no" 1>&6
2440 fi
2441
2442 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2443 echo "configure:2444: checking for pthread_create in -lpthread" >&5
2444 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2446   echo $ac_n "(cached) $ac_c" 1>&6
2447 else
2448   ac_save_LIBS="$LIBS"
2449 LIBS="-lpthread  $LIBS"
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 /* Override any gcc2 internal prototype to avoid an error.  */
2454 /* We use char because int might match the return type of a gcc2
2455     builtin and then its argument prototype would still apply.  */
2456 char pthread_create();
2457
2458 int main() {
2459 pthread_create()
2460 ; return 0; }
2461 EOF
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2463   rm -rf conftest*
2464   eval "ac_cv_lib_$ac_lib_var=yes"
2465 else
2466   echo "configure: failed program was:" >&5
2467   cat conftest.$ac_ext >&5
2468   rm -rf conftest*
2469   eval "ac_cv_lib_$ac_lib_var=no"
2470 fi
2471 rm -f conftest*
2472 LIBS="$ac_save_LIBS"
2473
2474 fi
2475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2476   echo "$ac_t""yes" 1>&6
2477     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2478     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2479   cat >> confdefs.h <<EOF
2480 #define $ac_tr_lib 1
2481 EOF
2482
2483   LIBS="-lpthread $LIBS"
2484
2485 else
2486   echo "$ac_t""no" 1>&6
2487 fi
2488
2489 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2490 echo "configure:2491: checking for thread_create in -lthreads" >&5
2491 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2493   echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2495   ac_save_LIBS="$LIBS"
2496 LIBS="-lthreads  $LIBS"
2497 cat > conftest.$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2500 /* Override any gcc2 internal prototype to avoid an error.  */
2501 /* We use char because int might match the return type of a gcc2
2502     builtin and then its argument prototype would still apply.  */
2503 char thread_create();
2504
2505 int main() {
2506 thread_create()
2507 ; return 0; }
2508 EOF
2509 if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2510   rm -rf conftest*
2511   eval "ac_cv_lib_$ac_lib_var=yes"
2512 else
2513   echo "configure: failed program was:" >&5
2514   cat conftest.$ac_ext >&5
2515   rm -rf conftest*
2516   eval "ac_cv_lib_$ac_lib_var=no"
2517 fi
2518 rm -f conftest*
2519 LIBS="$ac_save_LIBS"
2520
2521 fi
2522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2523   echo "$ac_t""yes" 1>&6
2524     ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2525     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2526   cat >> confdefs.h <<EOF
2527 #define $ac_tr_lib 1
2528 EOF
2529
2530   LIBS="-lthreads $LIBS"
2531
2532 else
2533   echo "$ac_t""no" 1>&6
2534 fi
2535
2536
2537 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2538 echo "configure:2539: checking for getopt_long" >&5
2539 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2540   echo $ac_n "(cached) $ac_c" 1>&6
2541 else
2542   cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 /* System header to define __stub macros and hopefully few prototypes,
2546     which can conflict with char getopt_long(); below.  */
2547 #include <assert.h>
2548 /* Override any gcc2 internal prototype to avoid an error.  */
2549 /* We use char because int might match the return type of a gcc2
2550     builtin and then its argument prototype would still apply.  */
2551 char getopt_long();
2552
2553 int main() {
2554
2555 /* The GNU C library defines this for functions which it implements
2556     to always fail with ENOSYS.  Some functions are actually named
2557     something starting with __ and the normal name is an alias.  */
2558 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2559 choke me
2560 #else
2561 getopt_long();
2562 #endif
2563
2564 ; return 0; }
2565 EOF
2566 if { (eval echo configure:2567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2567   rm -rf conftest*
2568   eval "ac_cv_func_getopt_long=yes"
2569 else
2570   echo "configure: failed program was:" >&5
2571   cat conftest.$ac_ext >&5
2572   rm -rf conftest*
2573   eval "ac_cv_func_getopt_long=no"
2574 fi
2575 rm -f conftest*
2576 fi
2577
2578 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2579   echo "$ac_t""yes" 1>&6
2580   :
2581 else
2582   echo "$ac_t""no" 1>&6
2583 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2584 fi
2585
2586
2587
2588 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2589 for ac_hdr in stddef.h
2590 do
2591 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2593 echo "configure:2594: checking for $ac_hdr" >&5
2594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2595   echo $ac_n "(cached) $ac_c" 1>&6
2596 else
2597   cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 #include <$ac_hdr>
2601 EOF
2602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2603 { (eval echo configure:2604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2605 if test -z "$ac_err"; then
2606   rm -rf conftest*
2607   eval "ac_cv_header_$ac_safe=yes"
2608 else
2609   echo "$ac_err" >&5
2610   echo "configure: failed program was:" >&5
2611   cat conftest.$ac_ext >&5
2612   rm -rf conftest*
2613   eval "ac_cv_header_$ac_safe=no"
2614 fi
2615 rm -f conftest*
2616 fi
2617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2618   echo "$ac_t""yes" 1>&6
2619     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2620   cat >> confdefs.h <<EOF
2621 #define $ac_tr_hdr 1
2622 EOF
2623  
2624 else
2625   echo "$ac_t""no" 1>&6
2626 fi
2627 done
2628
2629 for ac_hdr in getopt.h
2630 do
2631 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2633 echo "configure:2634: checking for $ac_hdr" >&5
2634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2635   echo $ac_n "(cached) $ac_c" 1>&6
2636 else
2637   cat > conftest.$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2640 #include <$ac_hdr>
2641 EOF
2642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2643 { (eval echo configure:2644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2645 if test -z "$ac_err"; then
2646   rm -rf conftest*
2647   eval "ac_cv_header_$ac_safe=yes"
2648 else
2649   echo "$ac_err" >&5
2650   echo "configure: failed program was:" >&5
2651   cat conftest.$ac_ext >&5
2652   rm -rf conftest*
2653   eval "ac_cv_header_$ac_safe=no"
2654 fi
2655 rm -f conftest*
2656 fi
2657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2658   echo "$ac_t""yes" 1>&6
2659     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2660   cat >> confdefs.h <<EOF
2661 #define $ac_tr_hdr 1
2662 EOF
2663  
2664 else
2665   echo "$ac_t""no" 1>&6
2666 fi
2667 done
2668
2669 for ac_hdr in sys/sockio.h
2670 do
2671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2673 echo "configure:2674: checking for $ac_hdr" >&5
2674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2675   echo $ac_n "(cached) $ac_c" 1>&6
2676 else
2677   cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <$ac_hdr>
2681 EOF
2682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2683 { (eval echo configure:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2685 if test -z "$ac_err"; then
2686   rm -rf conftest*
2687   eval "ac_cv_header_$ac_safe=yes"
2688 else
2689   echo "$ac_err" >&5
2690   echo "configure: failed program was:" >&5
2691   cat conftest.$ac_ext >&5
2692   rm -rf conftest*
2693   eval "ac_cv_header_$ac_safe=no"
2694 fi
2695 rm -f conftest*
2696 fi
2697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2698   echo "$ac_t""yes" 1>&6
2699     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2700   cat >> confdefs.h <<EOF
2701 #define $ac_tr_hdr 1
2702 EOF
2703  
2704 else
2705   echo "$ac_t""no" 1>&6
2706 fi
2707 done
2708
2709 for ac_hdr in fcntl.h sys/time.h unistd.h
2710 do
2711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2713 echo "configure:2714: checking for $ac_hdr" >&5
2714 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2715   echo $ac_n "(cached) $ac_c" 1>&6
2716 else
2717   cat > conftest.$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2720 #include <$ac_hdr>
2721 EOF
2722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2723 { (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2725 if test -z "$ac_err"; then
2726   rm -rf conftest*
2727   eval "ac_cv_header_$ac_safe=yes"
2728 else
2729   echo "$ac_err" >&5
2730   echo "configure: failed program was:" >&5
2731   cat conftest.$ac_ext >&5
2732   rm -rf conftest*
2733   eval "ac_cv_header_$ac_safe=no"
2734 fi
2735 rm -f conftest*
2736 fi
2737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2738   echo "$ac_t""yes" 1>&6
2739     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2740   cat >> confdefs.h <<EOF
2741 #define $ac_tr_hdr 1
2742 EOF
2743  
2744 else
2745   echo "$ac_t""no" 1>&6
2746 fi
2747 done
2748
2749 for ac_hdr in sys/soundcard.h machine/soundcard.h
2750 do
2751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_hdr" >&5
2754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2755   echo $ac_n "(cached) $ac_c" 1>&6
2756 else
2757   cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2760 #include <$ac_hdr>
2761 EOF
2762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2763 { (eval echo configure:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2765 if test -z "$ac_err"; then
2766   rm -rf conftest*
2767   eval "ac_cv_header_$ac_safe=yes"
2768 else
2769   echo "$ac_err" >&5
2770   echo "configure: failed program was:" >&5
2771   cat conftest.$ac_ext >&5
2772   rm -rf conftest*
2773   eval "ac_cv_header_$ac_safe=no"
2774 fi
2775 rm -f conftest*
2776 fi
2777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2778   echo "$ac_t""yes" 1>&6
2779     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2780   cat >> confdefs.h <<EOF
2781 #define $ac_tr_hdr 1
2782 EOF
2783  
2784 else
2785   echo "$ac_t""no" 1>&6
2786 fi
2787 done
2788
2789 for ac_hdr in dlfcn.h image.h
2790 do
2791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2793 echo "configure:2794: checking for $ac_hdr" >&5
2794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2795   echo $ac_n "(cached) $ac_c" 1>&6
2796 else
2797   cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 #include <$ac_hdr>
2801 EOF
2802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2803 { (eval echo configure:2804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2805 if test -z "$ac_err"; then
2806   rm -rf conftest*
2807   eval "ac_cv_header_$ac_safe=yes"
2808 else
2809   echo "$ac_err" >&5
2810   echo "configure: failed program was:" >&5
2811   cat conftest.$ac_ext >&5
2812   rm -rf conftest*
2813   eval "ac_cv_header_$ac_safe=no"
2814 fi
2815 rm -f conftest*
2816 fi
2817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2818   echo "$ac_t""yes" 1>&6
2819     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2820   cat >> confdefs.h <<EOF
2821 #define $ac_tr_hdr 1
2822 EOF
2823  
2824 else
2825   echo "$ac_t""no" 1>&6
2826 fi
2827 done
2828
2829 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2830 do
2831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2833 echo "configure:2834: checking for $ac_hdr" >&5
2834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2835   echo $ac_n "(cached) $ac_c" 1>&6
2836 else
2837   cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2840 #include <$ac_hdr>
2841 EOF
2842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2843 { (eval echo configure:2844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2845 if test -z "$ac_err"; then
2846   rm -rf conftest*
2847   eval "ac_cv_header_$ac_safe=yes"
2848 else
2849   echo "$ac_err" >&5
2850   echo "configure: failed program was:" >&5
2851   cat conftest.$ac_ext >&5
2852   rm -rf conftest*
2853   eval "ac_cv_header_$ac_safe=no"
2854 fi
2855 rm -f conftest*
2856 fi
2857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2858   echo "$ac_t""yes" 1>&6
2859     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2860   cat >> confdefs.h <<EOF
2861 #define $ac_tr_hdr 1
2862 EOF
2863  
2864 else
2865   echo "$ac_t""no" 1>&6
2866 fi
2867 done
2868
2869 for ac_hdr in machine/param.h
2870 do
2871 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2873 echo "configure:2874: checking for $ac_hdr" >&5
2874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2875   echo $ac_n "(cached) $ac_c" 1>&6
2876 else
2877   cat > conftest.$ac_ext <<EOF
2878 #line 2879 "configure"
2879 #include "confdefs.h"
2880 #include <$ac_hdr>
2881 EOF
2882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2883 { (eval echo configure:2884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2885 if test -z "$ac_err"; then
2886   rm -rf conftest*
2887   eval "ac_cv_header_$ac_safe=yes"
2888 else
2889   echo "$ac_err" >&5
2890   echo "configure: failed program was:" >&5
2891   cat conftest.$ac_ext >&5
2892   rm -rf conftest*
2893   eval "ac_cv_header_$ac_safe=no"
2894 fi
2895 rm -f conftest*
2896 fi
2897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2898   echo "$ac_t""yes" 1>&6
2899     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2900   cat >> confdefs.h <<EOF
2901 #define $ac_tr_hdr 1
2902 EOF
2903  
2904 else
2905   echo "$ac_t""no" 1>&6
2906 fi
2907 done
2908
2909
2910 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2911 do
2912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916   echo $ac_n "(cached) $ac_c" 1>&6
2917 else
2918   cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 #include <$ac_hdr>
2922 EOF
2923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2926 if test -z "$ac_err"; then
2927   rm -rf conftest*
2928   eval "ac_cv_header_$ac_safe=yes"
2929 else
2930   echo "$ac_err" >&5
2931   echo "configure: failed program was:" >&5
2932   cat conftest.$ac_ext >&5
2933   rm -rf conftest*
2934   eval "ac_cv_header_$ac_safe=no"
2935 fi
2936 rm -f conftest*
2937 fi
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939   echo "$ac_t""yes" 1>&6
2940     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941   cat >> confdefs.h <<EOF
2942 #define $ac_tr_hdr 1
2943 EOF
2944  
2945 else
2946   echo "$ac_t""no" 1>&6
2947 fi
2948 done
2949
2950
2951 save_CFLAGS=$CFLAGS
2952
2953 CFLAGS="${CFLAGS} -Wall -Werror"
2954 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2955 echo "configure:2956: checking for ntohl in sys/param.h" >&5
2956 cat > conftest.$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2959 #include <sys/param.h>
2960 void foo() { int meuh; ntohl(meuh); }
2961 int main() {
2962
2963 ; return 0; }
2964 EOF
2965 if { (eval echo configure:2966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2966   rm -rf conftest*
2967   cat >> confdefs.h <<\EOF
2968 #define NTOHL_IN_SYS_PARAM_H 1
2969 EOF
2970
2971  echo "$ac_t""yes" 1>&6
2972 else
2973   echo "configure: failed program was:" >&5
2974   cat conftest.$ac_ext >&5
2975   rm -rf conftest*
2976   echo "$ac_t""no" 1>&6
2977 fi
2978 rm -f conftest*
2979
2980 CFLAGS="${CFLAGS} -rdynamic"
2981 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2982 echo "configure:2983: checking if \$CC accepts -rdynamic" >&5
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2986
2987 int main() {
2988
2989 ; return 0; }
2990 EOF
2991 if { (eval echo configure:2992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2992   rm -rf conftest*
2993   DYNAMIC_FLAG="-rdynamic"
2994  echo "$ac_t""yes" 1>&6
2995 else
2996   echo "configure: failed program was:" >&5
2997   cat conftest.$ac_ext >&5
2998   rm -rf conftest*
2999   echo "$ac_t""no" 1>&6
3000 fi
3001 rm -f conftest*
3002
3003 CFLAGS=$save_CFLAGS
3004
3005 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3006 echo "configure:3007: checking for boolean_t in sys/types.h" >&5
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 #include <sys/types.h>
3011 void quux() { boolean_t foo; }
3012 int main() {
3013
3014 ; return 0; }
3015 EOF
3016 if { (eval echo configure:3017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3017   rm -rf conftest*
3018   cat >> confdefs.h <<\EOF
3019 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3020 EOF
3021
3022  echo "$ac_t""yes" 1>&6
3023 else
3024   echo "configure: failed program was:" >&5
3025   cat conftest.$ac_ext >&5
3026   rm -rf conftest*
3027   echo "$ac_t""no" 1>&6
3028 fi
3029 rm -f conftest*
3030
3031 echo $ac_n "checking for working const""... $ac_c" 1>&6
3032 echo "configure:3033: checking for working const" >&5
3033 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3034   echo $ac_n "(cached) $ac_c" 1>&6
3035 else
3036   cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3039
3040 int main() {
3041
3042 /* Ultrix mips cc rejects this.  */
3043 typedef int charset[2]; const charset x;
3044 /* SunOS 4.1.1 cc rejects this.  */
3045 char const *const *ccp;
3046 char **p;
3047 /* NEC SVR4.0.2 mips cc rejects this.  */
3048 struct point {int x, y;};
3049 static struct point const zero = {0,0};
3050 /* AIX XL C 1.02.0.0 rejects this.
3051    It does not let you subtract one const X* pointer from another in an arm
3052    of an if-expression whose if-part is not a constant expression */
3053 const char *g = "string";
3054 ccp = &g + (g ? g-g : 0);
3055 /* HPUX 7.0 cc rejects these. */
3056 ++ccp;
3057 p = (char**) ccp;
3058 ccp = (char const *const *) p;
3059 { /* SCO 3.2v4 cc rejects this.  */
3060   char *t;
3061   char const *s = 0 ? (char *) 0 : (char const *) 0;
3062
3063   *t++ = 0;
3064 }
3065 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3066   int x[] = {25, 17};
3067   const int *foo = &x[0];
3068   ++foo;
3069 }
3070 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3071   typedef const int *iptr;
3072   iptr p = 0;
3073   ++p;
3074 }
3075 { /* AIX XL C 1.02.0.0 rejects this saying
3076      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3077   struct s { int j; const int *ap[3]; };
3078   struct s *b; b->j = 5;
3079 }
3080 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3081   const int foo = 10;
3082 }
3083
3084 ; return 0; }
3085 EOF
3086 if { (eval echo configure:3087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3087   rm -rf conftest*
3088   ac_cv_c_const=yes
3089 else
3090   echo "configure: failed program was:" >&5
3091   cat conftest.$ac_ext >&5
3092   rm -rf conftest*
3093   ac_cv_c_const=no
3094 fi
3095 rm -f conftest*
3096 fi
3097
3098 echo "$ac_t""$ac_cv_c_const" 1>&6
3099 if test $ac_cv_c_const = no; then
3100   cat >> confdefs.h <<\EOF
3101 #define const 
3102 EOF
3103
3104 fi
3105
3106 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3107 echo "configure:3108: checking for ANSI C header files" >&5
3108 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3109   echo $ac_n "(cached) $ac_c" 1>&6
3110 else
3111   cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include <stdlib.h>
3115 #include <stdarg.h>
3116 #include <string.h>
3117 #include <float.h>
3118 EOF
3119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3120 { (eval echo configure:3121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3122 if test -z "$ac_err"; then
3123   rm -rf conftest*
3124   ac_cv_header_stdc=yes
3125 else
3126   echo "$ac_err" >&5
3127   echo "configure: failed program was:" >&5
3128   cat conftest.$ac_ext >&5
3129   rm -rf conftest*
3130   ac_cv_header_stdc=no
3131 fi
3132 rm -f conftest*
3133
3134 if test $ac_cv_header_stdc = yes; then
3135   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 #include <string.h>
3140 EOF
3141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142   egrep "memchr" >/dev/null 2>&1; then
3143   :
3144 else
3145   rm -rf conftest*
3146   ac_cv_header_stdc=no
3147 fi
3148 rm -f conftest*
3149
3150 fi
3151
3152 if test $ac_cv_header_stdc = yes; then
3153   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3157 #include <stdlib.h>
3158 EOF
3159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160   egrep "free" >/dev/null 2>&1; then
3161   :
3162 else
3163   rm -rf conftest*
3164   ac_cv_header_stdc=no
3165 fi
3166 rm -f conftest*
3167
3168 fi
3169
3170 if test $ac_cv_header_stdc = yes; then
3171   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3172 if test "$cross_compiling" = yes; then
3173   :
3174 else
3175   cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3178 #include <ctype.h>
3179 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3180 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3182 int main () { int i; for (i = 0; i < 256; i++)
3183 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3184 exit (0); }
3185
3186 EOF
3187 if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3188 then
3189   :
3190 else
3191   echo "configure: failed program was:" >&5
3192   cat conftest.$ac_ext >&5
3193   rm -fr conftest*
3194   ac_cv_header_stdc=no
3195 fi
3196 rm -fr conftest*
3197 fi
3198
3199 fi
3200 fi
3201
3202 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3203 if test $ac_cv_header_stdc = yes; then
3204   cat >> confdefs.h <<\EOF
3205 #define STDC_HEADERS 1
3206 EOF
3207
3208 fi
3209
3210 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3211 echo "configure:3212: checking for size_t" >&5
3212 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3213   echo $ac_n "(cached) $ac_c" 1>&6
3214 else
3215   cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3218 #include <sys/types.h>
3219 #if STDC_HEADERS
3220 #include <stdlib.h>
3221 #include <stddef.h>
3222 #endif
3223 EOF
3224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3225   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3226   rm -rf conftest*
3227   ac_cv_type_size_t=yes
3228 else
3229   rm -rf conftest*
3230   ac_cv_type_size_t=no
3231 fi
3232 rm -f conftest*
3233
3234 fi
3235 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3236 if test $ac_cv_type_size_t = no; then
3237   cat >> confdefs.h <<\EOF
3238 #define size_t unsigned
3239 EOF
3240
3241 fi
3242
3243 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3244 echo "configure:3245: checking whether time.h and sys/time.h may both be included" >&5
3245 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3246   echo $ac_n "(cached) $ac_c" 1>&6
3247 else
3248   cat > conftest.$ac_ext <<EOF
3249 #line 3250 "configure"
3250 #include "confdefs.h"
3251 #include <sys/types.h>
3252 #include <sys/time.h>
3253 #include <time.h>
3254 int main() {
3255 struct tm *tp;
3256 ; return 0; }
3257 EOF
3258 if { (eval echo configure:3259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3259   rm -rf conftest*
3260   ac_cv_header_time=yes
3261 else
3262   echo "configure: failed program was:" >&5
3263   cat conftest.$ac_ext >&5
3264   rm -rf conftest*
3265   ac_cv_header_time=no
3266 fi
3267 rm -f conftest*
3268 fi
3269
3270 echo "$ac_t""$ac_cv_header_time" 1>&6
3271 if test $ac_cv_header_time = yes; then
3272   cat >> confdefs.h <<\EOF
3273 #define TIME_WITH_SYS_TIME 1
3274 EOF
3275
3276 fi
3277
3278
3279 PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
3280 if test x$host_os = xbeos; then
3281     ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3282 else
3283     ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3284 fi
3285
3286 for ac_hdr in sys/ioctl.h
3287 do
3288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3290 echo "configure:3291: checking for $ac_hdr" >&5
3291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3292   echo $ac_n "(cached) $ac_c" 1>&6
3293 else
3294   cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 #include <$ac_hdr>
3298 EOF
3299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3300 { (eval echo configure:3301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3302 if test -z "$ac_err"; then
3303   rm -rf conftest*
3304   eval "ac_cv_header_$ac_safe=yes"
3305 else
3306   echo "$ac_err" >&5
3307   echo "configure: failed program was:" >&5
3308   cat conftest.$ac_ext >&5
3309   rm -rf conftest*
3310   eval "ac_cv_header_$ac_safe=no"
3311 fi
3312 rm -f conftest*
3313 fi
3314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3315   echo "$ac_t""yes" 1>&6
3316     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3317   cat >> confdefs.h <<EOF
3318 #define $ac_tr_hdr 1
3319 EOF
3320  PLUGINS=${PLUGINS}"dvd "
3321    for ac_hdr in linux/cdrom.h
3322 do
3323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3325 echo "configure:3326: checking for $ac_hdr" >&5
3326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3327   echo $ac_n "(cached) $ac_c" 1>&6
3328 else
3329   cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 #include <$ac_hdr>
3333 EOF
3334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3335 { (eval echo configure:3336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3337 if test -z "$ac_err"; then
3338   rm -rf conftest*
3339   eval "ac_cv_header_$ac_safe=yes"
3340 else
3341   echo "$ac_err" >&5
3342   echo "configure: failed program was:" >&5
3343   cat conftest.$ac_ext >&5
3344   rm -rf conftest*
3345   eval "ac_cv_header_$ac_safe=no"
3346 fi
3347 rm -f conftest*
3348 fi
3349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3350   echo "$ac_t""yes" 1>&6
3351     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3352   cat >> confdefs.h <<EOF
3353 #define $ac_tr_hdr 1
3354 EOF
3355  
3356 else
3357   echo "$ac_t""no" 1>&6
3358 fi
3359 done
3360
3361    cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 #include <linux/cdrom.h>
3365 EOF
3366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3367   egrep "dvd" >/dev/null 2>&1; then
3368   rm -rf conftest*
3369   cat >> confdefs.h <<\EOF
3370 #define LINUX_DVD 1
3371 EOF
3372
3373 fi
3374 rm -f conftest*
3375
3376 else
3377   echo "$ac_t""no" 1>&6
3378 fi
3379 done
3380
3381
3382 ARCH=${host_cpu}
3383 # Check whether --enable-ppro or --disable-ppro was given.
3384 if test "${enable_ppro+set}" = set; then
3385   enableval="$enable_ppro"
3386    if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi 
3387 else
3388    if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi 
3389 fi
3390
3391 # Check whether --enable-mmx or --disable-mmx was given.
3392 if test "${enable_mmx+set}" = set; then
3393   enableval="$enable_mmx"
3394    if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi 
3395 else
3396    if test x${host_cpu} = xi686 -o x${host_cpu} = xi586; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi 
3397 fi
3398
3399 # Check whether --enable-debug or --disable-debug was given.
3400 if test "${enable_debug+set}" = set; then
3401   enableval="$enable_debug"
3402    if test x$enableval = xyes; then DEBUG=1; fi 
3403 fi
3404
3405 # Check whether --enable-stats or --disable-stats was given.
3406 if test "${enable_stats+set}" = set; then
3407   enableval="$enable_stats"
3408    if test x$enableval = xyes; then STATS=1; fi 
3409 fi
3410
3411 # Check whether --enable-optimizations or --disable-optimizations was given.
3412 if test "${enable_optimizations+set}" = set; then
3413   enableval="$enable_optimizations"
3414    if test x$enableval = xno; then OPTIMS=0; fi 
3415 else
3416    OPTIMS=1 
3417 fi
3418
3419
3420 SYS=${host_os}
3421
3422 # special cases
3423 if test x$host_os = xbeos; then
3424     PLUGINS=${PLUGINS}"dummy null beos "
3425
3426 else
3427
3428 GVLC=0
3429 KVLC=0
3430
3431 # Check whether --enable-dummy or --disable-dummy was given.
3432 if test "${enable_dummy+set}" = set; then
3433   enableval="$enable_dummy"
3434   :
3435 fi
3436
3437 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3438 # Check whether --enable-null or --disable-null was given.
3439 if test "${enable_null+set}" = set; then
3440   enableval="$enable_null"
3441   :
3442 fi
3443
3444 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3445 # Check whether --enable-dsp or --disable-dsp was given.
3446 if test "${enable_dsp+set}" = set; then
3447   enableval="$enable_dsp"
3448   :
3449 fi
3450
3451 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3452 # Check whether --enable-esd or --disable-esd was given.
3453 if test "${enable_esd+set}" = set; then
3454   enableval="$enable_esd"
3455   if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3456 fi
3457
3458 # Check whether --enable-fb or --disable-fb was given.
3459 if test "${enable_fb+set}" = set; then
3460   enableval="$enable_fb"
3461   if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3462 fi
3463
3464 # Check whether --with-ggi or --without-ggi was given.
3465 if test "${with_ggi+set}" = set; then
3466   withval="$with_ggi"
3467    PLUGINS=${PLUGINS}"ggi ";
3468     if test "x$withval" != "xyes";
3469     then
3470       LIB_GGI="-l"$withval
3471     else
3472       LIB_GGI="-lggi"
3473     fi 
3474 fi
3475
3476 # Check whether --with-sdl or --without-sdl was given.
3477 if test "${with_sdl+set}" = set; then
3478   withval="$with_sdl"
3479    PLUGINS=${PLUGINS}"sdl ";
3480     if test "x$withval" != "xyes";
3481     then
3482       LIB_SDL="L/usr/X11R6/lib -l"$withval
3483     else
3484       LIB_SDL="-L/usr/X11R6/lib -lSDL"
3485     fi 
3486 fi
3487
3488     if test "x$withval" = "x";
3489     then
3490       PLUGINS=${PLUGINS}"sdl "
3491       LIB_SDL="-L/usr/X11R6/lib -lSDL"
3492     fi
3493 # Check whether --with-glide or --without-glide was given.
3494 if test "${with_glide+set}" = set; then
3495   withval="$with_glide"
3496    PLUGINS=${PLUGINS}"glide ";
3497     if test "x$withval" != "xyes";
3498     then
3499       LIB_GLIDE="-l"$withval
3500     else
3501       LIB_GLIDE="-lglide2x"
3502     fi 
3503 fi
3504
3505 # Check whether --enable-ncurses or --disable-ncurses was given.
3506 if test "${enable_ncurses+set}" = set; then
3507   enableval="$enable_ncurses"
3508   if test x$enable_ncurses = xyes; then PLUGINS=${PLUGINS}"ncurses "; fi
3509 fi
3510
3511 # Check whether --enable-kde or --disable-kde was given.
3512 if test "${enable_kde+set}" = set; then
3513   enableval="$enable_kde"
3514   if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; KVLC=1; fi
3515 fi
3516
3517 # Check whether --enable-gnome or --disable-gnome was given.
3518 if test "${enable_gnome+set}" = set; then
3519   enableval="$enable_gnome"
3520   if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; GVLC=1; fi
3521 fi
3522
3523 # Check whether --enable-gtk or --disable-gtk was given.
3524 if test "${enable_gtk+set}" = set; then
3525   enableval="$enable_gtk"
3526   :
3527 fi
3528
3529 if test x$enable_gtk != xno; then PLUGINS=${PLUGINS}"gtk "; GVLC=1; fi
3530 # Check whether --enable-x11 or --disable-x11 was given.
3531 if test "${enable_x11+set}" = set; then
3532   enableval="$enable_x11"
3533   :
3534 fi
3535
3536 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3537
3538 # Check whether --enable-alsa or --disable-alsa was given.
3539 if test "${enable_alsa+set}" = set; then
3540   enableval="$enable_alsa"
3541   if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3542 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3543 echo "configure:3544: checking for sys/asoundlib.h" >&5
3544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3545   echo $ac_n "(cached) $ac_c" 1>&6
3546 else
3547   cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550 #include <sys/asoundlib.h>
3551 EOF
3552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3553 { (eval echo configure:3554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3555 if test -z "$ac_err"; then
3556   rm -rf conftest*
3557   eval "ac_cv_header_$ac_safe=yes"
3558 else
3559   echo "$ac_err" >&5
3560   echo "configure: failed program was:" >&5
3561   cat conftest.$ac_ext >&5
3562   rm -rf conftest*
3563   eval "ac_cv_header_$ac_safe=no"
3564 fi
3565 rm -f conftest*
3566 fi
3567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3568   echo "$ac_t""yes" 1>&6
3569   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3570 echo "configure:3571: checking for main in -lasound" >&5
3571 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3573   echo $ac_n "(cached) $ac_c" 1>&6
3574 else
3575   ac_save_LIBS="$LIBS"
3576 LIBS="-lasound  $LIBS"
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580
3581 int main() {
3582 main()
3583 ; return 0; }
3584 EOF
3585 if { (eval echo configure:3586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3586   rm -rf conftest*
3587   eval "ac_cv_lib_$ac_lib_var=yes"
3588 else
3589   echo "configure: failed program was:" >&5
3590   cat conftest.$ac_ext >&5
3591   rm -rf conftest*
3592   eval "ac_cv_lib_$ac_lib_var=no"
3593 fi
3594 rm -f conftest*
3595 LIBS="$ac_save_LIBS"
3596
3597 fi
3598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3599   echo "$ac_t""yes" 1>&6
3600   have_alsa="true"
3601 else
3602   echo "$ac_t""no" 1>&6
3603 have_alsa="false"
3604 fi
3605
3606 else
3607   echo "$ac_t""no" 1>&6
3608 have_alsa="false"
3609 fi
3610  if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3611 fi
3612
3613
3614 if test x$GVLC = x1 ; then ALIASES=${ALIASES}"gvlc "; fi
3615 if test x$KVLC = x1 ; then ALIASES=${ALIASES}"kvlc "; fi
3616
3617 fi
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631 trap '' 1 2 15
3632 cat > confcache <<\EOF
3633 # This file is a shell script that caches the results of configure
3634 # tests run on this system so they can be shared between configure
3635 # scripts and configure runs.  It is not useful on other systems.
3636 # If it contains results you don't want to keep, you may remove or edit it.
3637 #
3638 # By default, configure uses ./config.cache as the cache file,
3639 # creating it if it does not exist already.  You can give configure
3640 # the --cache-file=FILE option to use a different cache file; that is
3641 # what configure does when it calls configure scripts in
3642 # subdirectories, so they share the cache.
3643 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3644 # config.status only pays attention to the cache file if you give it the
3645 # --recheck option to rerun configure.
3646 #
3647 EOF
3648 # The following way of writing the cache mishandles newlines in values,
3649 # but we know of no workaround that is simple, portable, and efficient.
3650 # So, don't put newlines in cache variables' values.
3651 # Ultrix sh set writes to stderr and can't be redirected directly,
3652 # and sets the high bit in the cache file unless we assign to the vars.
3653 (set) 2>&1 |
3654   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3655   *ac_space=\ *)
3656     # `set' does not quote correctly, so add quotes (double-quote substitution
3657     # turns \\\\ into \\, and sed turns \\ into \).
3658     sed -n \
3659       -e "s/'/'\\\\''/g" \
3660       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3661     ;;
3662   *)
3663     # `set' quotes correctly as required by POSIX, so do not add quotes.
3664     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3665     ;;
3666   esac >> confcache
3667 if cmp -s $cache_file confcache; then
3668   :
3669 else
3670   if test -w $cache_file; then
3671     echo "updating cache $cache_file"
3672     cat confcache > $cache_file
3673   else
3674     echo "not updating unwritable cache $cache_file"
3675   fi
3676 fi
3677 rm -f confcache
3678
3679 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3680
3681 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3682 # Let make expand exec_prefix.
3683 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3684
3685 # Any assignment to VPATH causes Sun make to only execute
3686 # the first set of double-colon rules, so remove it if not needed.
3687 # If there is a colon in the path, we need to keep it.
3688 if test "x$srcdir" = x.; then
3689   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3690 fi
3691
3692 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3693
3694 DEFS=-DHAVE_CONFIG_H
3695
3696 # Without the "./", some shells look in PATH for config.status.
3697 : ${CONFIG_STATUS=./config.status}
3698
3699 echo creating $CONFIG_STATUS
3700 rm -f $CONFIG_STATUS
3701 cat > $CONFIG_STATUS <<EOF
3702 #! /bin/sh
3703 # Generated automatically by configure.
3704 # Run this file to recreate the current configuration.
3705 # This directory was configured as follows,
3706 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3707 #
3708 # $0 $ac_configure_args
3709 #
3710 # Compiler output produced by configure, useful for debugging
3711 # configure, is in ./config.log if it exists.
3712
3713 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3714 for ac_option
3715 do
3716   case "\$ac_option" in
3717   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3718     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3719     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3720   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3721     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3722     exit 0 ;;
3723   -help | --help | --hel | --he | --h)
3724     echo "\$ac_cs_usage"; exit 0 ;;
3725   *) echo "\$ac_cs_usage"; exit 1 ;;
3726   esac
3727 done
3728
3729 ac_given_srcdir=$srcdir
3730 ac_given_INSTALL="$INSTALL"
3731
3732 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3733 EOF
3734 cat >> $CONFIG_STATUS <<EOF
3735
3736 # Protect against being on the right side of a sed subst in config.status.
3737 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3738  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3739 $ac_vpsub
3740 $extrasub
3741 s%@SHELL@%$SHELL%g
3742 s%@CFLAGS@%$CFLAGS%g
3743 s%@CPPFLAGS@%$CPPFLAGS%g
3744 s%@CXXFLAGS@%$CXXFLAGS%g
3745 s%@FFLAGS@%$FFLAGS%g
3746 s%@DEFS@%$DEFS%g
3747 s%@LDFLAGS@%$LDFLAGS%g
3748 s%@LIBS@%$LIBS%g
3749 s%@exec_prefix@%$exec_prefix%g
3750 s%@prefix@%$prefix%g
3751 s%@program_transform_name@%$program_transform_name%g
3752 s%@bindir@%$bindir%g
3753 s%@sbindir@%$sbindir%g
3754 s%@libexecdir@%$libexecdir%g
3755 s%@datadir@%$datadir%g
3756 s%@sysconfdir@%$sysconfdir%g
3757 s%@sharedstatedir@%$sharedstatedir%g
3758 s%@localstatedir@%$localstatedir%g
3759 s%@libdir@%$libdir%g
3760 s%@includedir@%$includedir%g
3761 s%@oldincludedir@%$oldincludedir%g
3762 s%@infodir@%$infodir%g
3763 s%@mandir@%$mandir%g
3764 s%@host@%$host%g
3765 s%@host_alias@%$host_alias%g
3766 s%@host_cpu@%$host_cpu%g
3767 s%@host_vendor@%$host_vendor%g
3768 s%@host_os@%$host_os%g
3769 s%@VLC_VERSION@%$VLC_VERSION%g
3770 s%@VLC_CODENAME@%$VLC_CODENAME%g
3771 s%@SET_MAKE@%$SET_MAKE%g
3772 s%@CC@%$CC%g
3773 s%@CPP@%$CPP%g
3774 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3775 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3776 s%@INSTALL_DATA@%$INSTALL_DATA%g
3777 s%@LIBOBJS@%$LIBOBJS%g
3778 s%@SYS@%$SYS%g
3779 s%@ARCH@%$ARCH%g
3780 s%@PLUGINS@%$PLUGINS%g
3781 s%@ALIASES@%$ALIASES%g
3782 s%@DEBUG@%$DEBUG%g
3783 s%@STATS@%$STATS%g
3784 s%@OPTIMS@%$OPTIMS%g
3785 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3786 s%@LIB_SDL@%$LIB_SDL%g
3787 s%@LIB_GLIDE@%$LIB_GLIDE%g
3788 s%@LIB_GGI@%$LIB_GGI%g
3789
3790 CEOF
3791 EOF
3792
3793 cat >> $CONFIG_STATUS <<\EOF
3794
3795 # Split the substitutions into bite-sized pieces for seds with
3796 # small command number limits, like on Digital OSF/1 and HP-UX.
3797 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3798 ac_file=1 # Number of current file.
3799 ac_beg=1 # First line for current file.
3800 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3801 ac_more_lines=:
3802 ac_sed_cmds=""
3803 while $ac_more_lines; do
3804   if test $ac_beg -gt 1; then
3805     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3806   else
3807     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3808   fi
3809   if test ! -s conftest.s$ac_file; then
3810     ac_more_lines=false
3811     rm -f conftest.s$ac_file
3812   else
3813     if test -z "$ac_sed_cmds"; then
3814       ac_sed_cmds="sed -f conftest.s$ac_file"
3815     else
3816       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3817     fi
3818     ac_file=`expr $ac_file + 1`
3819     ac_beg=$ac_end
3820     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3821   fi
3822 done
3823 if test -z "$ac_sed_cmds"; then
3824   ac_sed_cmds=cat
3825 fi
3826 EOF
3827
3828 cat >> $CONFIG_STATUS <<EOF
3829
3830 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3831 EOF
3832 cat >> $CONFIG_STATUS <<\EOF
3833 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3834   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3835   case "$ac_file" in
3836   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3837        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3838   *) ac_file_in="${ac_file}.in" ;;
3839   esac
3840
3841   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3842
3843   # Remove last slash and all that follows it.  Not all systems have dirname.
3844   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3845   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3846     # The file is in a subdirectory.
3847     test ! -d "$ac_dir" && mkdir "$ac_dir"
3848     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3849     # A "../" for each directory in $ac_dir_suffix.
3850     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3851   else
3852     ac_dir_suffix= ac_dots=
3853   fi
3854
3855   case "$ac_given_srcdir" in
3856   .)  srcdir=.
3857       if test -z "$ac_dots"; then top_srcdir=.
3858       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3859   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3860   *) # Relative path.
3861     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3862     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3863   esac
3864
3865   case "$ac_given_INSTALL" in
3866   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3867   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3868   esac
3869
3870   echo creating "$ac_file"
3871   rm -f "$ac_file"
3872   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3873   case "$ac_file" in
3874   *Makefile*) ac_comsub="1i\\
3875 # $configure_input" ;;
3876   *) ac_comsub= ;;
3877   esac
3878
3879   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3880   sed -e "$ac_comsub
3881 s%@configure_input@%$configure_input%g
3882 s%@srcdir@%$srcdir%g
3883 s%@top_srcdir@%$top_srcdir%g
3884 s%@INSTALL@%$INSTALL%g
3885 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3886 fi; done
3887 rm -f conftest.s*
3888
3889 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3890 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3891 #
3892 # ac_d sets the value in "#define NAME VALUE" lines.
3893 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3894 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3895 ac_dC='\3'
3896 ac_dD='%g'
3897 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3898 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3899 ac_uB='\([      ]\)%\1#\2define\3'
3900 ac_uC=' '
3901 ac_uD='\4%g'
3902 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3903 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3904 ac_eB='$%\1#\2define\3'
3905 ac_eC=' '
3906 ac_eD='%g'
3907
3908 if test "${CONFIG_HEADERS+set}" != set; then
3909 EOF
3910 cat >> $CONFIG_STATUS <<EOF
3911   CONFIG_HEADERS="include/defs.h"
3912 EOF
3913 cat >> $CONFIG_STATUS <<\EOF
3914 fi
3915 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3916   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3917   case "$ac_file" in
3918   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3919        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3920   *) ac_file_in="${ac_file}.in" ;;
3921   esac
3922
3923   echo creating $ac_file
3924
3925   rm -f conftest.frag conftest.in conftest.out
3926   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3927   cat $ac_file_inputs > conftest.in
3928
3929 EOF
3930
3931 # Transform confdefs.h into a sed script conftest.vals that substitutes
3932 # the proper values into config.h.in to produce config.h.  And first:
3933 # Protect against being on the right side of a sed subst in config.status.
3934 # Protect against being in an unquoted here document in config.status.
3935 rm -f conftest.vals
3936 cat > conftest.hdr <<\EOF
3937 s/[\\&%]/\\&/g
3938 s%[\\$`]%\\&%g
3939 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3940 s%ac_d%ac_u%gp
3941 s%ac_u%ac_e%gp
3942 EOF
3943 sed -n -f conftest.hdr confdefs.h > conftest.vals
3944 rm -f conftest.hdr
3945
3946 # This sed command replaces #undef with comments.  This is necessary, for
3947 # example, in the case of _POSIX_SOURCE, which is predefined and required
3948 # on some systems where configure will not decide to define it.
3949 cat >> conftest.vals <<\EOF
3950 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3951 EOF
3952
3953 # Break up conftest.vals because some shells have a limit on
3954 # the size of here documents, and old seds have small limits too.
3955
3956 rm -f conftest.tail
3957 while :
3958 do
3959   ac_lines=`grep -c . conftest.vals`
3960   # grep -c gives empty output for an empty file on some AIX systems.
3961   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3962   # Write a limited-size here document to conftest.frag.
3963   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3964   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3965   echo 'CEOF
3966   sed -f conftest.frag conftest.in > conftest.out
3967   rm -f conftest.in
3968   mv conftest.out conftest.in
3969 ' >> $CONFIG_STATUS
3970   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3971   rm -f conftest.vals
3972   mv conftest.tail conftest.vals
3973 done
3974 rm -f conftest.vals
3975
3976 cat >> $CONFIG_STATUS <<\EOF
3977   rm -f conftest.frag conftest.h
3978   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3979   cat conftest.in >> conftest.h
3980   rm -f conftest.in
3981   if cmp -s $ac_file conftest.h 2>/dev/null; then
3982     echo "$ac_file is unchanged"
3983     rm -f conftest.h
3984   else
3985     # Remove last slash and all that follows it.  Not all systems have dirname.
3986       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3987       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3988       # The file is in a subdirectory.
3989       test ! -d "$ac_dir" && mkdir "$ac_dir"
3990     fi
3991     rm -f $ac_file
3992     mv conftest.h $ac_file
3993   fi
3994 fi; done
3995
3996 EOF
3997 cat >> $CONFIG_STATUS <<EOF
3998
3999 EOF
4000 cat >> $CONFIG_STATUS <<\EOF
4001
4002 exit 0
4003 EOF
4004 chmod +x $CONFIG_STATUS
4005 rm -fr confdefs* $ac_clean_files
4006 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4007
4008
4009 echo "
4010 vlc configuration
4011 -----------------
4012 vlc version           : ${VLC_VERSION}
4013 system                : ${SYS}
4014 architecture          : ${ARCH}
4015 debug mode            : ${DEBUG}
4016 statistics            : ${STATS}
4017 optimizations         : ${OPTIMS}
4018 plugins               : ${PLUGINS}
4019 vlc aliases           : ${ALIASES}
4020 "
4021