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