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