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