]> git.sesse.net Git - vlc/blob - configure
New interface for MacOS X, courtesy of Florian G. Pflug.
[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   --with-words=endianness Set endianness (big or little)"
16 ac_help="$ac_help
17   --with-tuning=[arch]    Enable special tuning for an architecture
18                           (default i686 on IA-32 and 750 on PPC)"
19 ac_help="$ac_help
20   --disable-mmx           Disable MMX optimizations (default enabled for x86)"
21 ac_help="$ac_help
22   --disable-altivec       Disable altivec optimizations (default enabled on PPC)"
23 ac_help="$ac_help
24   --enable-debug          Enable debug mode (default disabled)"
25 ac_help="$ac_help
26   --enable-trace          Enable trace mode (default disabled)"
27 ac_help="$ac_help
28   --enable-gprof          Enable gprof profiling (default disabled)"
29 ac_help="$ac_help
30   --enable-cprof          Enable cprof profiling (default disabled)"
31 ac_help="$ac_help
32   --disable-optimizations Disable compiler optimizations (default enabled)"
33 ac_help="$ac_help
34   --enable-pth            Enable GNU Pth support (default disabled)"
35 ac_help="$ac_help
36   --with-dvdcss[=name]    way to use libdvdcss, either 'yes' or 'no',
37                           or 'local-static', 'local-shared', or a path to
38                           another libdvdcss such as '/usr/local'
39                           (default 'local-static')"
40 ac_help="$ac_help
41   --enable-vcd            VCD support for Linux (default enabled)"
42 ac_help="$ac_help
43   --disable-dummy         dummy module (default enabled)"
44 ac_help="$ac_help
45   --disable-null          Null module (default enabled)"
46 ac_help="$ac_help
47   --disable-rc            rc module (default enabled)"
48 ac_help="$ac_help
49   --disable-dsp           Linux /dev/dsp support (default enabled)"
50 ac_help="$ac_help
51   --enable-esd            Esound library support (default disabled)"
52 ac_help="$ac_help
53   --enable-darwin         Darwin sound support (default enabled on MacOS X)"
54 ac_help="$ac_help
55   --enable-macosx         MacOS X support (default enabled on MacOS X)"
56 ac_help="$ac_help
57   --disable-qnx           QNX RTOS support (default enabled on QNX RTOS)"
58 ac_help="$ac_help
59   --enable-fb             Linux framebuffer support (default disabled)"
60 ac_help="$ac_help
61   --with-ggi[=name]       GGI support (default disabled)"
62 ac_help="$ac_help
63   --disable-sdl           SDL support (default enabled)"
64 ac_help="$ac_help
65   --with-sdl-config-path=path sdl-config path (default search in \$PATH)"
66 ac_help="$ac_help
67   --with-directx[=name]   Windows DirectX support (default enabled)"
68 ac_help="$ac_help
69   --with-glide[=name]     Glide (3dfx) support (default disabled)"
70 ac_help="$ac_help
71   --enable-ncurses        ncurses interface support (default disabled)"
72 ac_help="$ac_help
73   --enable-qt             Qt interface support (default disabled)"
74 ac_help="$ac_help
75   --enable-kde            KDE interface support (default disabled)"
76 ac_help="$ac_help
77   --enable-gnome          Gnome interface support (default disabled)"
78 ac_help="$ac_help
79   --disable-gtk           Gtk+ support (default enabled)"
80 ac_help="$ac_help
81   --disable-x11           X11 support (default enabled)"
82 ac_help="$ac_help
83   --disable-xvideo        XVideo support (default enabled)"
84 ac_help="$ac_help
85   --enable-alsa           Alsa sound drivers support (Only for linux)
86                           (default disabled)"
87 ac_help="$ac_help
88   --disable-plugins       Make all plug-ins built-in (default plug-ins enabled)"
89
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
93 build=NONE
94 cache_file=./config.cache
95 exec_prefix=NONE
96 host=NONE
97 no_create=
98 nonopt=NONE
99 no_recursion=
100 prefix=NONE
101 program_prefix=NONE
102 program_suffix=NONE
103 program_transform_name=s,x,x,
104 silent=
105 site=
106 srcdir=
107 target=NONE
108 verbose=
109 x_includes=NONE
110 x_libraries=NONE
111 bindir='${exec_prefix}/bin'
112 sbindir='${exec_prefix}/sbin'
113 libexecdir='${exec_prefix}/libexec'
114 datadir='${prefix}/share'
115 sysconfdir='${prefix}/etc'
116 sharedstatedir='${prefix}/com'
117 localstatedir='${prefix}/var'
118 libdir='${exec_prefix}/lib'
119 includedir='${prefix}/include'
120 oldincludedir='/usr/include'
121 infodir='${prefix}/info'
122 mandir='${prefix}/man'
123
124 # Initialize some other variables.
125 subdirs=
126 MFLAGS= MAKEFLAGS=
127 SHELL=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
129 ac_max_here_lines=12
130
131 ac_prev=
132 for ac_option
133 do
134
135   # If the previous option needs an argument, assign it.
136   if test -n "$ac_prev"; then
137     eval "$ac_prev=\$ac_option"
138     ac_prev=
139     continue
140   fi
141
142   case "$ac_option" in
143   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144   *) ac_optarg= ;;
145   esac
146
147   # Accept the important Cygnus configure options, so we can diagnose typos.
148
149   case "$ac_option" in
150
151   -bindir | --bindir | --bindi | --bind | --bin | --bi)
152     ac_prev=bindir ;;
153   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
154     bindir="$ac_optarg" ;;
155
156   -build | --build | --buil | --bui | --bu)
157     ac_prev=build ;;
158   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
159     build="$ac_optarg" ;;
160
161   -cache-file | --cache-file | --cache-fil | --cache-fi \
162   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
163     ac_prev=cache_file ;;
164   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
165   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
166     cache_file="$ac_optarg" ;;
167
168   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
169     ac_prev=datadir ;;
170   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
171   | --da=*)
172     datadir="$ac_optarg" ;;
173
174   -disable-* | --disable-*)
175     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
176     # Reject names that are not valid shell variable names.
177     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179     fi
180     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181     eval "enable_${ac_feature}=no" ;;
182
183   -enable-* | --enable-*)
184     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185     # Reject names that are not valid shell variable names.
186     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188     fi
189     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190     case "$ac_option" in
191       *=*) ;;
192       *) ac_optarg=yes ;;
193     esac
194     eval "enable_${ac_feature}='$ac_optarg'" ;;
195
196   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
197   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
198   | --exec | --exe | --ex)
199     ac_prev=exec_prefix ;;
200   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
201   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
202   | --exec=* | --exe=* | --ex=*)
203     exec_prefix="$ac_optarg" ;;
204
205   -gas | --gas | --ga | --g)
206     # Obsolete; use --with-gas.
207     with_gas=yes ;;
208
209   -help | --help | --hel | --he)
210     # Omit some internal or obsolete options to make the list less imposing.
211     # This message is too long to be a string in the A/UX 3.1 sh.
212     cat << EOF
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
215 Configuration:
216   --cache-file=FILE       cache test results in FILE
217   --help                  print this message
218   --no-create             do not create output files
219   --quiet, --silent       do not print \`checking...' messages
220   --version               print the version of autoconf that created configure
221 Directory and file names:
222   --prefix=PREFIX         install architecture-independent files in PREFIX
223                           [$ac_default_prefix]
224   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
225                           [same as prefix]
226   --bindir=DIR            user executables in DIR [EPREFIX/bin]
227   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
228   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
229   --datadir=DIR           read-only architecture-independent data in DIR
230                           [PREFIX/share]
231   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
232   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
233                           [PREFIX/com]
234   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
235   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
236   --includedir=DIR        C header files in DIR [PREFIX/include]
237   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
238   --infodir=DIR           info documentation in DIR [PREFIX/info]
239   --mandir=DIR            man documentation in DIR [PREFIX/man]
240   --srcdir=DIR            find the sources in DIR [configure dir or ..]
241   --program-prefix=PREFIX prepend PREFIX to installed program names
242   --program-suffix=SUFFIX append SUFFIX to installed program names
243   --program-transform-name=PROGRAM
244                           run sed PROGRAM on installed program names
245 EOF
246     cat << EOF
247 Host type:
248   --build=BUILD           configure for building on BUILD [BUILD=HOST]
249   --host=HOST             configure for HOST [guessed]
250   --target=TARGET         configure for TARGET [TARGET=HOST]
251 Features and packages:
252   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
253   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
254   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
255   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
256   --x-includes=DIR        X include files are in DIR
257   --x-libraries=DIR       X library files are in DIR
258 EOF
259     if test -n "$ac_help"; then
260       echo "--enable and --with options recognized:$ac_help"
261     fi
262     exit 0 ;;
263
264   -host | --host | --hos | --ho)
265     ac_prev=host ;;
266   -host=* | --host=* | --hos=* | --ho=*)
267     host="$ac_optarg" ;;
268
269   -includedir | --includedir | --includedi | --included | --include \
270   | --includ | --inclu | --incl | --inc)
271     ac_prev=includedir ;;
272   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273   | --includ=* | --inclu=* | --incl=* | --inc=*)
274     includedir="$ac_optarg" ;;
275
276   -infodir | --infodir | --infodi | --infod | --info | --inf)
277     ac_prev=infodir ;;
278   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279     infodir="$ac_optarg" ;;
280
281   -libdir | --libdir | --libdi | --libd)
282     ac_prev=libdir ;;
283   -libdir=* | --libdir=* | --libdi=* | --libd=*)
284     libdir="$ac_optarg" ;;
285
286   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287   | --libexe | --libex | --libe)
288     ac_prev=libexecdir ;;
289   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290   | --libexe=* | --libex=* | --libe=*)
291     libexecdir="$ac_optarg" ;;
292
293   -localstatedir | --localstatedir | --localstatedi | --localstated \
294   | --localstate | --localstat | --localsta | --localst \
295   | --locals | --local | --loca | --loc | --lo)
296     ac_prev=localstatedir ;;
297   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300     localstatedir="$ac_optarg" ;;
301
302   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303     ac_prev=mandir ;;
304   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305     mandir="$ac_optarg" ;;
306
307   -nfp | --nfp | --nf)
308     # Obsolete; use --without-fp.
309     with_fp=no ;;
310
311   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312   | --no-cr | --no-c)
313     no_create=yes ;;
314
315   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317     no_recursion=yes ;;
318
319   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321   | --oldin | --oldi | --old | --ol | --o)
322     ac_prev=oldincludedir ;;
323   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326     oldincludedir="$ac_optarg" ;;
327
328   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329     ac_prev=prefix ;;
330   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331     prefix="$ac_optarg" ;;
332
333   -program-prefix | --program-prefix | --program-prefi | --program-pref \
334   | --program-pre | --program-pr | --program-p)
335     ac_prev=program_prefix ;;
336   -program-prefix=* | --program-prefix=* | --program-prefi=* \
337   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338     program_prefix="$ac_optarg" ;;
339
340   -program-suffix | --program-suffix | --program-suffi | --program-suff \
341   | --program-suf | --program-su | --program-s)
342     ac_prev=program_suffix ;;
343   -program-suffix=* | --program-suffix=* | --program-suffi=* \
344   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345     program_suffix="$ac_optarg" ;;
346
347   -program-transform-name | --program-transform-name \
348   | --program-transform-nam | --program-transform-na \
349   | --program-transform-n | --program-transform- \
350   | --program-transform | --program-transfor \
351   | --program-transfo | --program-transf \
352   | --program-trans | --program-tran \
353   | --progr-tra | --program-tr | --program-t)
354     ac_prev=program_transform_name ;;
355   -program-transform-name=* | --program-transform-name=* \
356   | --program-transform-nam=* | --program-transform-na=* \
357   | --program-transform-n=* | --program-transform-=* \
358   | --program-transform=* | --program-transfor=* \
359   | --program-transfo=* | --program-transf=* \
360   | --program-trans=* | --program-tran=* \
361   | --progr-tra=* | --program-tr=* | --program-t=*)
362     program_transform_name="$ac_optarg" ;;
363
364   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365   | -silent | --silent | --silen | --sile | --sil)
366     silent=yes ;;
367
368   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369     ac_prev=sbindir ;;
370   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371   | --sbi=* | --sb=*)
372     sbindir="$ac_optarg" ;;
373
374   -sharedstatedir | --sharedstatedir | --sharedstatedi \
375   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376   | --sharedst | --shareds | --shared | --share | --shar \
377   | --sha | --sh)
378     ac_prev=sharedstatedir ;;
379   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382   | --sha=* | --sh=*)
383     sharedstatedir="$ac_optarg" ;;
384
385   -site | --site | --sit)
386     ac_prev=site ;;
387   -site=* | --site=* | --sit=*)
388     site="$ac_optarg" ;;
389
390   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391     ac_prev=srcdir ;;
392   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393     srcdir="$ac_optarg" ;;
394
395   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396   | --syscon | --sysco | --sysc | --sys | --sy)
397     ac_prev=sysconfdir ;;
398   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400     sysconfdir="$ac_optarg" ;;
401
402   -target | --target | --targe | --targ | --tar | --ta | --t)
403     ac_prev=target ;;
404   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405     target="$ac_optarg" ;;
406
407   -v | -verbose | --verbose | --verbos | --verbo | --verb)
408     verbose=yes ;;
409
410   -version | --version | --versio | --versi | --vers)
411     echo "configure generated by autoconf version 2.13"
412     exit 0 ;;
413
414   -with-* | --with-*)
415     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
416     # Reject names that are not valid shell variable names.
417     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
418       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419     fi
420     ac_package=`echo $ac_package| sed 's/-/_/g'`
421     case "$ac_option" in
422       *=*) ;;
423       *) ac_optarg=yes ;;
424     esac
425     eval "with_${ac_package}='$ac_optarg'" ;;
426
427   -without-* | --without-*)
428     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
429     # Reject names that are not valid shell variable names.
430     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432     fi
433     ac_package=`echo $ac_package| sed 's/-/_/g'`
434     eval "with_${ac_package}=no" ;;
435
436   --x)
437     # Obsolete; use --with-x.
438     with_x=yes ;;
439
440   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
441   | --x-incl | --x-inc | --x-in | --x-i)
442     ac_prev=x_includes ;;
443   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
444   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
445     x_includes="$ac_optarg" ;;
446
447   -x-libraries | --x-libraries | --x-librarie | --x-librari \
448   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
449     ac_prev=x_libraries ;;
450   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
451   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
452     x_libraries="$ac_optarg" ;;
453
454   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455     ;;
456
457   *)
458     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459       echo "configure: warning: $ac_option: invalid host type" 1>&2
460     fi
461     if test "x$nonopt" != xNONE; then
462       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
463     fi
464     nonopt="$ac_option"
465     ;;
466
467   esac
468 done
469
470 if test -n "$ac_prev"; then
471   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 fi
473
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
475
476 # File descriptor usage:
477 # 0 standard input
478 # 1 file creation
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
485   exec 6>/dev/null
486 else
487   exec 6>&1
488 fi
489 exec 5>./config.log
490
491 echo "\
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
494 " 1>&5
495
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
498 ac_configure_args=
499 for ac_arg
500 do
501   case "$ac_arg" in
502   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503   | --no-cr | --no-c) ;;
504   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
505   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
506   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
508   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
509   esac
510 done
511
512 # NLS nuisances.
513 # Only set these to C if already set.  These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
518 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
520 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
521
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 echo > confdefs.h
526
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file=include/common.h
530
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533   ac_srcdir_defaulted=yes
534   # Try the directory containing this script, then its parent.
535   ac_prog=$0
536   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538   srcdir=$ac_confdir
539   if test ! -r $srcdir/$ac_unique_file; then
540     srcdir=..
541   fi
542 else
543   ac_srcdir_defaulted=no
544 fi
545 if test ! -r $srcdir/$ac_unique_file; then
546   if test "$ac_srcdir_defaulted" = yes; then
547     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
548   else
549     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550   fi
551 fi
552 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
553
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$CONFIG_SITE"; then
556   if test "x$prefix" != xNONE; then
557     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
558   else
559     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560   fi
561 fi
562 for ac_site_file in $CONFIG_SITE; do
563   if test -r "$ac_site_file"; then
564     echo "loading site script $ac_site_file"
565     . "$ac_site_file"
566   fi
567 done
568
569 if test -r "$cache_file"; then
570   echo "loading cache $cache_file"
571   . $cache_file
572 else
573   echo "creating cache $cache_file"
574   > $cache_file
575 fi
576
577 ac_ext=c
578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
579 ac_cpp='$CPP $CPPFLAGS'
580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
582 cross_compiling=$ac_cv_prog_cc_cross
583
584 ac_exeext=
585 ac_objext=o
586 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
587   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
589     ac_n= ac_c='
590 ' ac_t='        '
591   else
592     ac_n=-n ac_c= ac_t=
593   fi
594 else
595   ac_n= ac_c='\c' ac_t=
596 fi
597
598
599
600
601 ac_aux_dir=
602 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
603   if test -f $ac_dir/install-sh; then
604     ac_aux_dir=$ac_dir
605     ac_install_sh="$ac_aux_dir/install-sh -c"
606     break
607   elif test -f $ac_dir/install.sh; then
608     ac_aux_dir=$ac_dir
609     ac_install_sh="$ac_aux_dir/install.sh -c"
610     break
611   fi
612 done
613 if test -z "$ac_aux_dir"; then
614   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
615 fi
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
619
620
621 # Do some error checking and defaulting for the host and target type.
622 # The inputs are:
623 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
624 #
625 # The rules are:
626 # 1. You are not allowed to specify --host, --target, and nonopt at the
627 #    same time.
628 # 2. Host defaults to nonopt.
629 # 3. If nonopt is not specified, then host defaults to the current host,
630 #    as determined by config.guess.
631 # 4. Target and build default to nonopt.
632 # 5. If nonopt is not specified, then target and build default to host.
633
634 # The aliases save the names the user supplied, while $host etc.
635 # will get canonicalized.
636 case $host---$target---$nonopt in
637 NONE---*---* | *---NONE---* | *---*---NONE) ;;
638 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
639 esac
640
641
642 # Make sure we can run config.sub.
643 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
644 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
645 fi
646
647 echo $ac_n "checking host system type""... $ac_c" 1>&6
648 echo "configure:649: checking host system type" >&5
649
650 host_alias=$host
651 case "$host_alias" in
652 NONE)
653   case $nonopt in
654   NONE)
655     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
656     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
657     fi ;;
658   *) host_alias=$nonopt ;;
659   esac ;;
660 esac
661
662 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
663 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
664 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
665 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
666 echo "$ac_t""$host" 1>&6
667
668 echo $ac_n "checking target system type""... $ac_c" 1>&6
669 echo "configure:670: checking target system type" >&5
670
671 target_alias=$target
672 case "$target_alias" in
673 NONE)
674   case $nonopt in
675   NONE) target_alias=$host_alias ;;
676   *) target_alias=$nonopt ;;
677   esac ;;
678 esac
679
680 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
681 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
682 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
683 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
684 echo "$ac_t""$target" 1>&6
685
686 echo $ac_n "checking build system type""... $ac_c" 1>&6
687 echo "configure:688: checking build system type" >&5
688
689 build_alias=$build
690 case "$build_alias" in
691 NONE)
692   case $nonopt in
693   NONE) build_alias=$host_alias ;;
694   *) build_alias=$nonopt ;;
695   esac ;;
696 esac
697
698 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
699 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
700 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
701 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
702 echo "$ac_t""$build" 1>&6
703
704 test "$host_alias" != "$target_alias" &&
705   test "$program_prefix$program_suffix$program_transform_name" = \
706     NONENONEs,x,x, &&
707   program_prefix=${target_alias}-
708
709
710 HAVE_VLC=0
711 if test -r src/interface/main.c; then
712   HAVE_VLC=1
713   VLC_VERSION=0.2.90
714   
715   VLC_CODENAME=Ourumov
716   
717 fi
718
719 HAVE_LIBDVDCSS=0
720 if test -r extras/libdvdcss/libdvdcss.c; then
721   HAVE_LIBDVDCSS=1
722   LIBDVDCSS_VERSION=0.0.3
723   
724   if test -r extras/libdvdcss/csskeys.h; then
725     cat >> confdefs.h <<\EOF
726 #define HAVE_CSSKEYS 1
727 EOF
728
729   fi
730 fi
731
732 save_CFLAGS="${CFLAGS}"
733 save_LDFLAGS="${LDFLAGS}"
734
735 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
736 echo "configure:737: checking whether ${MAKE-make} sets \${MAKE}" >&5
737 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
738 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
739   echo $ac_n "(cached) $ac_c" 1>&6
740 else
741   cat > conftestmake <<\EOF
742 all:
743         @echo 'ac_maketemp="${MAKE}"'
744 EOF
745 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
746 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
747 if test -n "$ac_maketemp"; then
748   eval ac_cv_prog_make_${ac_make}_set=yes
749 else
750   eval ac_cv_prog_make_${ac_make}_set=no
751 fi
752 rm -f conftestmake
753 fi
754 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
755   echo "$ac_t""yes" 1>&6
756   SET_MAKE=
757 else
758   echo "$ac_t""no" 1>&6
759   SET_MAKE="MAKE=${MAKE-make}"
760 fi
761
762 # Extract the first word of "gcc", so it can be a program name with args.
763 set dummy gcc; ac_word=$2
764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
765 echo "configure:766: checking for $ac_word" >&5
766 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
767   echo $ac_n "(cached) $ac_c" 1>&6
768 else
769   if test -n "$CC"; then
770   ac_cv_prog_CC="$CC" # Let the user override the test.
771 else
772   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
773   ac_dummy="$PATH"
774   for ac_dir in $ac_dummy; do
775     test -z "$ac_dir" && ac_dir=.
776     if test -f $ac_dir/$ac_word; then
777       ac_cv_prog_CC="gcc"
778       break
779     fi
780   done
781   IFS="$ac_save_ifs"
782 fi
783 fi
784 CC="$ac_cv_prog_CC"
785 if test -n "$CC"; then
786   echo "$ac_t""$CC" 1>&6
787 else
788   echo "$ac_t""no" 1>&6
789 fi
790
791 if test -z "$CC"; then
792   # Extract the first word of "cc", so it can be a program name with args.
793 set dummy cc; ac_word=$2
794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
795 echo "configure:796: checking for $ac_word" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
797   echo $ac_n "(cached) $ac_c" 1>&6
798 else
799   if test -n "$CC"; then
800   ac_cv_prog_CC="$CC" # Let the user override the test.
801 else
802   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
803   ac_prog_rejected=no
804   ac_dummy="$PATH"
805   for ac_dir in $ac_dummy; do
806     test -z "$ac_dir" && ac_dir=.
807     if test -f $ac_dir/$ac_word; then
808       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
809         ac_prog_rejected=yes
810         continue
811       fi
812       ac_cv_prog_CC="cc"
813       break
814     fi
815   done
816   IFS="$ac_save_ifs"
817 if test $ac_prog_rejected = yes; then
818   # We found a bogon in the path, so make sure we never use it.
819   set dummy $ac_cv_prog_CC
820   shift
821   if test $# -gt 0; then
822     # We chose a different compiler from the bogus one.
823     # However, it has the same basename, so the bogon will be chosen
824     # first if we set CC to just the basename; use the full file name.
825     shift
826     set dummy "$ac_dir/$ac_word" "$@"
827     shift
828     ac_cv_prog_CC="$@"
829   fi
830 fi
831 fi
832 fi
833 CC="$ac_cv_prog_CC"
834 if test -n "$CC"; then
835   echo "$ac_t""$CC" 1>&6
836 else
837   echo "$ac_t""no" 1>&6
838 fi
839
840   if test -z "$CC"; then
841     case "`uname -s`" in
842     *win32* | *WIN32*)
843       # Extract the first word of "cl", so it can be a program name with args.
844 set dummy cl; ac_word=$2
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
846 echo "configure:847: checking for $ac_word" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
848   echo $ac_n "(cached) $ac_c" 1>&6
849 else
850   if test -n "$CC"; then
851   ac_cv_prog_CC="$CC" # Let the user override the test.
852 else
853   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
854   ac_dummy="$PATH"
855   for ac_dir in $ac_dummy; do
856     test -z "$ac_dir" && ac_dir=.
857     if test -f $ac_dir/$ac_word; then
858       ac_cv_prog_CC="cl"
859       break
860     fi
861   done
862   IFS="$ac_save_ifs"
863 fi
864 fi
865 CC="$ac_cv_prog_CC"
866 if test -n "$CC"; then
867   echo "$ac_t""$CC" 1>&6
868 else
869   echo "$ac_t""no" 1>&6
870 fi
871  ;;
872     esac
873   fi
874   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
875 fi
876
877 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
878 echo "configure:879: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
879
880 ac_ext=c
881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
882 ac_cpp='$CPP $CPPFLAGS'
883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
885 cross_compiling=$ac_cv_prog_cc_cross
886
887 cat > conftest.$ac_ext << EOF
888
889 #line 890 "configure"
890 #include "confdefs.h"
891
892 main(){return(0);}
893 EOF
894 if { (eval echo configure:895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
895   ac_cv_prog_cc_works=yes
896   # If we can't run a trivial program, we are probably using a cross compiler.
897   if (./conftest; exit) 2>/dev/null; then
898     ac_cv_prog_cc_cross=no
899   else
900     ac_cv_prog_cc_cross=yes
901   fi
902 else
903   echo "configure: failed program was:" >&5
904   cat conftest.$ac_ext >&5
905   ac_cv_prog_cc_works=no
906 fi
907 rm -fr conftest*
908 ac_ext=c
909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
910 ac_cpp='$CPP $CPPFLAGS'
911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
913 cross_compiling=$ac_cv_prog_cc_cross
914
915 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
916 if test $ac_cv_prog_cc_works = no; then
917   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
918 fi
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
921 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
922 cross_compiling=$ac_cv_prog_cc_cross
923
924 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
925 echo "configure:926: checking whether we are using GNU C" >&5
926 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
927   echo $ac_n "(cached) $ac_c" 1>&6
928 else
929   cat > conftest.c <<EOF
930 #ifdef __GNUC__
931   yes;
932 #endif
933 EOF
934 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
935   ac_cv_prog_gcc=yes
936 else
937   ac_cv_prog_gcc=no
938 fi
939 fi
940
941 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
942
943 if test $ac_cv_prog_gcc = yes; then
944   GCC=yes
945 else
946   GCC=
947 fi
948
949 ac_test_CFLAGS="${CFLAGS+set}"
950 ac_save_CFLAGS="$CFLAGS"
951 CFLAGS=
952 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
953 echo "configure:954: checking whether ${CC-cc} accepts -g" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
955   echo $ac_n "(cached) $ac_c" 1>&6
956 else
957   echo 'void f(){}' > conftest.c
958 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
959   ac_cv_prog_cc_g=yes
960 else
961   ac_cv_prog_cc_g=no
962 fi
963 rm -f conftest*
964
965 fi
966
967 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
968 if test "$ac_test_CFLAGS" = set; then
969   CFLAGS="$ac_save_CFLAGS"
970 elif test $ac_cv_prog_cc_g = yes; then
971   if test "$GCC" = yes; then
972     CFLAGS="-g -O2"
973   else
974     CFLAGS="-g"
975   fi
976 else
977   if test "$GCC" = yes; then
978     CFLAGS="-O2"
979   else
980     CFLAGS=
981   fi
982 fi
983
984 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
985 echo "configure:986: checking how to run the C preprocessor" >&5
986 # On Suns, sometimes $CPP names a directory.
987 if test -n "$CPP" && test -d "$CPP"; then
988   CPP=
989 fi
990 if test -z "$CPP"; then
991 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
992   echo $ac_n "(cached) $ac_c" 1>&6
993 else
994     # This must be in double quotes, not single quotes, because CPP may get
995   # substituted into the Makefile and "${CC-cc}" will confuse make.
996   CPP="${CC-cc} -E"
997   # On the NeXT, cc -E runs the code through the compiler's parser,
998   # not just through cpp.
999   cat > conftest.$ac_ext <<EOF
1000 #line 1001 "configure"
1001 #include "confdefs.h"
1002 #include <assert.h>
1003 Syntax Error
1004 EOF
1005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1006 { (eval echo configure:1007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1008 if test -z "$ac_err"; then
1009   :
1010 else
1011   echo "$ac_err" >&5
1012   echo "configure: failed program was:" >&5
1013   cat conftest.$ac_ext >&5
1014   rm -rf conftest*
1015   CPP="${CC-cc} -E -traditional-cpp"
1016   cat > conftest.$ac_ext <<EOF
1017 #line 1018 "configure"
1018 #include "confdefs.h"
1019 #include <assert.h>
1020 Syntax Error
1021 EOF
1022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1023 { (eval echo configure:1024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1025 if test -z "$ac_err"; then
1026   :
1027 else
1028   echo "$ac_err" >&5
1029   echo "configure: failed program was:" >&5
1030   cat conftest.$ac_ext >&5
1031   rm -rf conftest*
1032   CPP="${CC-cc} -nologo -E"
1033   cat > conftest.$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1036 #include <assert.h>
1037 Syntax Error
1038 EOF
1039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1040 { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1042 if test -z "$ac_err"; then
1043   :
1044 else
1045   echo "$ac_err" >&5
1046   echo "configure: failed program was:" >&5
1047   cat conftest.$ac_ext >&5
1048   rm -rf conftest*
1049   CPP=/lib/cpp
1050 fi
1051 rm -f conftest*
1052 fi
1053 rm -f conftest*
1054 fi
1055 rm -f conftest*
1056   ac_cv_prog_CPP="$CPP"
1057 fi
1058   CPP="$ac_cv_prog_CPP"
1059 else
1060   ac_cv_prog_CPP="$CPP"
1061 fi
1062 echo "$ac_t""$CPP" 1>&6
1063
1064 # Extract the first word of "ranlib", so it can be a program name with args.
1065 set dummy ranlib; ac_word=$2
1066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1067 echo "configure:1068: checking for $ac_word" >&5
1068 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1069   echo $ac_n "(cached) $ac_c" 1>&6
1070 else
1071   if test -n "$RANLIB"; then
1072   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1073 else
1074   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1075   ac_dummy="$PATH"
1076   for ac_dir in $ac_dummy; do
1077     test -z "$ac_dir" && ac_dir=.
1078     if test -f $ac_dir/$ac_word; then
1079       ac_cv_prog_RANLIB="ranlib"
1080       break
1081     fi
1082   done
1083   IFS="$ac_save_ifs"
1084   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1085 fi
1086 fi
1087 RANLIB="$ac_cv_prog_RANLIB"
1088 if test -n "$RANLIB"; then
1089   echo "$ac_t""$RANLIB" 1>&6
1090 else
1091   echo "$ac_t""no" 1>&6
1092 fi
1093
1094
1095 # Find a good install program.  We prefer a C program (faster),
1096 # so one script is as good as another.  But avoid the broken or
1097 # incompatible versions:
1098 # SysV /etc/install, /usr/sbin/install
1099 # SunOS /usr/etc/install
1100 # IRIX /sbin/install
1101 # AIX /bin/install
1102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1105 # ./install, which can be erroneously created by make from ./install.sh.
1106 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1107 echo "configure:1108: checking for a BSD compatible install" >&5
1108 if test -z "$INSTALL"; then
1109 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1110   echo $ac_n "(cached) $ac_c" 1>&6
1111 else
1112     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1113   for ac_dir in $PATH; do
1114     # Account for people who put trailing slashes in PATH elements.
1115     case "$ac_dir/" in
1116     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1117     *)
1118       # OSF1 and SCO ODT 3.0 have their own names for install.
1119       # Don't use installbsd from OSF since it installs stuff as root
1120       # by default.
1121       for ac_prog in ginstall scoinst install; do
1122         if test -f $ac_dir/$ac_prog; then
1123           if test $ac_prog = install &&
1124             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1125             # AIX install.  It has an incompatible calling convention.
1126             :
1127           else
1128             ac_cv_path_install="$ac_dir/$ac_prog -c"
1129             break 2
1130           fi
1131         fi
1132       done
1133       ;;
1134     esac
1135   done
1136   IFS="$ac_save_IFS"
1137
1138 fi
1139   if test "${ac_cv_path_install+set}" = set; then
1140     INSTALL="$ac_cv_path_install"
1141   else
1142     # As a last resort, use the slow shell script.  We don't cache a
1143     # path for INSTALL within a source directory, because that will
1144     # break other packages using the cache if that directory is
1145     # removed, or if the path is relative.
1146     INSTALL="$ac_install_sh"
1147   fi
1148 fi
1149 echo "$ac_t""$INSTALL" 1>&6
1150
1151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1152 # It thinks the first close brace ends the variable substitution.
1153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1154
1155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1156
1157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1158
1159
1160 if test x${cross_compiling} != xyes; then
1161   echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether byte ordering is bigendian" >&5
1163 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1164   echo $ac_n "(cached) $ac_c" 1>&6
1165 else
1166   ac_cv_c_bigendian=unknown
1167 # See if sys/param.h defines the BYTE_ORDER macro.
1168 cat > conftest.$ac_ext <<EOF
1169 #line 1170 "configure"
1170 #include "confdefs.h"
1171 #include <sys/types.h>
1172 #include <sys/param.h>
1173 int main() {
1174
1175 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1176  bogus endian macros
1177 #endif
1178 ; return 0; }
1179 EOF
1180 if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1181   rm -rf conftest*
1182   # It does; now see whether it defined to BIG_ENDIAN or not.
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1186 #include <sys/types.h>
1187 #include <sys/param.h>
1188 int main() {
1189
1190 #if BYTE_ORDER != BIG_ENDIAN
1191  not big endian
1192 #endif
1193 ; return 0; }
1194 EOF
1195 if { (eval echo configure:1196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1196   rm -rf conftest*
1197   ac_cv_c_bigendian=yes
1198 else
1199   echo "configure: failed program was:" >&5
1200   cat conftest.$ac_ext >&5
1201   rm -rf conftest*
1202   ac_cv_c_bigendian=no
1203 fi
1204 rm -f conftest*
1205 else
1206   echo "configure: failed program was:" >&5
1207   cat conftest.$ac_ext >&5
1208 fi
1209 rm -f conftest*
1210 if test $ac_cv_c_bigendian = unknown; then
1211 if test "$cross_compiling" = yes; then
1212     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1213 else
1214   cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1217 main () {
1218   /* Are we little or big endian?  From Harbison&Steele.  */
1219   union
1220   {
1221     long l;
1222     char c[sizeof (long)];
1223   } u;
1224   u.l = 1;
1225   exit (u.c[sizeof (long) - 1] == 1);
1226 }
1227 EOF
1228 if { (eval echo configure:1229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1229 then
1230   ac_cv_c_bigendian=no
1231 else
1232   echo "configure: failed program was:" >&5
1233   cat conftest.$ac_ext >&5
1234   rm -fr conftest*
1235   ac_cv_c_bigendian=yes
1236 fi
1237 rm -fr conftest*
1238 fi
1239
1240 fi
1241 fi
1242
1243 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1244 if test $ac_cv_c_bigendian = yes; then
1245   cat >> confdefs.h <<\EOF
1246 #define WORDS_BIGENDIAN 1
1247 EOF
1248
1249 fi
1250
1251 else
1252       # Check whether --with-words or --without-words was given.
1253 if test "${with_words+set}" = set; then
1254   withval="$with_words"
1255   :
1256 fi
1257
1258   case "x$withval" in
1259     xbig)
1260       ac_cv_c_bigendian=yes
1261       ;;
1262     xlittle)
1263       ac_cv_c_bigendian=no
1264       ;;
1265     *)
1266                   ac_cv_c_bigendian=unknown
1267       echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6
1268 echo "configure:1269: checking what the byte order looks to be" >&5
1269         cat >conftest.c <<EOF
1270         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
1271         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
1272         void _a(void) { char*s = (char*)am; s = (char *)ai; }
1273         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
1274         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
1275         void _e(void) { char*s = (char*)em; s = (char*)ei; }
1276         int main(void) { _a(); _e(); return 0; }
1277 EOF
1278       
1279       if test -f conftest.c
1280       then 
1281         if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
1282             && test -f conftest.o
1283         then
1284           if test `grep -l BIGenDianSyS conftest.o`
1285           then
1286             echo "$ac_t"""big endian"" 1>&6
1287             ac_cv_c_bigendian=yes
1288           fi
1289           if test `grep -l LiTTleEnDian conftest.o`
1290           then
1291             echo "$ac_t"""little endian"" 1>&6
1292             ac_cv_c_bigendian=no
1293           fi
1294         fi
1295       fi
1296       if test $ac_cv_c_bigendian = xunknown
1297       then
1298         { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
1299       fi
1300             if test $ac_cv_c_bigendian = yes
1301       then
1302         cat >> confdefs.h <<\EOF
1303 #define WORDS_BIGENDIAN 1
1304 EOF
1305       fi
1306       ;;
1307   esac
1308 fi
1309
1310 for ac_func in gettimeofday select strerror strtod strtol
1311 do
1312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1313 echo "configure:1314: checking for $ac_func" >&5
1314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1315   echo $ac_n "(cached) $ac_c" 1>&6
1316 else
1317   cat > conftest.$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1320 /* System header to define __stub macros and hopefully few prototypes,
1321     which can conflict with char $ac_func(); below.  */
1322 #include <assert.h>
1323 /* Override any gcc2 internal prototype to avoid an error.  */
1324 /* We use char because int might match the return type of a gcc2
1325     builtin and then its argument prototype would still apply.  */
1326 char $ac_func();
1327
1328 int main() {
1329
1330 /* The GNU C library defines this for functions which it implements
1331     to always fail with ENOSYS.  Some functions are actually named
1332     something starting with __ and the normal name is an alias.  */
1333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1334 choke me
1335 #else
1336 $ac_func();
1337 #endif
1338
1339 ; return 0; }
1340 EOF
1341 if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1342   rm -rf conftest*
1343   eval "ac_cv_func_$ac_func=yes"
1344 else
1345   echo "configure: failed program was:" >&5
1346   cat conftest.$ac_ext >&5
1347   rm -rf conftest*
1348   eval "ac_cv_func_$ac_func=no"
1349 fi
1350 rm -f conftest*
1351 fi
1352
1353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1354   echo "$ac_t""yes" 1>&6
1355     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1356   cat >> confdefs.h <<EOF
1357 #define $ac_tr_func 1
1358 EOF
1359  
1360 else
1361   echo "$ac_t""no" 1>&6
1362 fi
1363 done
1364
1365 for ac_func in setenv putenv
1366 do
1367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_func" >&5
1369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1370   echo $ac_n "(cached) $ac_c" 1>&6
1371 else
1372   cat > conftest.$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1375 /* System header to define __stub macros and hopefully few prototypes,
1376     which can conflict with char $ac_func(); below.  */
1377 #include <assert.h>
1378 /* Override any gcc2 internal prototype to avoid an error.  */
1379 /* We use char because int might match the return type of a gcc2
1380     builtin and then its argument prototype would still apply.  */
1381 char $ac_func();
1382
1383 int main() {
1384
1385 /* The GNU C library defines this for functions which it implements
1386     to always fail with ENOSYS.  Some functions are actually named
1387     something starting with __ and the normal name is an alias.  */
1388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1389 choke me
1390 #else
1391 $ac_func();
1392 #endif
1393
1394 ; return 0; }
1395 EOF
1396 if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1397   rm -rf conftest*
1398   eval "ac_cv_func_$ac_func=yes"
1399 else
1400   echo "configure: failed program was:" >&5
1401   cat conftest.$ac_ext >&5
1402   rm -rf conftest*
1403   eval "ac_cv_func_$ac_func=no"
1404 fi
1405 rm -f conftest*
1406 fi
1407
1408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1409   echo "$ac_t""yes" 1>&6
1410     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1411   cat >> confdefs.h <<EOF
1412 #define $ac_tr_func 1
1413 EOF
1414  
1415 else
1416   echo "$ac_t""no" 1>&6
1417 fi
1418 done
1419
1420 echo $ac_n "checking for connect""... $ac_c" 1>&6
1421 echo "configure:1422: checking for connect" >&5
1422 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1423   echo $ac_n "(cached) $ac_c" 1>&6
1424 else
1425   cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 /* System header to define __stub macros and hopefully few prototypes,
1429     which can conflict with char connect(); below.  */
1430 #include <assert.h>
1431 /* Override any gcc2 internal prototype to avoid an error.  */
1432 /* We use char because int might match the return type of a gcc2
1433     builtin and then its argument prototype would still apply.  */
1434 char connect();
1435
1436 int main() {
1437
1438 /* The GNU C library defines this for functions which it implements
1439     to always fail with ENOSYS.  Some functions are actually named
1440     something starting with __ and the normal name is an alias.  */
1441 #if defined (__stub_connect) || defined (__stub___connect)
1442 choke me
1443 #else
1444 connect();
1445 #endif
1446
1447 ; return 0; }
1448 EOF
1449 if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1450   rm -rf conftest*
1451   eval "ac_cv_func_connect=yes"
1452 else
1453   echo "configure: failed program was:" >&5
1454   cat conftest.$ac_ext >&5
1455   rm -rf conftest*
1456   eval "ac_cv_func_connect=no"
1457 fi
1458 rm -f conftest*
1459 fi
1460
1461 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1462   echo "$ac_t""yes" 1>&6
1463   :
1464 else
1465   echo "$ac_t""no" 1>&6
1466
1467   echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1468 echo "configure:1469: checking for connect in -lsocket" >&5
1469 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1471   echo $ac_n "(cached) $ac_c" 1>&6
1472 else
1473   ac_save_LIBS="$LIBS"
1474 LIBS="-lsocket  $LIBS"
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1478 /* Override any gcc2 internal prototype to avoid an error.  */
1479 /* We use char because int might match the return type of a gcc2
1480     builtin and then its argument prototype would still apply.  */
1481 char connect();
1482
1483 int main() {
1484 connect()
1485 ; return 0; }
1486 EOF
1487 if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1488   rm -rf conftest*
1489   eval "ac_cv_lib_$ac_lib_var=yes"
1490 else
1491   echo "configure: failed program was:" >&5
1492   cat conftest.$ac_ext >&5
1493   rm -rf conftest*
1494   eval "ac_cv_lib_$ac_lib_var=no"
1495 fi
1496 rm -f conftest*
1497 LIBS="$ac_save_LIBS"
1498
1499 fi
1500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1501   echo "$ac_t""yes" 1>&6
1502   LIB="${LIB} -lsocket"
1503 else
1504   echo "$ac_t""no" 1>&6
1505 fi
1506
1507
1508 fi
1509
1510 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1511 echo "configure:1512: checking for gethostbyname" >&5
1512 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1513   echo $ac_n "(cached) $ac_c" 1>&6
1514 else
1515   cat > conftest.$ac_ext <<EOF
1516 #line 1517 "configure"
1517 #include "confdefs.h"
1518 /* System header to define __stub macros and hopefully few prototypes,
1519     which can conflict with char gethostbyname(); below.  */
1520 #include <assert.h>
1521 /* Override any gcc2 internal prototype to avoid an error.  */
1522 /* We use char because int might match the return type of a gcc2
1523     builtin and then its argument prototype would still apply.  */
1524 char gethostbyname();
1525
1526 int main() {
1527
1528 /* The GNU C library defines this for functions which it implements
1529     to always fail with ENOSYS.  Some functions are actually named
1530     something starting with __ and the normal name is an alias.  */
1531 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1532 choke me
1533 #else
1534 gethostbyname();
1535 #endif
1536
1537 ; return 0; }
1538 EOF
1539 if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1540   rm -rf conftest*
1541   eval "ac_cv_func_gethostbyname=yes"
1542 else
1543   echo "configure: failed program was:" >&5
1544   cat conftest.$ac_ext >&5
1545   rm -rf conftest*
1546   eval "ac_cv_func_gethostbyname=no"
1547 fi
1548 rm -f conftest*
1549 fi
1550
1551 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1552   echo "$ac_t""yes" 1>&6
1553   :
1554 else
1555   echo "$ac_t""no" 1>&6
1556
1557   echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1558 echo "configure:1559: checking for gethostbyname in -lnsl" >&5
1559 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1561   echo $ac_n "(cached) $ac_c" 1>&6
1562 else
1563   ac_save_LIBS="$LIBS"
1564 LIBS="-lnsl  $LIBS"
1565 cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1568 /* Override any gcc2 internal prototype to avoid an error.  */
1569 /* We use char because int might match the return type of a gcc2
1570     builtin and then its argument prototype would still apply.  */
1571 char gethostbyname();
1572
1573 int main() {
1574 gethostbyname()
1575 ; return 0; }
1576 EOF
1577 if { (eval echo configure:1578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1578   rm -rf conftest*
1579   eval "ac_cv_lib_$ac_lib_var=yes"
1580 else
1581   echo "configure: failed program was:" >&5
1582   cat conftest.$ac_ext >&5
1583   rm -rf conftest*
1584   eval "ac_cv_lib_$ac_lib_var=no"
1585 fi
1586 rm -f conftest*
1587 LIBS="$ac_save_LIBS"
1588
1589 fi
1590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1591   echo "$ac_t""yes" 1>&6
1592   LIB="${LIB} -lnsl"
1593 else
1594   echo "$ac_t""no" 1>&6
1595 fi
1596
1597
1598 fi
1599
1600 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1601 echo "configure:1602: checking for nanosleep" >&5
1602 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1603   echo $ac_n "(cached) $ac_c" 1>&6
1604 else
1605   cat > conftest.$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1608 /* System header to define __stub macros and hopefully few prototypes,
1609     which can conflict with char nanosleep(); below.  */
1610 #include <assert.h>
1611 /* Override any gcc2 internal prototype to avoid an error.  */
1612 /* We use char because int might match the return type of a gcc2
1613     builtin and then its argument prototype would still apply.  */
1614 char nanosleep();
1615
1616 int main() {
1617
1618 /* The GNU C library defines this for functions which it implements
1619     to always fail with ENOSYS.  Some functions are actually named
1620     something starting with __ and the normal name is an alias.  */
1621 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1622 choke me
1623 #else
1624 nanosleep();
1625 #endif
1626
1627 ; return 0; }
1628 EOF
1629 if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1630   rm -rf conftest*
1631   eval "ac_cv_func_nanosleep=yes"
1632 else
1633   echo "configure: failed program was:" >&5
1634   cat conftest.$ac_ext >&5
1635   rm -rf conftest*
1636   eval "ac_cv_func_nanosleep=no"
1637 fi
1638 rm -f conftest*
1639 fi
1640
1641 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1642   echo "$ac_t""yes" 1>&6
1643   :
1644 else
1645   echo "$ac_t""no" 1>&6
1646
1647   echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1648 echo "configure:1649: checking for nanosleep in -lrt" >&5
1649 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1651   echo $ac_n "(cached) $ac_c" 1>&6
1652 else
1653   ac_save_LIBS="$LIBS"
1654 LIBS="-lrt  $LIBS"
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* Override any gcc2 internal prototype to avoid an error.  */
1659 /* We use char because int might match the return type of a gcc2
1660     builtin and then its argument prototype would still apply.  */
1661 char nanosleep();
1662
1663 int main() {
1664 nanosleep()
1665 ; return 0; }
1666 EOF
1667 if { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1668   rm -rf conftest*
1669   eval "ac_cv_lib_$ac_lib_var=yes"
1670 else
1671   echo "configure: failed program was:" >&5
1672   cat conftest.$ac_ext >&5
1673   rm -rf conftest*
1674   eval "ac_cv_lib_$ac_lib_var=no"
1675 fi
1676 rm -f conftest*
1677 LIBS="$ac_save_LIBS"
1678
1679 fi
1680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1681   echo "$ac_t""yes" 1>&6
1682   LIB="${LIB} -lrt"
1683 else
1684   echo "$ac_t""no" 1>&6
1685
1686     echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1687 echo "configure:1688: checking for nanosleep in -lposix4" >&5
1688 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1690   echo $ac_n "(cached) $ac_c" 1>&6
1691 else
1692   ac_save_LIBS="$LIBS"
1693 LIBS="-lposix4  $LIBS"
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1697 /* Override any gcc2 internal prototype to avoid an error.  */
1698 /* We use char because int might match the return type of a gcc2
1699     builtin and then its argument prototype would still apply.  */
1700 char nanosleep();
1701
1702 int main() {
1703 nanosleep()
1704 ; return 0; }
1705 EOF
1706 if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1707   rm -rf conftest*
1708   eval "ac_cv_lib_$ac_lib_var=yes"
1709 else
1710   echo "configure: failed program was:" >&5
1711   cat conftest.$ac_ext >&5
1712   rm -rf conftest*
1713   eval "ac_cv_lib_$ac_lib_var=no"
1714 fi
1715 rm -f conftest*
1716 LIBS="$ac_save_LIBS"
1717
1718 fi
1719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1720   echo "$ac_t""yes" 1>&6
1721   LIB="${LIB} -lposix4"
1722 else
1723   echo "$ac_t""no" 1>&6
1724 fi
1725
1726   
1727 fi
1728
1729
1730 fi
1731
1732 for ac_func in usleep
1733 do
1734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1735 echo "configure:1736: checking for $ac_func" >&5
1736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1737   echo $ac_n "(cached) $ac_c" 1>&6
1738 else
1739   cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1742 /* System header to define __stub macros and hopefully few prototypes,
1743     which can conflict with char $ac_func(); below.  */
1744 #include <assert.h>
1745 /* Override any gcc2 internal prototype to avoid an error.  */
1746 /* We use char because int might match the return type of a gcc2
1747     builtin and then its argument prototype would still apply.  */
1748 char $ac_func();
1749
1750 int main() {
1751
1752 /* The GNU C library defines this for functions which it implements
1753     to always fail with ENOSYS.  Some functions are actually named
1754     something starting with __ and the normal name is an alias.  */
1755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1756 choke me
1757 #else
1758 $ac_func();
1759 #endif
1760
1761 ; return 0; }
1762 EOF
1763 if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1764   rm -rf conftest*
1765   eval "ac_cv_func_$ac_func=yes"
1766 else
1767   echo "configure: failed program was:" >&5
1768   cat conftest.$ac_ext >&5
1769   rm -rf conftest*
1770   eval "ac_cv_func_$ac_func=no"
1771 fi
1772 rm -f conftest*
1773 fi
1774
1775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1776   echo "$ac_t""yes" 1>&6
1777     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1778   cat >> confdefs.h <<EOF
1779 #define $ac_tr_func 1
1780 EOF
1781  
1782 else
1783   echo "$ac_t""no" 1>&6
1784 fi
1785 done
1786
1787 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1788 echo "configure:1789: checking for inet_aton" >&5
1789 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1790   echo $ac_n "(cached) $ac_c" 1>&6
1791 else
1792   cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 /* System header to define __stub macros and hopefully few prototypes,
1796     which can conflict with char inet_aton(); below.  */
1797 #include <assert.h>
1798 /* Override any gcc2 internal prototype to avoid an error.  */
1799 /* We use char because int might match the return type of a gcc2
1800     builtin and then its argument prototype would still apply.  */
1801 char inet_aton();
1802
1803 int main() {
1804
1805 /* The GNU C library defines this for functions which it implements
1806     to always fail with ENOSYS.  Some functions are actually named
1807     something starting with __ and the normal name is an alias.  */
1808 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1809 choke me
1810 #else
1811 inet_aton();
1812 #endif
1813
1814 ; return 0; }
1815 EOF
1816 if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1817   rm -rf conftest*
1818   eval "ac_cv_func_inet_aton=yes"
1819 else
1820   echo "configure: failed program was:" >&5
1821   cat conftest.$ac_ext >&5
1822   rm -rf conftest*
1823   eval "ac_cv_func_inet_aton=no"
1824 fi
1825 rm -f conftest*
1826 fi
1827
1828 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1829   echo "$ac_t""yes" 1>&6
1830   :
1831 else
1832   echo "$ac_t""no" 1>&6
1833
1834   echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1835 echo "configure:1836: checking for inet_aton in -lresolv" >&5
1836 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1838   echo $ac_n "(cached) $ac_c" 1>&6
1839 else
1840   ac_save_LIBS="$LIBS"
1841 LIBS="-lresolv  $LIBS"
1842 cat > conftest.$ac_ext <<EOF
1843 #line 1844 "configure"
1844 #include "confdefs.h"
1845 /* Override any gcc2 internal prototype to avoid an error.  */
1846 /* We use char because int might match the return type of a gcc2
1847     builtin and then its argument prototype would still apply.  */
1848 char inet_aton();
1849
1850 int main() {
1851 inet_aton()
1852 ; return 0; }
1853 EOF
1854 if { (eval echo configure:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1855   rm -rf conftest*
1856   eval "ac_cv_lib_$ac_lib_var=yes"
1857 else
1858   echo "configure: failed program was:" >&5
1859   cat conftest.$ac_ext >&5
1860   rm -rf conftest*
1861   eval "ac_cv_lib_$ac_lib_var=no"
1862 fi
1863 rm -f conftest*
1864 LIBS="$ac_save_LIBS"
1865
1866 fi
1867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1868   echo "$ac_t""yes" 1>&6
1869   LIB="${LIB} -lresolv"
1870 else
1871   echo "$ac_t""no" 1>&6
1872 fi
1873
1874
1875 fi
1876
1877 for ac_func in vasprintf
1878 do
1879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $ac_func" >&5
1881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1882   echo $ac_n "(cached) $ac_c" 1>&6
1883 else
1884   cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 /* System header to define __stub macros and hopefully few prototypes,
1888     which can conflict with char $ac_func(); below.  */
1889 #include <assert.h>
1890 /* Override any gcc2 internal prototype to avoid an error.  */
1891 /* We use char because int might match the return type of a gcc2
1892     builtin and then its argument prototype would still apply.  */
1893 char $ac_func();
1894
1895 int main() {
1896
1897 /* The GNU C library defines this for functions which it implements
1898     to always fail with ENOSYS.  Some functions are actually named
1899     something starting with __ and the normal name is an alias.  */
1900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1901 choke me
1902 #else
1903 $ac_func();
1904 #endif
1905
1906 ; return 0; }
1907 EOF
1908 if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1909   rm -rf conftest*
1910   eval "ac_cv_func_$ac_func=yes"
1911 else
1912   echo "configure: failed program was:" >&5
1913   cat conftest.$ac_ext >&5
1914   rm -rf conftest*
1915   eval "ac_cv_func_$ac_func=no"
1916 fi
1917 rm -f conftest*
1918 fi
1919
1920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1921   echo "$ac_t""yes" 1>&6
1922     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1923   cat >> confdefs.h <<EOF
1924 #define $ac_tr_func 1
1925 EOF
1926  
1927 else
1928   echo "$ac_t""no" 1>&6
1929 fi
1930 done
1931
1932 for ac_func in swab
1933 do
1934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1935 echo "configure:1936: checking for $ac_func" >&5
1936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1937   echo $ac_n "(cached) $ac_c" 1>&6
1938 else
1939   cat > conftest.$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1942 /* System header to define __stub macros and hopefully few prototypes,
1943     which can conflict with char $ac_func(); below.  */
1944 #include <assert.h>
1945 /* Override any gcc2 internal prototype to avoid an error.  */
1946 /* We use char because int might match the return type of a gcc2
1947     builtin and then its argument prototype would still apply.  */
1948 char $ac_func();
1949
1950 int main() {
1951
1952 /* The GNU C library defines this for functions which it implements
1953     to always fail with ENOSYS.  Some functions are actually named
1954     something starting with __ and the normal name is an alias.  */
1955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1956 choke me
1957 #else
1958 $ac_func();
1959 #endif
1960
1961 ; return 0; }
1962 EOF
1963 if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1964   rm -rf conftest*
1965   eval "ac_cv_func_$ac_func=yes"
1966 else
1967   echo "configure: failed program was:" >&5
1968   cat conftest.$ac_ext >&5
1969   rm -rf conftest*
1970   eval "ac_cv_func_$ac_func=no"
1971 fi
1972 rm -f conftest*
1973 fi
1974
1975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1976   echo "$ac_t""yes" 1>&6
1977     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1978   cat >> confdefs.h <<EOF
1979 #define $ac_tr_func 1
1980 EOF
1981  
1982 else
1983   echo "$ac_t""no" 1>&6
1984 fi
1985 done
1986
1987 for ac_func in memalign valloc
1988 do
1989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1990 echo "configure:1991: checking for $ac_func" >&5
1991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1992   echo $ac_n "(cached) $ac_c" 1>&6
1993 else
1994   cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 /* System header to define __stub macros and hopefully few prototypes,
1998     which can conflict with char $ac_func(); below.  */
1999 #include <assert.h>
2000 /* Override any gcc2 internal prototype to avoid an error.  */
2001 /* We use char because int might match the return type of a gcc2
2002     builtin and then its argument prototype would still apply.  */
2003 char $ac_func();
2004
2005 int main() {
2006
2007 /* The GNU C library defines this for functions which it implements
2008     to always fail with ENOSYS.  Some functions are actually named
2009     something starting with __ and the normal name is an alias.  */
2010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2011 choke me
2012 #else
2013 $ac_func();
2014 #endif
2015
2016 ; return 0; }
2017 EOF
2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2019   rm -rf conftest*
2020   eval "ac_cv_func_$ac_func=yes"
2021 else
2022   echo "configure: failed program was:" >&5
2023   cat conftest.$ac_ext >&5
2024   rm -rf conftest*
2025   eval "ac_cv_func_$ac_func=no"
2026 fi
2027 rm -f conftest*
2028 fi
2029
2030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2031   echo "$ac_t""yes" 1>&6
2032     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2033   cat >> confdefs.h <<EOF
2034 #define $ac_tr_func 1
2035 EOF
2036  
2037 else
2038   echo "$ac_t""no" 1>&6
2039 fi
2040 done
2041
2042
2043 for ac_func in sigrelse
2044 do
2045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2046 echo "configure:2047: checking for $ac_func" >&5
2047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2048   echo $ac_n "(cached) $ac_c" 1>&6
2049 else
2050   cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2053 /* System header to define __stub macros and hopefully few prototypes,
2054     which can conflict with char $ac_func(); below.  */
2055 #include <assert.h>
2056 /* Override any gcc2 internal prototype to avoid an error.  */
2057 /* We use char because int might match the return type of a gcc2
2058     builtin and then its argument prototype would still apply.  */
2059 char $ac_func();
2060
2061 int main() {
2062
2063 /* The GNU C library defines this for functions which it implements
2064     to always fail with ENOSYS.  Some functions are actually named
2065     something starting with __ and the normal name is an alias.  */
2066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2067 choke me
2068 #else
2069 $ac_func();
2070 #endif
2071
2072 ; return 0; }
2073 EOF
2074 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2075   rm -rf conftest*
2076   eval "ac_cv_func_$ac_func=yes"
2077 else
2078   echo "configure: failed program was:" >&5
2079   cat conftest.$ac_ext >&5
2080   rm -rf conftest*
2081   eval "ac_cv_func_$ac_func=no"
2082 fi
2083 rm -f conftest*
2084 fi
2085
2086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2087   echo "$ac_t""yes" 1>&6
2088     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2089   cat >> confdefs.h <<EOF
2090 #define $ac_tr_func 1
2091 EOF
2092  
2093 else
2094   echo "$ac_t""no" 1>&6
2095 fi
2096 done
2097
2098
2099 NEED_GETOPT=0
2100 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2101 echo "configure:2102: checking for getopt_long" >&5
2102 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2103   echo $ac_n "(cached) $ac_c" 1>&6
2104 else
2105   cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 /* System header to define __stub macros and hopefully few prototypes,
2109     which can conflict with char getopt_long(); below.  */
2110 #include <assert.h>
2111 /* Override any gcc2 internal prototype to avoid an error.  */
2112 /* We use char because int might match the return type of a gcc2
2113     builtin and then its argument prototype would still apply.  */
2114 char getopt_long();
2115
2116 int main() {
2117
2118 /* The GNU C library defines this for functions which it implements
2119     to always fail with ENOSYS.  Some functions are actually named
2120     something starting with __ and the normal name is an alias.  */
2121 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2122 choke me
2123 #else
2124 getopt_long();
2125 #endif
2126
2127 ; return 0; }
2128 EOF
2129 if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2130   rm -rf conftest*
2131   eval "ac_cv_func_getopt_long=yes"
2132 else
2133   echo "configure: failed program was:" >&5
2134   cat conftest.$ac_ext >&5
2135   rm -rf conftest*
2136   eval "ac_cv_func_getopt_long=no"
2137 fi
2138 rm -f conftest*
2139 fi
2140
2141 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2142   echo "$ac_t""yes" 1>&6
2143   cat >> confdefs.h <<\EOF
2144 #define HAVE_GETOPT_LONG 1
2145 EOF
2146
2147 else
2148   echo "$ac_t""no" 1>&6
2149  # FreeBSD has a gnugetopt library for this:
2150   echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
2151 echo "configure:2152: checking for getopt_long in -lgnugetopt" >&5
2152 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
2153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2154   echo $ac_n "(cached) $ac_c" 1>&6
2155 else
2156   ac_save_LIBS="$LIBS"
2157 LIBS="-lgnugetopt  $LIBS"
2158 cat > conftest.$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2161 /* Override any gcc2 internal prototype to avoid an error.  */
2162 /* We use char because int might match the return type of a gcc2
2163     builtin and then its argument prototype would still apply.  */
2164 char getopt_long();
2165
2166 int main() {
2167 getopt_long()
2168 ; return 0; }
2169 EOF
2170 if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2171   rm -rf conftest*
2172   eval "ac_cv_lib_$ac_lib_var=yes"
2173 else
2174   echo "configure: failed program was:" >&5
2175   cat conftest.$ac_ext >&5
2176   rm -rf conftest*
2177   eval "ac_cv_lib_$ac_lib_var=no"
2178 fi
2179 rm -f conftest*
2180 LIBS="$ac_save_LIBS"
2181
2182 fi
2183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2184   echo "$ac_t""yes" 1>&6
2185   cat >> confdefs.h <<\EOF
2186 #define HAVE_GETOPT_LONG 1
2187 EOF
2188  LIB="${LIB} -lgnugetopt"
2189 else
2190   echo "$ac_t""no" 1>&6
2191 NEED_GETOPT=1
2192 fi
2193
2194 fi
2195
2196
2197 for ac_hdr in unistd.h
2198 do
2199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2201 echo "configure:2202: checking for $ac_hdr" >&5
2202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2203   echo $ac_n "(cached) $ac_c" 1>&6
2204 else
2205   cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2208 #include <$ac_hdr>
2209 EOF
2210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2211 { (eval echo configure:2212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2213 if test -z "$ac_err"; then
2214   rm -rf conftest*
2215   eval "ac_cv_header_$ac_safe=yes"
2216 else
2217   echo "$ac_err" >&5
2218   echo "configure: failed program was:" >&5
2219   cat conftest.$ac_ext >&5
2220   rm -rf conftest*
2221   eval "ac_cv_header_$ac_safe=no"
2222 fi
2223 rm -f conftest*
2224 fi
2225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2226   echo "$ac_t""yes" 1>&6
2227     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2228   cat >> confdefs.h <<EOF
2229 #define $ac_tr_hdr 1
2230 EOF
2231  
2232 else
2233   echo "$ac_t""no" 1>&6
2234 fi
2235 done
2236
2237 for ac_func in getpagesize
2238 do
2239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2240 echo "configure:2241: checking for $ac_func" >&5
2241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2242   echo $ac_n "(cached) $ac_c" 1>&6
2243 else
2244   cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2247 /* System header to define __stub macros and hopefully few prototypes,
2248     which can conflict with char $ac_func(); below.  */
2249 #include <assert.h>
2250 /* Override any gcc2 internal prototype to avoid an error.  */
2251 /* We use char because int might match the return type of a gcc2
2252     builtin and then its argument prototype would still apply.  */
2253 char $ac_func();
2254
2255 int main() {
2256
2257 /* The GNU C library defines this for functions which it implements
2258     to always fail with ENOSYS.  Some functions are actually named
2259     something starting with __ and the normal name is an alias.  */
2260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2261 choke me
2262 #else
2263 $ac_func();
2264 #endif
2265
2266 ; return 0; }
2267 EOF
2268 if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2269   rm -rf conftest*
2270   eval "ac_cv_func_$ac_func=yes"
2271 else
2272   echo "configure: failed program was:" >&5
2273   cat conftest.$ac_ext >&5
2274   rm -rf conftest*
2275   eval "ac_cv_func_$ac_func=no"
2276 fi
2277 rm -f conftest*
2278 fi
2279
2280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2281   echo "$ac_t""yes" 1>&6
2282     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2283   cat >> confdefs.h <<EOF
2284 #define $ac_tr_func 1
2285 EOF
2286  
2287 else
2288   echo "$ac_t""no" 1>&6
2289 fi
2290 done
2291
2292 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2293 echo "configure:2294: checking for working mmap" >&5
2294 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2295   echo $ac_n "(cached) $ac_c" 1>&6
2296 else
2297   if test "$cross_compiling" = yes; then
2298   ac_cv_func_mmap_fixed_mapped=no
2299 else
2300   cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303
2304 /* Thanks to Mike Haertel and Jim Avera for this test.
2305    Here is a matrix of mmap possibilities:
2306         mmap private not fixed
2307         mmap private fixed at somewhere currently unmapped
2308         mmap private fixed at somewhere already mapped
2309         mmap shared not fixed
2310         mmap shared fixed at somewhere currently unmapped
2311         mmap shared fixed at somewhere already mapped
2312    For private mappings, we should verify that changes cannot be read()
2313    back from the file, nor mmap's back from the file at a different
2314    address.  (There have been systems where private was not correctly
2315    implemented like the infamous i386 svr4.0, and systems where the
2316    VM page cache was not coherent with the filesystem buffer cache
2317    like early versions of FreeBSD and possibly contemporary NetBSD.)
2318    For shared mappings, we should conversely verify that changes get
2319    propogated back to all the places they're supposed to be.
2320
2321    Grep wants private fixed already mapped.
2322    The main things grep needs to know about mmap are:
2323    * does it exist and is it safe to write into the mmap'd area
2324    * how to use it (BSD variants)  */
2325 #include <sys/types.h>
2326 #include <fcntl.h>
2327 #include <sys/mman.h>
2328 #include <stdlib.h>
2329 #include <sys/stat.h>
2330
2331 #ifdef HAVE_UNISTD_H
2332 # include <unistd.h>
2333 #endif
2334
2335 /* This mess was copied from the GNU getpagesize.h.  */
2336 #ifndef HAVE_GETPAGESIZE
2337
2338 /* Assume that all systems that can run configure have sys/param.h.  */
2339 # ifndef HAVE_SYS_PARAM_H
2340 #  define HAVE_SYS_PARAM_H 1
2341 # endif
2342
2343 # ifdef _SC_PAGESIZE
2344 #  define getpagesize() sysconf(_SC_PAGESIZE)
2345 # else /* no _SC_PAGESIZE */
2346 #  ifdef HAVE_SYS_PARAM_H
2347 #   include <sys/param.h>
2348 #   ifdef EXEC_PAGESIZE
2349 #    define getpagesize() EXEC_PAGESIZE
2350 #   else /* no EXEC_PAGESIZE */
2351 #    ifdef NBPG
2352 #     define getpagesize() NBPG * CLSIZE
2353 #     ifndef CLSIZE
2354 #      define CLSIZE 1
2355 #     endif /* no CLSIZE */
2356 #    else /* no NBPG */
2357 #     ifdef NBPC
2358 #      define getpagesize() NBPC
2359 #     else /* no NBPC */
2360 #      ifdef PAGESIZE
2361 #       define getpagesize() PAGESIZE
2362 #      endif /* PAGESIZE */
2363 #     endif /* no NBPC */
2364 #    endif /* no NBPG */
2365 #   endif /* no EXEC_PAGESIZE */
2366 #  else /* no HAVE_SYS_PARAM_H */
2367 #   define getpagesize() 8192   /* punt totally */
2368 #  endif /* no HAVE_SYS_PARAM_H */
2369 # endif /* no _SC_PAGESIZE */
2370
2371 #endif /* no HAVE_GETPAGESIZE */
2372
2373 #ifdef __cplusplus
2374 extern "C" { void *malloc(unsigned); }
2375 #else
2376 char *malloc();
2377 #endif
2378
2379 int
2380 main()
2381 {
2382         char *data, *data2, *data3;
2383         int i, pagesize;
2384         int fd;
2385
2386         pagesize = getpagesize();
2387
2388         /*
2389          * First, make a file with some known garbage in it.
2390          */
2391         data = (char*)malloc(pagesize);
2392         if (!data)
2393                 exit(1);
2394         for (i = 0; i < pagesize; ++i)
2395                 *(data + i) = rand();
2396         umask(0);
2397         fd = creat("conftestmmap", 0600);
2398         if (fd < 0)
2399                 exit(1);
2400         if (write(fd, data, pagesize) != pagesize)
2401                 exit(1);
2402         close(fd);
2403
2404         /*
2405          * Next, try to mmap the file at a fixed address which
2406          * already has something else allocated at it.  If we can,
2407          * also make sure that we see the same garbage.
2408          */
2409         fd = open("conftestmmap", O_RDWR);
2410         if (fd < 0)
2411                 exit(1);
2412         data2 = (char*)malloc(2 * pagesize);
2413         if (!data2)
2414                 exit(1);
2415         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2416         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2417             MAP_PRIVATE | MAP_FIXED, fd, 0L))
2418                 exit(1);
2419         for (i = 0; i < pagesize; ++i)
2420                 if (*(data + i) != *(data2 + i))
2421                         exit(1);
2422
2423         /*
2424          * Finally, make sure that changes to the mapped area
2425          * do not percolate back to the file as seen by read().
2426          * (This is a bug on some variants of i386 svr4.0.)
2427          */
2428         for (i = 0; i < pagesize; ++i)
2429                 *(data2 + i) = *(data2 + i) + 1;
2430         data3 = (char*)malloc(pagesize);
2431         if (!data3)
2432                 exit(1);
2433         if (read(fd, data3, pagesize) != pagesize)
2434                 exit(1);
2435         for (i = 0; i < pagesize; ++i)
2436                 if (*(data + i) != *(data3 + i))
2437                         exit(1);
2438         close(fd);
2439         unlink("conftestmmap");
2440         exit(0);
2441 }
2442
2443 EOF
2444 if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2445 then
2446   ac_cv_func_mmap_fixed_mapped=yes
2447 else
2448   echo "configure: failed program was:" >&5
2449   cat conftest.$ac_ext >&5
2450   rm -fr conftest*
2451   ac_cv_func_mmap_fixed_mapped=no
2452 fi
2453 rm -fr conftest*
2454 fi
2455
2456 fi
2457
2458 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2459 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2460   cat >> confdefs.h <<\EOF
2461 #define HAVE_MMAP 1
2462 EOF
2463
2464 fi
2465
2466 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2467 echo "configure:2468: checking return type of signal handlers" >&5
2468 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2469   echo $ac_n "(cached) $ac_c" 1>&6
2470 else
2471   cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2474 #include <sys/types.h>
2475 #include <signal.h>
2476 #ifdef signal
2477 #undef signal
2478 #endif
2479 #ifdef __cplusplus
2480 extern "C" void (*signal (int, void (*)(int)))(int);
2481 #else
2482 void (*signal ()) ();
2483 #endif
2484
2485 int main() {
2486 int i;
2487 ; return 0; }
2488 EOF
2489 if { (eval echo configure:2490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2490   rm -rf conftest*
2491   ac_cv_type_signal=void
2492 else
2493   echo "configure: failed program was:" >&5
2494   cat conftest.$ac_ext >&5
2495   rm -rf conftest*
2496   ac_cv_type_signal=int
2497 fi
2498 rm -f conftest*
2499 fi
2500
2501 echo "$ac_t""$ac_cv_type_signal" 1>&6
2502 cat >> confdefs.h <<EOF
2503 #define RETSIGTYPE $ac_cv_type_signal
2504 EOF
2505
2506
2507 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2508 echo "configure:2509: checking for dlopen in -ldl" >&5
2509 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2511   echo $ac_n "(cached) $ac_c" 1>&6
2512 else
2513   ac_save_LIBS="$LIBS"
2514 LIBS="-ldl  $LIBS"
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 /* Override any gcc2 internal prototype to avoid an error.  */
2519 /* We use char because int might match the return type of a gcc2
2520     builtin and then its argument prototype would still apply.  */
2521 char dlopen();
2522
2523 int main() {
2524 dlopen()
2525 ; return 0; }
2526 EOF
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2528   rm -rf conftest*
2529   eval "ac_cv_lib_$ac_lib_var=yes"
2530 else
2531   echo "configure: failed program was:" >&5
2532   cat conftest.$ac_ext >&5
2533   rm -rf conftest*
2534   eval "ac_cv_lib_$ac_lib_var=no"
2535 fi
2536 rm -f conftest*
2537 LIBS="$ac_save_LIBS"
2538
2539 fi
2540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2541   echo "$ac_t""yes" 1>&6
2542   LIB="${LIB} -ldl"
2543 else
2544   echo "$ac_t""no" 1>&6
2545 fi
2546
2547 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2548 echo "configure:2549: checking for pow in -lm" >&5
2549 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2551   echo $ac_n "(cached) $ac_c" 1>&6
2552 else
2553   ac_save_LIBS="$LIBS"
2554 LIBS="-lm  $LIBS"
2555 cat > conftest.$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2558 /* Override any gcc2 internal prototype to avoid an error.  */
2559 /* We use char because int might match the return type of a gcc2
2560     builtin and then its argument prototype would still apply.  */
2561 char pow();
2562
2563 int main() {
2564 pow()
2565 ; return 0; }
2566 EOF
2567 if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2568   rm -rf conftest*
2569   eval "ac_cv_lib_$ac_lib_var=yes"
2570 else
2571   echo "configure: failed program was:" >&5
2572   cat conftest.$ac_ext >&5
2573   rm -rf conftest*
2574   eval "ac_cv_lib_$ac_lib_var=no"
2575 fi
2576 rm -f conftest*
2577 LIBS="$ac_save_LIBS"
2578
2579 fi
2580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2581   echo "$ac_t""yes" 1>&6
2582   LIB_YUV="${LIB_YUV} -lm"
2583 else
2584   echo "$ac_t""no" 1>&6
2585 fi
2586
2587
2588 THREAD_LIB=error
2589 if test "x${THREAD_LIB}" = xerror; then
2590   echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2591 echo "configure:2592: checking for pthread_attr_init in -lpthread" >&5
2592 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2594   echo $ac_n "(cached) $ac_c" 1>&6
2595 else
2596   ac_save_LIBS="$LIBS"
2597 LIBS="-lpthread  $LIBS"
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 /* Override any gcc2 internal prototype to avoid an error.  */
2602 /* We use char because int might match the return type of a gcc2
2603     builtin and then its argument prototype would still apply.  */
2604 char pthread_attr_init();
2605
2606 int main() {
2607 pthread_attr_init()
2608 ; return 0; }
2609 EOF
2610 if { (eval echo configure:2611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2611   rm -rf conftest*
2612   eval "ac_cv_lib_$ac_lib_var=yes"
2613 else
2614   echo "configure: failed program was:" >&5
2615   cat conftest.$ac_ext >&5
2616   rm -rf conftest*
2617   eval "ac_cv_lib_$ac_lib_var=no"
2618 fi
2619 rm -f conftest*
2620 LIBS="$ac_save_LIBS"
2621
2622 fi
2623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2624   echo "$ac_t""yes" 1>&6
2625   THREAD_LIB="-lpthread"
2626 else
2627   echo "$ac_t""no" 1>&6
2628 fi
2629
2630 fi
2631 if test "x${THREAD_LIB}" = xerror; then
2632   echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2633 echo "configure:2634: checking for pthread_attr_init in -lpthreads" >&5
2634 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2636   echo $ac_n "(cached) $ac_c" 1>&6
2637 else
2638   ac_save_LIBS="$LIBS"
2639 LIBS="-lpthreads  $LIBS"
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 /* Override any gcc2 internal prototype to avoid an error.  */
2644 /* We use char because int might match the return type of a gcc2
2645     builtin and then its argument prototype would still apply.  */
2646 char pthread_attr_init();
2647
2648 int main() {
2649 pthread_attr_init()
2650 ; return 0; }
2651 EOF
2652 if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2653   rm -rf conftest*
2654   eval "ac_cv_lib_$ac_lib_var=yes"
2655 else
2656   echo "configure: failed program was:" >&5
2657   cat conftest.$ac_ext >&5
2658   rm -rf conftest*
2659   eval "ac_cv_lib_$ac_lib_var=no"
2660 fi
2661 rm -f conftest*
2662 LIBS="$ac_save_LIBS"
2663
2664 fi
2665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2666   echo "$ac_t""yes" 1>&6
2667   THREAD_LIB="-lpthreads"
2668 else
2669   echo "$ac_t""no" 1>&6
2670 fi
2671
2672 fi
2673 if test "x${THREAD_LIB}" = xerror; then
2674   echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2675 echo "configure:2676: checking for pthread_attr_init in -lc_r" >&5
2676 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2678   echo $ac_n "(cached) $ac_c" 1>&6
2679 else
2680   ac_save_LIBS="$LIBS"
2681 LIBS="-lc_r  $LIBS"
2682 cat > conftest.$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2685 /* Override any gcc2 internal prototype to avoid an error.  */
2686 /* We use char because int might match the return type of a gcc2
2687     builtin and then its argument prototype would still apply.  */
2688 char pthread_attr_init();
2689
2690 int main() {
2691 pthread_attr_init()
2692 ; return 0; }
2693 EOF
2694 if { (eval echo configure:2695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2695   rm -rf conftest*
2696   eval "ac_cv_lib_$ac_lib_var=yes"
2697 else
2698   echo "configure: failed program was:" >&5
2699   cat conftest.$ac_ext >&5
2700   rm -rf conftest*
2701   eval "ac_cv_lib_$ac_lib_var=no"
2702 fi
2703 rm -f conftest*
2704 LIBS="$ac_save_LIBS"
2705
2706 fi
2707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2708   echo "$ac_t""yes" 1>&6
2709   THREAD_LIB="-lc_r"
2710 else
2711   echo "$ac_t""no" 1>&6
2712 fi
2713
2714 fi
2715 if test "x${THREAD_LIB}" = xerror; then
2716   echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2717 echo "configure:2718: checking for pthread_attr_init" >&5
2718 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2719   echo $ac_n "(cached) $ac_c" 1>&6
2720 else
2721   cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2724 /* System header to define __stub macros and hopefully few prototypes,
2725     which can conflict with char pthread_attr_init(); below.  */
2726 #include <assert.h>
2727 /* Override any gcc2 internal prototype to avoid an error.  */
2728 /* We use char because int might match the return type of a gcc2
2729     builtin and then its argument prototype would still apply.  */
2730 char pthread_attr_init();
2731
2732 int main() {
2733
2734 /* The GNU C library defines this for functions which it implements
2735     to always fail with ENOSYS.  Some functions are actually named
2736     something starting with __ and the normal name is an alias.  */
2737 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2738 choke me
2739 #else
2740 pthread_attr_init();
2741 #endif
2742
2743 ; return 0; }
2744 EOF
2745 if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2746   rm -rf conftest*
2747   eval "ac_cv_func_pthread_attr_init=yes"
2748 else
2749   echo "configure: failed program was:" >&5
2750   cat conftest.$ac_ext >&5
2751   rm -rf conftest*
2752   eval "ac_cv_func_pthread_attr_init=no"
2753 fi
2754 rm -f conftest*
2755 fi
2756
2757 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2758   echo "$ac_t""yes" 1>&6
2759   :
2760 else
2761   echo "$ac_t""no" 1>&6
2762 fi
2763
2764   THREAD_LIB=""
2765 fi
2766
2767 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
2768 echo "configure:2769: checking for cthread_fork in -lthreads" >&5
2769 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
2770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2771   echo $ac_n "(cached) $ac_c" 1>&6
2772 else
2773   ac_save_LIBS="$LIBS"
2774 LIBS="-lthreads  $LIBS"
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 /* Override any gcc2 internal prototype to avoid an error.  */
2779 /* We use char because int might match the return type of a gcc2
2780     builtin and then its argument prototype would still apply.  */
2781 char cthread_fork();
2782
2783 int main() {
2784 cthread_fork()
2785 ; return 0; }
2786 EOF
2787 if { (eval echo configure:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2788   rm -rf conftest*
2789   eval "ac_cv_lib_$ac_lib_var=yes"
2790 else
2791   echo "configure: failed program was:" >&5
2792   cat conftest.$ac_ext >&5
2793   rm -rf conftest*
2794   eval "ac_cv_lib_$ac_lib_var=no"
2795 fi
2796 rm -f conftest*
2797 LIBS="$ac_save_LIBS"
2798
2799 fi
2800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2801   echo "$ac_t""yes" 1>&6
2802   THREAD_LIB="-lthreads"
2803 else
2804   echo "$ac_t""no" 1>&6
2805 fi
2806
2807
2808 cat > conftest.$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2811 #include <pthread.h>
2812 EOF
2813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2814   egrep "pthread_cond_t" >/dev/null 2>&1; then
2815   rm -rf conftest*
2816   
2817   cat >> confdefs.h <<\EOF
2818 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2819 EOF
2820
2821 fi
2822 rm -f conftest*
2823
2824 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2827 #include <strings.h>
2828 EOF
2829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2830   egrep "strncasecmp" >/dev/null 2>&1; then
2831   rm -rf conftest*
2832   
2833   cat >> confdefs.h <<\EOF
2834 #define STRNCASECMP_IN_STRINGS_H 1
2835 EOF
2836
2837 fi
2838 rm -f conftest*
2839
2840
2841 for ac_hdr in stddef.h getopt.h strings.h
2842 do
2843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2845 echo "configure:2846: checking for $ac_hdr" >&5
2846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2847   echo $ac_n "(cached) $ac_c" 1>&6
2848 else
2849   cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2852 #include <$ac_hdr>
2853 EOF
2854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2855 { (eval echo configure:2856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2857 if test -z "$ac_err"; then
2858   rm -rf conftest*
2859   eval "ac_cv_header_$ac_safe=yes"
2860 else
2861   echo "$ac_err" >&5
2862   echo "configure: failed program was:" >&5
2863   cat conftest.$ac_ext >&5
2864   rm -rf conftest*
2865   eval "ac_cv_header_$ac_safe=no"
2866 fi
2867 rm -f conftest*
2868 fi
2869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2870   echo "$ac_t""yes" 1>&6
2871     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2872   cat >> confdefs.h <<EOF
2873 #define $ac_tr_hdr 1
2874 EOF
2875  
2876 else
2877   echo "$ac_t""no" 1>&6
2878 fi
2879 done
2880
2881 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
2882 do
2883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2885 echo "configure:2886: checking for $ac_hdr" >&5
2886 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2887   echo $ac_n "(cached) $ac_c" 1>&6
2888 else
2889   cat > conftest.$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2892 #include <$ac_hdr>
2893 EOF
2894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2895 { (eval echo configure:2896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2897 if test -z "$ac_err"; then
2898   rm -rf conftest*
2899   eval "ac_cv_header_$ac_safe=yes"
2900 else
2901   echo "$ac_err" >&5
2902   echo "configure: failed program was:" >&5
2903   cat conftest.$ac_ext >&5
2904   rm -rf conftest*
2905   eval "ac_cv_header_$ac_safe=no"
2906 fi
2907 rm -f conftest*
2908 fi
2909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2910   echo "$ac_t""yes" 1>&6
2911     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2912   cat >> confdefs.h <<EOF
2913 #define $ac_tr_hdr 1
2914 EOF
2915  
2916 else
2917   echo "$ac_t""no" 1>&6
2918 fi
2919 done
2920
2921 for ac_hdr in sys/soundcard.h machine/soundcard.h
2922 do
2923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2925 echo "configure:2926: checking for $ac_hdr" >&5
2926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2927   echo $ac_n "(cached) $ac_c" 1>&6
2928 else
2929   cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 #include <$ac_hdr>
2933 EOF
2934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2935 { (eval echo configure:2936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2937 if test -z "$ac_err"; then
2938   rm -rf conftest*
2939   eval "ac_cv_header_$ac_safe=yes"
2940 else
2941   echo "$ac_err" >&5
2942   echo "configure: failed program was:" >&5
2943   cat conftest.$ac_ext >&5
2944   rm -rf conftest*
2945   eval "ac_cv_header_$ac_safe=no"
2946 fi
2947 rm -f conftest*
2948 fi
2949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2950   echo "$ac_t""yes" 1>&6
2951     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2952   cat >> confdefs.h <<EOF
2953 #define $ac_tr_hdr 1
2954 EOF
2955  
2956 else
2957   echo "$ac_t""no" 1>&6
2958 fi
2959 done
2960
2961 for ac_hdr in dlfcn.h image.h
2962 do
2963 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2965 echo "configure:2966: checking for $ac_hdr" >&5
2966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2967   echo $ac_n "(cached) $ac_c" 1>&6
2968 else
2969   cat > conftest.$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2972 #include <$ac_hdr>
2973 EOF
2974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2975 { (eval echo configure:2976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2977 if test -z "$ac_err"; then
2978   rm -rf conftest*
2979   eval "ac_cv_header_$ac_safe=yes"
2980 else
2981   echo "$ac_err" >&5
2982   echo "configure: failed program was:" >&5
2983   cat conftest.$ac_ext >&5
2984   rm -rf conftest*
2985   eval "ac_cv_header_$ac_safe=no"
2986 fi
2987 rm -f conftest*
2988 fi
2989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2990   echo "$ac_t""yes" 1>&6
2991     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2992   cat >> confdefs.h <<EOF
2993 #define $ac_tr_hdr 1
2994 EOF
2995  
2996 else
2997   echo "$ac_t""no" 1>&6
2998 fi
2999 done
3000
3001 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
3002 do
3003 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3004 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3005 echo "configure:3006: checking for $ac_hdr" >&5
3006 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3007   echo $ac_n "(cached) $ac_c" 1>&6
3008 else
3009   cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 #include <$ac_hdr>
3013 EOF
3014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3015 { (eval echo configure:3016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3017 if test -z "$ac_err"; then
3018   rm -rf conftest*
3019   eval "ac_cv_header_$ac_safe=yes"
3020 else
3021   echo "$ac_err" >&5
3022   echo "configure: failed program was:" >&5
3023   cat conftest.$ac_ext >&5
3024   rm -rf conftest*
3025   eval "ac_cv_header_$ac_safe=no"
3026 fi
3027 rm -f conftest*
3028 fi
3029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3030   echo "$ac_t""yes" 1>&6
3031     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3032   cat >> confdefs.h <<EOF
3033 #define $ac_tr_hdr 1
3034 EOF
3035  
3036 else
3037   echo "$ac_t""no" 1>&6
3038 fi
3039 done
3040
3041 for ac_hdr in machine/param.h
3042 do
3043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3045 echo "configure:3046: checking for $ac_hdr" >&5
3046 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3047   echo $ac_n "(cached) $ac_c" 1>&6
3048 else
3049   cat > conftest.$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 #include <$ac_hdr>
3053 EOF
3054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3055 { (eval echo configure:3056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3057 if test -z "$ac_err"; then
3058   rm -rf conftest*
3059   eval "ac_cv_header_$ac_safe=yes"
3060 else
3061   echo "$ac_err" >&5
3062   echo "configure: failed program was:" >&5
3063   cat conftest.$ac_ext >&5
3064   rm -rf conftest*
3065   eval "ac_cv_header_$ac_safe=no"
3066 fi
3067 rm -f conftest*
3068 fi
3069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3070   echo "$ac_t""yes" 1>&6
3071     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3072   cat >> confdefs.h <<EOF
3073 #define $ac_tr_hdr 1
3074 EOF
3075  
3076 else
3077   echo "$ac_t""no" 1>&6
3078 fi
3079 done
3080
3081
3082 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
3083 do
3084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_hdr" >&5
3087 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3088   echo $ac_n "(cached) $ac_c" 1>&6
3089 else
3090   cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093 #include <$ac_hdr>
3094 EOF
3095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3096 { (eval echo configure:3097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3098 if test -z "$ac_err"; then
3099   rm -rf conftest*
3100   eval "ac_cv_header_$ac_safe=yes"
3101 else
3102   echo "$ac_err" >&5
3103   echo "configure: failed program was:" >&5
3104   cat conftest.$ac_ext >&5
3105   rm -rf conftest*
3106   eval "ac_cv_header_$ac_safe=no"
3107 fi
3108 rm -f conftest*
3109 fi
3110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3111   echo "$ac_t""yes" 1>&6
3112     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3113   cat >> confdefs.h <<EOF
3114 #define $ac_tr_hdr 1
3115 EOF
3116  
3117 else
3118   echo "$ac_t""no" 1>&6
3119 fi
3120 done
3121
3122
3123 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
3124 echo "configure:3125: checking for ntohl in sys/param.h" >&5
3125 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
3126   echo $ac_n "(cached) $ac_c" 1>&6
3127 else
3128   CFLAGS="${save_CFLAGS} -Wall -Werror"
3129      cat > conftest.$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3132 #include <sys/param.h>
3133 int main() {
3134 void foo() { int meuh; ntohl(meuh); }
3135 ; return 0; }
3136 EOF
3137 if { (eval echo configure:3138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3138   rm -rf conftest*
3139   ac_cv_c_ntohl_sys_param_h=yes
3140 else
3141   echo "configure: failed program was:" >&5
3142   cat conftest.$ac_ext >&5
3143   rm -rf conftest*
3144   ac_cv_c_ntohl_sys_param_h=no
3145 fi
3146 rm -f conftest*
3147 fi
3148
3149 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
3150 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
3151     cat >> confdefs.h <<\EOF
3152 #define NTOHL_IN_SYS_PARAM_H 1
3153 EOF
3154
3155 fi
3156
3157 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
3158 echo "configure:3159: checking if \$CC accepts -finline-limit" >&5
3159 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
3160   echo $ac_n "(cached) $ac_c" 1>&6
3161 else
3162   CFLAGS="${save_CFLAGS} -finline-limit-30000"
3163      cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3166
3167 int main() {
3168
3169 ; return 0; }
3170 EOF
3171 if { (eval echo configure:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3172   rm -rf conftest*
3173   ac_cv_c_inline_limit=yes
3174 else
3175   echo "configure: failed program was:" >&5
3176   cat conftest.$ac_ext >&5
3177   rm -rf conftest*
3178   ac_cv_c_inline_limit=no
3179 fi
3180 rm -f conftest*
3181 fi
3182
3183 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
3184 if test x"$ac_cv_c_inline_limit" != x"no"; then
3185     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
3186 fi
3187
3188 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
3189 echo "configure:3190: checking if \$CC accepts -bundle -undefined error" >&5
3190 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
3191   echo $ac_n "(cached) $ac_c" 1>&6
3192 else
3193   CFLAGS="${save_CFLAGS} -bundle -undefined error"
3194      cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197
3198 int main() {
3199
3200 ; return 0; }
3201 EOF
3202 if { (eval echo configure:3203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203   rm -rf conftest*
3204   ac_cv_ld_darwin=yes
3205 else
3206   echo "configure: failed program was:" >&5
3207   cat conftest.$ac_ext >&5
3208   rm -rf conftest*
3209   ac_cv_ld_darwin=no
3210 fi
3211 rm -f conftest*
3212 fi
3213
3214 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
3215 if test x"$ac_cv_ld_darwin" != x"no"; then
3216     PLCFLAGS="${PLCFLAGS} -bundle -undefined error"
3217 fi
3218
3219 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
3220 echo "configure:3221: checking if \$CC accepts -shared" >&5
3221 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
3222   echo $ac_n "(cached) $ac_c" 1>&6
3223 else
3224   CFLAGS="${save_CFLAGS} -shared"
3225      cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3228
3229 int main() {
3230
3231 ; return 0; }
3232 EOF
3233 if { (eval echo configure:3234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3234   rm -rf conftest*
3235   ac_cv_ld_plugins=yes
3236 else
3237   echo "configure: failed program was:" >&5
3238   cat conftest.$ac_ext >&5
3239   rm -rf conftest*
3240   ac_cv_ld_plugins=no
3241 fi
3242 rm -f conftest*
3243 fi
3244
3245 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
3246 if test x"$ac_cv_ld_plugins" != x"no"; then
3247     PLCFLAGS="${PLCFLAGS} -shared"
3248 fi
3249         
3250 if test x"${SOFLAGS}" = x; then
3251     echo $ac_n "checking for soname setting""... $ac_c" 1>&6
3252 echo "configure:3253: checking for soname setting" >&5
3253 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
3254   echo $ac_n "(cached) $ac_c" 1>&6
3255 else
3256   
3257         # Standard
3258         try_SOFLAGS="-Wl,-soname -Wl,"
3259         LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3260         cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3263
3264 int main() {
3265
3266 ; return 0; }
3267 EOF
3268 if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3269   rm -rf conftest*
3270   ac_cv_ld_soname="${try_SOFLAGS}"
3271 else
3272   echo "configure: failed program was:" >&5
3273   cat conftest.$ac_ext >&5
3274   rm -rf conftest*
3275   
3276             # SunOS
3277             try_SOFLAGS="-Wl,-h -Wl,"
3278             LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3279             cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282
3283 int main() {
3284
3285 ; return 0; }
3286 EOF
3287 if { (eval echo configure:3288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3288   rm -rf conftest*
3289   ac_cv_ld_soname="${try_SOFLAGS}"
3290 else
3291   echo "configure: failed program was:" >&5
3292   cat conftest.$ac_ext >&5
3293   rm -rf conftest*
3294   ac_cv_ld_soname=none
3295 fi
3296 rm -f conftest*
3297         
3298 fi
3299 rm -f conftest*
3300 fi
3301
3302 echo "$ac_t""$ac_cv_ld_soname" 1>&6
3303     if test x"$ac_cv_ld_soname" != x"none"; then
3304         SOFLAGS=$ac_cv_ld_soname
3305     else
3306         echo "
3307 ------------
3308 Your system doesn't seem to have support for dynamic linking. You may
3309 have problems using libdvdcss.
3310 ------------
3311 "
3312     fi
3313 fi
3314
3315 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
3316 echo "configure:3317: checking __attribute__ ((aligned ())) support" >&5
3317 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
3318   echo $ac_n "(cached) $ac_c" 1>&6
3319 else
3320   ac_cv_c_attribute_aligned=0
3321         CFLAGS="${save_CFLAGS} -Werror"
3322     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
3323         cat > conftest.$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3326
3327 int main() {
3328 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
3329 ; return 0; }
3330 EOF
3331 if { (eval echo configure:3332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3332   rm -rf conftest*
3333   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
3334 else
3335   echo "configure: failed program was:" >&5
3336   cat conftest.$ac_ext >&5
3337 fi
3338 rm -f conftest*
3339     done
3340 fi
3341
3342 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
3343 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
3344     cat >> confdefs.h <<EOF
3345 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
3346 EOF
3347
3348 fi
3349
3350 CFLAGS="${save_CFLAGS}"
3351 LDFLAGS="${save_LDFLAGS}"
3352
3353 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3354 echo "configure:3355: checking for boolean_t in sys/types.h" >&5
3355 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
3356   echo $ac_n "(cached) $ac_c" 1>&6
3357 else
3358   cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 #include <sys/types.h>
3362 int main() {
3363 void quux() { boolean_t foo; }
3364 ; return 0; }
3365 EOF
3366 if { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3367   rm -rf conftest*
3368   ac_cv_c_boolean_t_sys_types_h=yes
3369 else
3370   echo "configure: failed program was:" >&5
3371   cat conftest.$ac_ext >&5
3372   rm -rf conftest*
3373   ac_cv_c_boolean_t_sys_types_h=no
3374 fi
3375 rm -f conftest*
3376 fi
3377
3378 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
3379 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
3380     cat >> confdefs.h <<\EOF
3381 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3382 EOF
3383
3384 fi
3385
3386 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3387 echo "configure:3388: checking for boolean_t in pthread.h" >&5
3388 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
3389   echo $ac_n "(cached) $ac_c" 1>&6
3390 else
3391   cat > conftest.$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 #include <pthread.h>
3395 int main() {
3396 void quux() { boolean_t foo; }
3397 ; return 0; }
3398 EOF
3399 if { (eval echo configure:3400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3400   rm -rf conftest*
3401   ac_cv_c_boolean_t_pthread_h=yes
3402 else
3403   echo "configure: failed program was:" >&5
3404   cat conftest.$ac_ext >&5
3405   rm -rf conftest*
3406   ac_cv_c_boolean_t_pthread_h=no
3407 fi
3408 rm -f conftest*
3409 fi
3410
3411 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
3412 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
3413     cat >> confdefs.h <<\EOF
3414 #define BOOLEAN_T_IN_PTHREAD_H 1
3415 EOF
3416
3417 fi
3418
3419 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
3420 echo "configure:3421: checking for boolean_t in cthreads.h" >&5
3421 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
3422   echo $ac_n "(cached) $ac_c" 1>&6
3423 else
3424   cat > conftest.$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 #include <cthreads.h>
3428 int main() {
3429 void quux() { boolean_t foo; }
3430 ; return 0; }
3431 EOF
3432 if { (eval echo configure:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3433   rm -rf conftest*
3434   ac_cv_c_boolean_t_cthreads_h=yes
3435 else
3436   echo "configure: failed program was:" >&5
3437   cat conftest.$ac_ext >&5
3438   rm -rf conftest*
3439   ac_cv_c_boolean_t_cthreads_h=no
3440 fi
3441 rm -f conftest*
3442 fi
3443
3444 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
3445 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
3446     cat >> confdefs.h <<\EOF
3447 #define BOOLEAN_T_IN_CTHREADS_H 1
3448 EOF
3449
3450 fi
3451
3452 echo $ac_n "checking for working const""... $ac_c" 1>&6
3453 echo "configure:3454: checking for working const" >&5
3454 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3455   echo $ac_n "(cached) $ac_c" 1>&6
3456 else
3457   cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460
3461 int main() {
3462
3463 /* Ultrix mips cc rejects this.  */
3464 typedef int charset[2]; const charset x = {0,0};
3465 /* SunOS 4.1.1 cc rejects this.  */
3466 char const *const *ccp;
3467 char **p;
3468 /* NEC SVR4.0.2 mips cc rejects this.  */
3469 struct point {int x, y;};
3470 static struct point const zero = {0,0};
3471 /* AIX XL C 1.02.0.0 rejects this.
3472    It does not let you subtract one const X* pointer from another in an arm
3473    of an if-expression whose if-part is not a constant expression */
3474 const char *g = "string";
3475 ccp = &g + (g ? g-g : 0);
3476 /* HPUX 7.0 cc rejects these. */
3477 ++ccp;
3478 p = (char**) ccp;
3479 ccp = (char const *const *) p;
3480 { /* SCO 3.2v4 cc rejects this.  */
3481   char *t;
3482   char const *s = 0 ? (char *) 0 : (char const *) 0;
3483
3484   *t++ = 0;
3485 }
3486 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3487   int x[] = {25, 17};
3488   const int *foo = &x[0];
3489   ++foo;
3490 }
3491 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3492   typedef const int *iptr;
3493   iptr p = 0;
3494   ++p;
3495 }
3496 { /* AIX XL C 1.02.0.0 rejects this saying
3497      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3498   struct s { int j; const int *ap[3]; };
3499   struct s *b; b->j = 5;
3500 }
3501 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3502   const int foo = 10;
3503 }
3504
3505 ; return 0; }
3506 EOF
3507 if { (eval echo configure:3508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3508   rm -rf conftest*
3509   ac_cv_c_const=yes
3510 else
3511   echo "configure: failed program was:" >&5
3512   cat conftest.$ac_ext >&5
3513   rm -rf conftest*
3514   ac_cv_c_const=no
3515 fi
3516 rm -f conftest*
3517 fi
3518
3519 echo "$ac_t""$ac_cv_c_const" 1>&6
3520 if test $ac_cv_c_const = no; then
3521   cat >> confdefs.h <<\EOF
3522 #define const 
3523 EOF
3524
3525 fi
3526
3527 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3528 echo "configure:3529: checking for ANSI C header files" >&5
3529 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3530   echo $ac_n "(cached) $ac_c" 1>&6
3531 else
3532   cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3535 #include <stdlib.h>
3536 #include <stdarg.h>
3537 #include <string.h>
3538 #include <float.h>
3539 EOF
3540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3541 { (eval echo configure:3542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3543 if test -z "$ac_err"; then
3544   rm -rf conftest*
3545   ac_cv_header_stdc=yes
3546 else
3547   echo "$ac_err" >&5
3548   echo "configure: failed program was:" >&5
3549   cat conftest.$ac_ext >&5
3550   rm -rf conftest*
3551   ac_cv_header_stdc=no
3552 fi
3553 rm -f conftest*
3554
3555 if test $ac_cv_header_stdc = yes; then
3556   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 #include <string.h>
3561 EOF
3562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3563   egrep "memchr" >/dev/null 2>&1; then
3564   :
3565 else
3566   rm -rf conftest*
3567   ac_cv_header_stdc=no
3568 fi
3569 rm -f conftest*
3570
3571 fi
3572
3573 if test $ac_cv_header_stdc = yes; then
3574   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <stdlib.h>
3579 EOF
3580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3581   egrep "free" >/dev/null 2>&1; then
3582   :
3583 else
3584   rm -rf conftest*
3585   ac_cv_header_stdc=no
3586 fi
3587 rm -f conftest*
3588
3589 fi
3590
3591 if test $ac_cv_header_stdc = yes; then
3592   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3593 if test "$cross_compiling" = yes; then
3594   :
3595 else
3596   cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 #include <ctype.h>
3600 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3601 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3603 int main () { int i; for (i = 0; i < 256; i++)
3604 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3605 exit (0); }
3606
3607 EOF
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3609 then
3610   :
3611 else
3612   echo "configure: failed program was:" >&5
3613   cat conftest.$ac_ext >&5
3614   rm -fr conftest*
3615   ac_cv_header_stdc=no
3616 fi
3617 rm -fr conftest*
3618 fi
3619
3620 fi
3621 fi
3622
3623 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3624 if test $ac_cv_header_stdc = yes; then
3625   cat >> confdefs.h <<\EOF
3626 #define STDC_HEADERS 1
3627 EOF
3628
3629 fi
3630
3631 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3632 echo "configure:3633: checking for size_t" >&5
3633 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3634   echo $ac_n "(cached) $ac_c" 1>&6
3635 else
3636   cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 #include <sys/types.h>
3640 #if STDC_HEADERS
3641 #include <stdlib.h>
3642 #include <stddef.h>
3643 #endif
3644 EOF
3645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3646   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3647   rm -rf conftest*
3648   ac_cv_type_size_t=yes
3649 else
3650   rm -rf conftest*
3651   ac_cv_type_size_t=no
3652 fi
3653 rm -f conftest*
3654
3655 fi
3656 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3657 if test $ac_cv_type_size_t = no; then
3658   cat >> confdefs.h <<\EOF
3659 #define size_t unsigned
3660 EOF
3661
3662 fi
3663
3664 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3665 echo "configure:3666: checking whether time.h and sys/time.h may both be included" >&5
3666 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3667   echo $ac_n "(cached) $ac_c" 1>&6
3668 else
3669   cat > conftest.$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3672 #include <sys/types.h>
3673 #include <sys/time.h>
3674 #include <time.h>
3675 int main() {
3676 struct tm *tp;
3677 ; return 0; }
3678 EOF
3679 if { (eval echo configure:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3680   rm -rf conftest*
3681   ac_cv_header_time=yes
3682 else
3683   echo "configure: failed program was:" >&5
3684   cat conftest.$ac_ext >&5
3685   rm -rf conftest*
3686   ac_cv_header_time=no
3687 fi
3688 rm -f conftest*
3689 fi
3690
3691 echo "$ac_t""$ac_cv_header_time" 1>&6
3692 if test $ac_cv_header_time = yes; then
3693   cat >> confdefs.h <<\EOF
3694 #define TIME_WITH_SYS_TIME 1
3695 EOF
3696
3697 fi
3698
3699
3700
3701 ARCH=${target_cpu}
3702
3703 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3704 PLUGINS="${PLUGINS}"
3705
3706 MMX_MODULES="yuvmmx idctmmx motionmmx"
3707 MMXEXT_MODULES="idctmmxext motionmmxext"
3708 THREEDNOW_MODULES="imdct3dn downmix3dn"
3709 SSE_MODULES="imdctsse downmixsse"
3710 ALTIVEC_MODULES="idctaltivec motionaltivec"
3711
3712 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3713 echo "configure:3714: checking if \$CC groks MMX inline assembly" >&5
3714 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
3715   echo $ac_n "(cached) $ac_c" 1>&6
3716 else
3717   cat > conftest.$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3720
3721 int main() {
3722 void quux(){void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));}
3723 ; return 0; }
3724 EOF
3725 if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3726   rm -rf conftest*
3727   ac_cv_mmx_inline=yes
3728 else
3729   echo "configure: failed program was:" >&5
3730   cat conftest.$ac_ext >&5
3731   rm -rf conftest*
3732   ac_cv_mmx_inline=no
3733 fi
3734 rm -f conftest*
3735 fi
3736
3737 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
3738 if test x"$ac_cv_mmx_inline" != x"no"; then
3739   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3740 fi
3741
3742 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
3743 echo "configure:3744: checking if \$CC groks MMX EXT inline assembly" >&5
3744 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
3745   echo $ac_n "(cached) $ac_c" 1>&6
3746 else
3747   cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3750
3751 int main() {
3752 void quux(){void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));}
3753 ; return 0; }
3754 EOF
3755 if { (eval echo configure:3756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3756   rm -rf conftest*
3757   ac_cv_mmxext_inline=yes
3758 else
3759   echo "configure: failed program was:" >&5
3760   cat conftest.$ac_ext >&5
3761   rm -rf conftest*
3762   ac_cv_mmxext_inline=no
3763 fi
3764 rm -f conftest*
3765 fi
3766
3767 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
3768 if test x"$ac_cv_mmxext_inline" != x"no"; then
3769   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3770 fi
3771
3772 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
3773 echo "configure:3774: checking if \$CC groks 3D Now! inline assembly" >&5
3774 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
3775   echo $ac_n "(cached) $ac_c" 1>&6
3776 else
3777   cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3780
3781 int main() {
3782 void quux(){void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));}
3783 ; return 0; }
3784 EOF
3785 if { (eval echo configure:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3786   rm -rf conftest*
3787   ac_cv_3dnow_inline=yes
3788 else
3789   echo "configure: failed program was:" >&5
3790   cat conftest.$ac_ext >&5
3791   rm -rf conftest*
3792   ac_cv_3dnow_inline=no
3793 fi
3794 rm -f conftest*
3795 fi
3796
3797 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
3798 if test x"$ac_cv_3dnow_inline" != x"no"; then
3799   cat >> confdefs.h <<\EOF
3800 #define HAVE_3DNOW 1
3801 EOF
3802
3803   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
3804 fi
3805
3806 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
3807 echo "configure:3808: checking if \$CC groks SSE inline assembly" >&5
3808 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
3809   echo $ac_n "(cached) $ac_c" 1>&6
3810 else
3811   cat > conftest.$ac_ext <<EOF
3812 #line 3813 "configure"
3813 #include "confdefs.h"
3814
3815 int main() {
3816 void quux(){void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));}
3817 ; return 0; }
3818 EOF
3819 if { (eval echo configure:3820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3820   rm -rf conftest*
3821   ac_cv_sse_inline=yes
3822 else
3823   echo "configure: failed program was:" >&5
3824   cat conftest.$ac_ext >&5
3825   rm -rf conftest*
3826   ac_cv_sse_inline=no
3827 fi
3828 rm -f conftest*
3829 fi
3830
3831 echo "$ac_t""$ac_cv_sse_inline" 1>&6
3832 if test x"$ac_cv_sse_inline" != x"no"; then
3833   cat >> confdefs.h <<\EOF
3834 #define HAVE_SSE 1
3835 EOF
3836
3837   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
3838 fi
3839
3840 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
3841 echo "configure:3842: checking if \$CC groks Altivec inline assembly" >&5
3842 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
3843   echo $ac_n "(cached) $ac_c" 1>&6
3844 else
3845   cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848
3849 int main() {
3850 void quux(){asm volatile("vperm 0,1,2,3");}
3851 ; return 0; }
3852 EOF
3853 if { (eval echo configure:3854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3854   rm -rf conftest*
3855   ac_cv_altivec_inline=yes
3856 else
3857   echo "configure: failed program was:" >&5
3858   cat conftest.$ac_ext >&5
3859   rm -rf conftest*
3860   save_CFLAGS=$CFLAGS
3861           CFLAGS="$CFLAGS -Wa,-m7400"
3862           cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3865
3866 int main() {
3867 void quux(){asm volatile("vperm 0,1,2,3");}
3868 ; return 0; }
3869 EOF
3870 if { (eval echo configure:3871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3871   rm -rf conftest*
3872   ac_cv_altivec_inline=yes; CFLAGS_ALTIVEC="-Wa,-m7400"
3873 else
3874   echo "configure: failed program was:" >&5
3875   cat conftest.$ac_ext >&5
3876   rm -rf conftest*
3877   ac_cv_altivec_inline=no
3878 fi
3879 rm -f conftest*
3880           CFLAGS=$save_CFLAGS
3881          
3882 fi
3883 rm -f conftest*
3884 fi
3885
3886 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
3887 if test x"$ac_cv_altivec_inline" != x"no"; then
3888   cat >> confdefs.h <<\EOF
3889 #define HAVE_ALTIVEC 1
3890 EOF
3891
3892   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
3893 fi
3894
3895 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
3896 echo "configure:3897: checking if \$CC groks Altivec C extensions" >&5
3897 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
3898   echo $ac_n "(cached) $ac_c" 1>&6
3899 else
3900   save_CFLAGS=$CFLAGS
3901      CFLAGS="$CFLAGS -faltivec"
3902      # Darwin test
3903      cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906
3907 int main() {
3908 void quux(){vec_mtvscr((vector unsigned int)(0));}
3909 ; return 0; }
3910 EOF
3911 if { (eval echo configure:3912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3912   rm -rf conftest*
3913   ac_cv_c_altivec=-faltivec
3914 else
3915   echo "configure: failed program was:" >&5
3916   cat conftest.$ac_ext >&5
3917   rm -rf conftest*
3918   
3919         # Linux/PPC test
3920         CFLAGS="$save_CFLAGS $CFLAGS_ALTIVEC -fvec"
3921         cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3924
3925 int main() {
3926 void quux(){vec_mtvscr((vector unsigned int)(0));}
3927 ; return 0; }
3928 EOF
3929 if { (eval echo configure:3930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3930   rm -rf conftest*
3931   ac_cv_c_altivec="-fvec"
3932 else
3933   echo "configure: failed program was:" >&5
3934   cat conftest.$ac_ext >&5
3935   rm -rf conftest*
3936   ac_cv_c_altivec=no
3937 fi
3938 rm -f conftest*
3939         
3940 fi
3941 rm -f conftest*
3942      CFLAGS=$save_CFLAGS
3943     
3944 fi
3945
3946 echo "$ac_t""$ac_cv_c_altivec" 1>&6
3947 if test x"$ac_cv_c_altivec" != x"no"; then
3948   cat >> confdefs.h <<\EOF
3949 #define HAVE_C_ALTIVEC 1
3950 EOF
3951
3952   CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec"
3953 fi
3954
3955 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
3956 echo "configure:3957: checking if linker needs -framework vecLib" >&5
3957 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
3958   echo $ac_n "(cached) $ac_c" 1>&6
3959 else
3960   save_LDFLAGS=$LDFLAGS
3961      LDFLAGS="$LDFLAGS -framework vecLib"
3962      cat > conftest.$ac_ext <<EOF
3963 #line 3964 "configure"
3964 #include "confdefs.h"
3965
3966 int main() {
3967
3968 ; return 0; }
3969 EOF
3970 if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3971   rm -rf conftest*
3972   ac_cv_ld_altivec=yes
3973 else
3974   echo "configure: failed program was:" >&5
3975   cat conftest.$ac_ext >&5
3976   rm -rf conftest*
3977   ac_cv_ld_altivec=no
3978 fi
3979 rm -f conftest*
3980      LDFLAGS=$save_LDFLAGS
3981     
3982 fi
3983
3984 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
3985 if test x"$ac_cv_ld_altivec" != x"no"; then
3986   LIB_ALTIVEC="-framework vecLib"
3987 fi
3988
3989
3990 CAN_BUILD_LIBDVDCSS=0
3991
3992 for ac_hdr in winioctl.h
3993 do
3994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3996 echo "configure:3997: checking for $ac_hdr" >&5
3997 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3998   echo $ac_n "(cached) $ac_c" 1>&6
3999 else
4000   cat > conftest.$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 #include <$ac_hdr>
4004 EOF
4005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4006 { (eval echo configure:4007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4008 if test -z "$ac_err"; then
4009   rm -rf conftest*
4010   eval "ac_cv_header_$ac_safe=yes"
4011 else
4012   echo "$ac_err" >&5
4013   echo "configure: failed program was:" >&5
4014   cat conftest.$ac_ext >&5
4015   rm -rf conftest*
4016   eval "ac_cv_header_$ac_safe=no"
4017 fi
4018 rm -f conftest*
4019 fi
4020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4021   echo "$ac_t""yes" 1>&6
4022     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4023   cat >> confdefs.h <<EOF
4024 #define $ac_tr_hdr 1
4025 EOF
4026  
4027   CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4028
4029 else
4030   echo "$ac_t""no" 1>&6
4031 fi
4032 done
4033
4034
4035 for ac_hdr in sys/ioctl.h
4036 do
4037 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4039 echo "configure:4040: checking for $ac_hdr" >&5
4040 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4041   echo $ac_n "(cached) $ac_c" 1>&6
4042 else
4043   cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4046 #include <$ac_hdr>
4047 EOF
4048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4049 { (eval echo configure:4050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4051 if test -z "$ac_err"; then
4052   rm -rf conftest*
4053   eval "ac_cv_header_$ac_safe=yes"
4054 else
4055   echo "$ac_err" >&5
4056   echo "configure: failed program was:" >&5
4057   cat conftest.$ac_ext >&5
4058   rm -rf conftest*
4059   eval "ac_cv_header_$ac_safe=no"
4060 fi
4061 rm -f conftest*
4062 fi
4063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4064   echo "$ac_t""yes" 1>&6
4065     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4066   cat >> confdefs.h <<EOF
4067 #define $ac_tr_hdr 1
4068 EOF
4069  
4070   CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4071   for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
4072 do
4073 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4075 echo "configure:4076: checking for $ac_hdr" >&5
4076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4077   echo $ac_n "(cached) $ac_c" 1>&6
4078 else
4079   cat > conftest.$ac_ext <<EOF
4080 #line 4081 "configure"
4081 #include "confdefs.h"
4082 #include <$ac_hdr>
4083 EOF
4084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4085 { (eval echo configure:4086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4087 if test -z "$ac_err"; then
4088   rm -rf conftest*
4089   eval "ac_cv_header_$ac_safe=yes"
4090 else
4091   echo "$ac_err" >&5
4092   echo "configure: failed program was:" >&5
4093   cat conftest.$ac_ext >&5
4094   rm -rf conftest*
4095   eval "ac_cv_header_$ac_safe=no"
4096 fi
4097 rm -f conftest*
4098 fi
4099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4100   echo "$ac_t""yes" 1>&6
4101     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4102   cat >> confdefs.h <<EOF
4103 #define $ac_tr_hdr 1
4104 EOF
4105  
4106 else
4107   echo "$ac_t""no" 1>&6
4108 fi
4109 done
4110
4111   BSD_DVD_STRUCT=0
4112   LINUX_DVD_STRUCT=0
4113         cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4116 #include <sys/cdio.h>
4117 EOF
4118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119   egrep "dvd_struct" >/dev/null 2>&1; then
4120   rm -rf conftest*
4121   
4122     cat >> confdefs.h <<\EOF
4123 #define DVD_STRUCT_IN_SYS_CDIO_H 1
4124 EOF
4125
4126     cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4129 #include <sys/cdio.h>
4130 EOF
4131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4132   egrep "struct dvd_struct" >/dev/null 2>&1; then
4133   rm -rf conftest*
4134   
4135                     BSD_DVD_STRUCT=1
4136 else
4137   rm -rf conftest*
4138   LINUX_DVD_STRUCT=1
4139 fi
4140 rm -f conftest*
4141
4142   
4143 fi
4144 rm -f conftest*
4145
4146         cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 #include <sys/dvdio.h>
4150 EOF
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152   egrep "dvd_struct" >/dev/null 2>&1; then
4153   rm -rf conftest*
4154   
4155     cat >> confdefs.h <<\EOF
4156 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
4157 EOF
4158
4159     cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 #include <sys/dvdio.h>
4163 EOF
4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165   egrep "struct dvd_struct" >/dev/null 2>&1; then
4166   rm -rf conftest*
4167   
4168                     BSD_DVD_STRUCT=1
4169 else
4170   rm -rf conftest*
4171   LINUX_DVD_STRUCT=1
4172 fi
4173 rm -f conftest*
4174
4175   
4176 fi
4177 rm -f conftest*
4178
4179         cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4182 #include <linux/cdrom.h>
4183 EOF
4184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4185   egrep "dvd_struct" >/dev/null 2>&1; then
4186   rm -rf conftest*
4187   
4188     cat >> confdefs.h <<\EOF
4189 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
4190 EOF
4191
4192     LINUX_DVD_STRUCT=1
4193   
4194 fi
4195 rm -f conftest*
4196
4197         NEED_BSDI_LIBDVD=0
4198   cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 #include <dvd.h>
4202 EOF
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204   egrep "dvd_struct" >/dev/null 2>&1; then
4205   rm -rf conftest*
4206   
4207     cat >> confdefs.h <<\EOF
4208 #define DVD_STRUCT_IN_DVD_H 1
4209 EOF
4210
4211     LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
4212     LINUX_DVD_STRUCT=1
4213   
4214 else
4215   rm -rf conftest*
4216   
4217                 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
4218 do
4219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4221 echo "configure:4222: checking for $ac_hdr" >&5
4222 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4223   echo $ac_n "(cached) $ac_c" 1>&6
4224 else
4225   cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 #include <$ac_hdr>
4229 EOF
4230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4231 { (eval echo configure:4232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4233 if test -z "$ac_err"; then
4234   rm -rf conftest*
4235   eval "ac_cv_header_$ac_safe=yes"
4236 else
4237   echo "$ac_err" >&5
4238   echo "configure: failed program was:" >&5
4239   cat conftest.$ac_ext >&5
4240   rm -rf conftest*
4241   eval "ac_cv_header_$ac_safe=no"
4242 fi
4243 rm -f conftest*
4244 fi
4245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4246   echo "$ac_t""yes" 1>&6
4247     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4248   cat >> confdefs.h <<EOF
4249 #define $ac_tr_hdr 1
4250 EOF
4251  
4252       NEED_BSDI_LIBDVD=1
4253       cat >> confdefs.h <<\EOF
4254 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
4255 EOF
4256
4257       OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
4258       LINUX_DVD_STRUCT=1
4259     
4260 else
4261   echo "$ac_t""no" 1>&6
4262 fi
4263 done
4264
4265   
4266 fi
4267 rm -f conftest*
4268
4269         ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
4270 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
4271 echo "configure:4272: checking for sys/scsi/scsi_types.h" >&5
4272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4273   echo $ac_n "(cached) $ac_c" 1>&6
4274 else
4275   cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4278 #include <sys/scsi/scsi_types.h>
4279 EOF
4280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4281 { (eval echo configure:4282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4283 if test -z "$ac_err"; then
4284   rm -rf conftest*
4285   eval "ac_cv_header_$ac_safe=yes"
4286 else
4287   echo "$ac_err" >&5
4288   echo "configure: failed program was:" >&5
4289   cat conftest.$ac_ext >&5
4290   rm -rf conftest*
4291   eval "ac_cv_header_$ac_safe=no"
4292 fi
4293 rm -f conftest*
4294 fi
4295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4296   echo "$ac_t""yes" 1>&6
4297   
4298     ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
4299 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
4300 echo "configure:4301: checking for sys/scsi/impl/uscsi.h" >&5
4301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4302   echo $ac_n "(cached) $ac_c" 1>&6
4303 else
4304   cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 #include <sys/scsi/impl/uscsi.h>
4308 EOF
4309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4310 { (eval echo configure:4311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4312 if test -z "$ac_err"; then
4313   rm -rf conftest*
4314   eval "ac_cv_header_$ac_safe=yes"
4315 else
4316   echo "$ac_err" >&5
4317   echo "configure: failed program was:" >&5
4318   cat conftest.$ac_ext >&5
4319   rm -rf conftest*
4320   eval "ac_cv_header_$ac_safe=no"
4321 fi
4322 rm -f conftest*
4323 fi
4324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4325   echo "$ac_t""yes" 1>&6
4326   
4327       cat >> confdefs.h <<\EOF
4328 #define SOLARIS_USCSI 1
4329 EOF
4330
4331     
4332 else
4333   echo "$ac_t""no" 1>&6
4334 fi
4335
4336   
4337 else
4338   echo "$ac_t""no" 1>&6
4339 fi
4340
4341         if test x$LINUX_DVD_STRUCT = x1; then
4342     cat >> confdefs.h <<\EOF
4343 #define HAVE_LINUX_DVD_STRUCT 1
4344 EOF
4345
4346   else
4347     if test x$BSD_DVD_STRUCT = x1; then
4348       cat >> confdefs.h <<\EOF
4349 #define HAVE_BSD_DVD_STRUCT 1
4350 EOF
4351
4352     fi
4353   fi
4354
4355 else
4356   echo "$ac_t""no" 1>&6
4357 fi
4358 done
4359
4360
4361
4362 case ${target_os} in
4363   bsdi*)
4364     SYS=bsdi
4365     ;;
4366   darwin*)
4367     SYS=darwin
4368     ;;
4369   *)
4370     SYS=${target_os}
4371     ;;
4372 esac
4373
4374 # Check whether --with-tuning or --without-tuning was given.
4375 if test "${with_tuning+set}" = set; then
4376   withval="$with_tuning"
4377   :
4378 fi
4379
4380 if test "x$withval" != "x"; then
4381     TUNING=$withval
4382 else
4383     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
4384     else
4385         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
4386     fi
4387 fi
4388
4389 # Check whether --enable-mmx or --disable-mmx was given.
4390 if test "${enable_mmx+set}" = set; then
4391   enableval="$enable_mmx"
4392    if test x$enableval = xyes; then ARCH="${ARCH} mmx";
4393     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
4394 else
4395    if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386; then ARCH="${ARCH} mmx";
4396     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
4397 fi
4398
4399
4400 # Check whether --enable-altivec or --disable-altivec was given.
4401 if test "${enable_altivec+set}" = set; then
4402   enableval="$enable_altivec"
4403    if test x$enableval = xyes; then ARCH="${ARCH} altivec";
4404     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
4405 else
4406    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
4407     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
4408 fi
4409
4410
4411 DEBUG=0
4412 # Check whether --enable-debug or --disable-debug was given.
4413 if test "${enable_debug+set}" = set; then
4414   enableval="$enable_debug"
4415    if test x$enableval = xyes; then DEBUG=1; fi 
4416 fi
4417
4418
4419 TRACE=0
4420 # Check whether --enable-trace or --disable-trace was given.
4421 if test "${enable_trace+set}" = set; then
4422   enableval="$enable_trace"
4423    if test x$enableval = xyes; then TRACE=1; fi 
4424 fi
4425
4426
4427 GPROF=0
4428 # Check whether --enable-gprof or --disable-gprof was given.
4429 if test "${enable_gprof+set}" = set; then
4430   enableval="$enable_gprof"
4431    if test x$enableval = xyes; then GPROF=1; fi 
4432 fi
4433
4434
4435 CPROF=0
4436 # Check whether --enable-cprof or --disable-cprof was given.
4437 if test "${enable_cprof+set}" = set; then
4438   enableval="$enable_cprof"
4439    if test x$enableval = xyes;
4440   then
4441     LIB="${LIB} -lcprof"
4442     CPROF=1
4443   fi
4444
4445 fi
4446
4447
4448 # Check whether --enable-optimizations or --disable-optimizations was given.
4449 if test "${enable_optimizations+set}" = set; then
4450   enableval="$enable_optimizations"
4451    if test x$enableval = xno; then OPTIMS=0; fi 
4452 else
4453    OPTIMS=1 
4454 fi
4455
4456
4457 # Check whether --enable-pth or --disable-pth was given.
4458 if test "${enable_pth+set}" = set; then
4459   enableval="$enable_pth"
4460    if test x$enableval = xyes; then
4461     echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
4462 echo "configure:4463: checking for pth_init in -lpth" >&5
4463 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
4464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4465   echo $ac_n "(cached) $ac_c" 1>&6
4466 else
4467   ac_save_LIBS="$LIBS"
4468 LIBS="-lpth  $LIBS"
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4472 /* Override any gcc2 internal prototype to avoid an error.  */
4473 /* We use char because int might match the return type of a gcc2
4474     builtin and then its argument prototype would still apply.  */
4475 char pth_init();
4476
4477 int main() {
4478 pth_init()
4479 ; return 0; }
4480 EOF
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4482   rm -rf conftest*
4483   eval "ac_cv_lib_$ac_lib_var=yes"
4484 else
4485   echo "configure: failed program was:" >&5
4486   cat conftest.$ac_ext >&5
4487   rm -rf conftest*
4488   eval "ac_cv_lib_$ac_lib_var=no"
4489 fi
4490 rm -f conftest*
4491 LIBS="$ac_save_LIBS"
4492
4493 fi
4494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4495   echo "$ac_t""yes" 1>&6
4496     ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4497     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4498   cat >> confdefs.h <<EOF
4499 #define $ac_tr_lib 1
4500 EOF
4501
4502   LIBS="-lpth $LIBS"
4503
4504 else
4505   echo "$ac_t""no" 1>&6
4506 fi
4507
4508     cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4511 #include <pth.h>
4512 EOF
4513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4514   egrep "pth_init" >/dev/null 2>&1; then
4515   rm -rf conftest*
4516   
4517       cat >> confdefs.h <<\EOF
4518 #define PTH_INIT_IN_PTH_H 1
4519 EOF
4520
4521     THREAD_LIB="-lpth"
4522     fi
4523 fi
4524 rm -f conftest*
4525
4526
4527 fi
4528
4529
4530 LIB="${LIB} ${THREAD_LIB}"
4531
4532 NEED_LIBDVDCSS=0
4533 STATIC_LIBDVDCSS=0
4534 DUMMY_LIBDVDCSS=0
4535 # Check whether --with-dvdcss or --without-dvdcss was given.
4536 if test "${with_dvdcss+set}" = set; then
4537   withval="$with_dvdcss"
4538    case "x${withval}" in
4539     xlocal-static|xyes)
4540       # local libdvdcss, statically linked
4541       if test x${CAN_BUILD_LIBDVDCSS} = x1
4542       then
4543         NEED_LIBDVDCSS=1
4544         STATIC_LIBDVDCSS=1
4545         BUILTINS="${BUILTINS} dvd"
4546         CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4547         LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4548         LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4549       fi
4550     ;;
4551     xlocal-shared)
4552       # local libdvdcss, dynamically linked
4553       if test x${CAN_BUILD_LIBDVDCSS} = x1
4554       then
4555         NEED_LIBDVDCSS=1
4556         BUILTINS="${BUILTINS} dvd"
4557         CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4558         LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
4559         LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
4560       fi
4561     ;;
4562     xno)
4563       # don't use libdvdcss at all, build a DVD module that can dlopen() it
4564       DUMMY_LIBDVDCSS=1
4565       BUILTINS="${BUILTINS} dvd"
4566       OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4567       CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4568       CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
4569       LIB_DVD="${LIB_DVD} -ldl"
4570       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4571     ;;
4572     *)
4573       # existing libdvdcss
4574       BUILTINS="${BUILTINS} dvd"
4575       if test "x$withval" != "xyes"
4576       then
4577         LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
4578         CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
4579       fi
4580       LIB_DVD="${LIB_DVD} -ldvdcss"
4581       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
4582     esac 
4583 else
4584   # user didn't decide, we choose to use local libdvdcss and link statically
4585   # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
4586    if test x${CAN_BUILD_LIBDVDCSS} = x1
4587     then
4588       NEED_LIBDVDCSS=1
4589       STATIC_LIBDVDCSS=1
4590       BUILTINS="${BUILTINS} dvd"
4591       CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4592       LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4593       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4594     else
4595       # XXX: no check for libdl is done, don't try this at home !
4596       DUMMY_LIBDVDCSS=1
4597       BUILTINS="${BUILTINS} dvd"
4598       OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4599       CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4600       LIB_DVD="${LIB_DVD} -ldl"
4601       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4602     fi 
4603 fi
4604
4605
4606 # Check whether --enable-vcd or --disable-vcd was given.
4607 if test "${enable_vcd+set}" = set; then
4608   enableval="$enable_vcd"
4609   :
4610 fi
4611
4612
4613 if test x$enable_vcd != xno
4614 then
4615   cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 #include <linux/cdrom.h>
4619 EOF
4620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4621   egrep "cdrom_msf0" >/dev/null 2>&1; then
4622   rm -rf conftest*
4623   
4624     BUILTINS="${BUILTINS} vcd"
4625   
4626 fi
4627 rm -f conftest*
4628
4629 fi
4630
4631 # Check whether --enable-dummy or --disable-dummy was given.
4632 if test "${enable_dummy+set}" = set; then
4633   enableval="$enable_dummy"
4634   :
4635 fi
4636
4637
4638 if test x$enable_dummy != xno
4639 then
4640   BUILTINS="${BUILTINS} dummy"
4641 fi
4642
4643 # Check whether --enable-null or --disable-null was given.
4644 if test "${enable_null+set}" = set; then
4645   enableval="$enable_null"
4646   :
4647 fi
4648
4649
4650 if test x$enable_null != xno
4651 then
4652   BUILTINS="${BUILTINS} null"
4653 fi
4654
4655 # Check whether --enable-rc or --disable-rc was given.
4656 if test "${enable_rc+set}" = set; then
4657   enableval="$enable_rc"
4658   :
4659 fi
4660
4661
4662 if test x$enable_rc != xno
4663 then
4664   BUILTINS="${BUILTINS} rc"
4665 fi
4666
4667 if test x$SYS = xbeos
4668 then
4669     BUILTINS="${BUILTINS} beos"
4670     LIB_BEOS="-lbe -lgame -lroot -ltracker"
4671     PLCFLAGS="${PLCFLAGS} -nostart"
4672
4673 else
4674
4675 # Check whether --enable-dsp or --disable-dsp was given.
4676 if test "${enable_dsp+set}" = set; then
4677   enableval="$enable_dsp"
4678   :
4679 fi
4680
4681
4682 if test x$enable_dsp != xno
4683 then
4684   if test -c /dev/dsp
4685   then
4686     PLUGINS="${PLUGINS} dsp"
4687   fi
4688 fi
4689
4690 # Check whether --enable-esd or --disable-esd was given.
4691 if test "${enable_esd+set}" = set; then
4692   enableval="$enable_esd"
4693   if test x$enable_esd = xyes
4694    then
4695      # Extract the first word of "esd-config", so it can be a program name with args.
4696 set dummy esd-config; ac_word=$2
4697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4698 echo "configure:4699: checking for $ac_word" >&5
4699 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
4700   echo $ac_n "(cached) $ac_c" 1>&6
4701 else
4702   case "$ESD_CONFIG" in
4703   /*)
4704   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
4705   ;;
4706   ?:/*)                  
4707   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
4708   ;;
4709   *)
4710   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4711   ac_dummy="$PATH"
4712   for ac_dir in $ac_dummy; do 
4713     test -z "$ac_dir" && ac_dir=.
4714     if test -f $ac_dir/$ac_word; then
4715       ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
4716       break
4717     fi
4718   done
4719   IFS="$ac_save_ifs"
4720   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
4721   ;;
4722 esac
4723 fi
4724 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
4725 if test -n "$ESD_CONFIG"; then
4726   echo "$ac_t""$ESD_CONFIG" 1>&6
4727 else
4728   echo "$ac_t""no" 1>&6
4729 fi
4730
4731      if test x${ESD_CONFIG} != xno
4732      then
4733        PLUGINS="${PLUGINS} esd"
4734        LIB_ESD="`${ESD_CONFIG} --libs`"
4735      fi
4736    fi
4737 fi
4738
4739
4740 # Check whether --enable-darwin or --disable-darwin was given.
4741 if test "${enable_darwin+set}" = set; then
4742   enableval="$enable_darwin"
4743   if test x$enable_darwin = xyes; then
4744      PLUGINS="${PLUGINS} darwin"
4745      LIB_DARWIN="-framework CoreAudio"
4746    fi
4747 fi
4748
4749
4750 # Check whether --enable-macosx or --disable-macosx was given.
4751 if test "${enable_macosx+set}" = set; then
4752   enableval="$enable_macosx"
4753   if test x$enable_macosx = xyes
4754    then
4755      BUILTINS="${BUILTINS} macosx"
4756      LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
4757      LIB="${LIB} -ObjC"
4758    fi
4759 else
4760   for ac_hdr in Cocoa/Cocoa.h
4761 do
4762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4764 echo "configure:4765: checking for $ac_hdr" >&5
4765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4766   echo $ac_n "(cached) $ac_c" 1>&6
4767 else
4768   cat > conftest.$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4771 #include <$ac_hdr>
4772 EOF
4773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4774 { (eval echo configure:4775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4776 if test -z "$ac_err"; then
4777   rm -rf conftest*
4778   eval "ac_cv_header_$ac_safe=yes"
4779 else
4780   echo "$ac_err" >&5
4781   echo "configure: failed program was:" >&5
4782   cat conftest.$ac_ext >&5
4783   rm -rf conftest*
4784   eval "ac_cv_header_$ac_safe=no"
4785 fi
4786 rm -f conftest*
4787 fi
4788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4789   echo "$ac_t""yes" 1>&6
4790     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4791   cat >> confdefs.h <<EOF
4792 #define $ac_tr_hdr 1
4793 EOF
4794  BUILTINS="${BUILTINS} macosx"
4795      LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime"
4796      LIB="${LIB} -ObjC"
4797    
4798 else
4799   echo "$ac_t""no" 1>&6
4800 fi
4801 done
4802
4803 fi
4804
4805
4806 # Check whether --enable-qnx or --disable-qnx was given.
4807 if test "${enable_qnx+set}" = set; then
4808   enableval="$enable_qnx"
4809   :
4810 fi
4811
4812     if test x$enable_qnx != xno
4813     then
4814       for ac_hdr in Ph.h
4815 do
4816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4818 echo "configure:4819: checking for $ac_hdr" >&5
4819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4820   echo $ac_n "(cached) $ac_c" 1>&6
4821 else
4822   cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4825 #include <$ac_hdr>
4826 EOF
4827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4828 { (eval echo configure:4829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4830 if test -z "$ac_err"; then
4831   rm -rf conftest*
4832   eval "ac_cv_header_$ac_safe=yes"
4833 else
4834   echo "$ac_err" >&5
4835   echo "configure: failed program was:" >&5
4836   cat conftest.$ac_ext >&5
4837   rm -rf conftest*
4838   eval "ac_cv_header_$ac_safe=no"
4839 fi
4840 rm -f conftest*
4841 fi
4842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4843   echo "$ac_t""yes" 1>&6
4844     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4845   cat >> confdefs.h <<EOF
4846 #define $ac_tr_hdr 1
4847 EOF
4848  
4849         PLUGINS="${PLUGINS} qnx"
4850         LIB_QNX="-lasound -lph"
4851       
4852 else
4853   echo "$ac_t""no" 1>&6
4854 fi
4855 done
4856
4857     fi
4858
4859 # Check whether --enable-fb or --disable-fb was given.
4860 if test "${enable_fb+set}" = set; then
4861   enableval="$enable_fb"
4862    if test x$enable_fb = xyes
4863     then
4864       PLUGINS="${PLUGINS} fb"
4865     fi 
4866 fi
4867
4868
4869 # Check whether --with-ggi or --without-ggi was given.
4870 if test "${with_ggi+set}" = set; then
4871   withval="$with_ggi"
4872    if test "x$withval" != "xno"
4873     then
4874       PLUGINS="${PLUGINS} ggi"
4875       if test "x$withval" != "xyes"
4876       then
4877         LIB_GGI="-l"$withval
4878       else
4879         LIB_GGI="-lggi"
4880       fi
4881     fi 
4882 fi
4883
4884
4885 # Check whether --enable-sdl or --disable-sdl was given.
4886 if test "${enable_sdl+set}" = set; then
4887   enableval="$enable_sdl"
4888   :
4889 fi
4890
4891 if test "x$enable_sdl" != "xno"
4892 then
4893   SDL_PATH=$PATH
4894   # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
4895 if test "${with_sdl_config_path+set}" = set; then
4896   withval="$with_sdl_config_path"
4897    if test "x$withval" != "xno"
4898       then
4899         SDL_PATH=$withval:$PATH
4900       fi 
4901 fi
4902
4903   # Extract the first word of "sdl12-config", so it can be a program name with args.
4904 set dummy sdl12-config; ac_word=$2
4905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4906 echo "configure:4907: checking for $ac_word" >&5
4907 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
4908   echo $ac_n "(cached) $ac_c" 1>&6
4909 else
4910   case "$SDL12_CONFIG" in
4911   /*)
4912   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
4913   ;;
4914   ?:/*)                  
4915   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
4916   ;;
4917   *)
4918   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4919   ac_dummy="$SDL_PATH"
4920   for ac_dir in $ac_dummy; do 
4921     test -z "$ac_dir" && ac_dir=.
4922     if test -f $ac_dir/$ac_word; then
4923       ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
4924       break
4925     fi
4926   done
4927   IFS="$ac_save_ifs"
4928   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
4929   ;;
4930 esac
4931 fi
4932 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
4933 if test -n "$SDL12_CONFIG"; then
4934   echo "$ac_t""$SDL12_CONFIG" 1>&6
4935 else
4936   echo "$ac_t""no" 1>&6
4937 fi
4938
4939   SDL_CONFIG=${SDL12_CONFIG}
4940   SDL_HEADER="SDL12/SDL.h"
4941   if test x${SDL_CONFIG} = xno
4942   then
4943     # Extract the first word of "sdl11-config", so it can be a program name with args.
4944 set dummy sdl11-config; ac_word=$2
4945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4946 echo "configure:4947: checking for $ac_word" >&5
4947 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
4948   echo $ac_n "(cached) $ac_c" 1>&6
4949 else
4950   case "$SDL11_CONFIG" in
4951   /*)
4952   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
4953   ;;
4954   ?:/*)                  
4955   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
4956   ;;
4957   *)
4958   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4959   ac_dummy="$SDL_PATH"
4960   for ac_dir in $ac_dummy; do 
4961     test -z "$ac_dir" && ac_dir=.
4962     if test -f $ac_dir/$ac_word; then
4963       ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
4964       break
4965     fi
4966   done
4967   IFS="$ac_save_ifs"
4968   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
4969   ;;
4970 esac
4971 fi
4972 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
4973 if test -n "$SDL11_CONFIG"; then
4974   echo "$ac_t""$SDL11_CONFIG" 1>&6
4975 else
4976   echo "$ac_t""no" 1>&6
4977 fi
4978
4979     SDL_CONFIG=${SDL11_CONFIG}
4980     SDL_HEADER="SDL11/SDL.h"
4981   fi
4982   if test x${SDL_CONFIG} = xno
4983   then
4984     # Extract the first word of "sdl-config", so it can be a program name with args.
4985 set dummy sdl-config; ac_word=$2
4986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4987 echo "configure:4988: checking for $ac_word" >&5
4988 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4989   echo $ac_n "(cached) $ac_c" 1>&6
4990 else
4991   case "$SDL_CONFIG" in
4992   /*)
4993   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4994   ;;
4995   ?:/*)                  
4996   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4997   ;;
4998   *)
4999   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5000   ac_dummy="$SDL_PATH"
5001   for ac_dir in $ac_dummy; do 
5002     test -z "$ac_dir" && ac_dir=.
5003     if test -f $ac_dir/$ac_word; then
5004       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
5005       break
5006     fi
5007   done
5008   IFS="$ac_save_ifs"
5009   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
5010   ;;
5011 esac
5012 fi
5013 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
5014 if test -n "$SDL_CONFIG"; then
5015   echo "$ac_t""$SDL_CONFIG" 1>&6
5016 else
5017   echo "$ac_t""no" 1>&6
5018 fi
5019
5020     SDL_HEADER="SDL/SDL.h"
5021   fi
5022   if test x${SDL_CONFIG} != xno
5023   then
5024     PLUGINS="${PLUGINS} sdl"
5025     CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
5026     LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
5027     save_CPPFLAGS=$CPPFLAGS
5028     CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
5029     for ac_hdr in ${SDL_HEADER}
5030 do
5031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5033 echo "configure:5034: checking for $ac_hdr" >&5
5034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5035   echo $ac_n "(cached) $ac_c" 1>&6
5036 else
5037   cat > conftest.$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5040 #include <$ac_hdr>
5041 EOF
5042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5043 { (eval echo configure:5044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5045 if test -z "$ac_err"; then
5046   rm -rf conftest*
5047   eval "ac_cv_header_$ac_safe=yes"
5048 else
5049   echo "$ac_err" >&5
5050   echo "configure: failed program was:" >&5
5051   cat conftest.$ac_ext >&5
5052   rm -rf conftest*
5053   eval "ac_cv_header_$ac_safe=no"
5054 fi
5055 rm -f conftest*
5056 fi
5057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5058   echo "$ac_t""yes" 1>&6
5059     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5060   cat >> confdefs.h <<EOF
5061 #define $ac_tr_hdr 1
5062 EOF
5063  cat >> confdefs.h <<EOF
5064 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
5065 EOF
5066
5067 else
5068   echo "$ac_t""no" 1>&6
5069 { echo "configure: error: The development package for SDL is not installed. 
5070 Please install it and try again. Alternatively you can also configure with 
5071 --disable-sdl." 1>&2; exit 1; }
5072       
5073 fi
5074 done
5075
5076     CPPFLAGS=$save_CPPFLAGS
5077     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
5078     then
5079       { echo "configure: error: The development package for SDL is not installed.
5080 Please install it and try again. Alternatively you can also configure with
5081 --disable-sdl." 1>&2; exit 1; }
5082     fi
5083   elif test "x$enable_sdl" =  "xyes"
5084   then
5085     { echo "configure: error: I couldn't find the SDL package. You can download libSDL
5086 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
5087     " 1>&2; exit 1; }
5088   fi
5089 fi
5090
5091 # Check whether --with-directx or --without-directx was given.
5092 if test "${with_directx+set}" = set; then
5093   withval="$with_directx"
5094    if test "x$withval" != "xno"
5095     then
5096       PLUGINS="${PLUGINS} directx"
5097       if test "x$withval" != "xyes"
5098       then
5099         LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
5100         INCLUDE="${INCLUDE} -I"$withval"/include"
5101       else
5102         for ac_hdr in directx.h
5103 do
5104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5106 echo "configure:5107: checking for $ac_hdr" >&5
5107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5108   echo $ac_n "(cached) $ac_c" 1>&6
5109 else
5110   cat > conftest.$ac_ext <<EOF
5111 #line 5112 "configure"
5112 #include "confdefs.h"
5113 #include <$ac_hdr>
5114 EOF
5115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5116 { (eval echo configure:5117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5118 if test -z "$ac_err"; then
5119   rm -rf conftest*
5120   eval "ac_cv_header_$ac_safe=yes"
5121 else
5122   echo "$ac_err" >&5
5123   echo "configure: failed program was:" >&5
5124   cat conftest.$ac_ext >&5
5125   rm -rf conftest*
5126   eval "ac_cv_header_$ac_safe=no"
5127 fi
5128 rm -f conftest*
5129 fi
5130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5131   echo "$ac_t""yes" 1>&6
5132     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5133   cat >> confdefs.h <<EOF
5134 #define $ac_tr_hdr 1
5135 EOF
5136  
5137 else
5138   echo "$ac_t""no" 1>&6
5139 { echo "configure: error: Cannot find DirectX headers !" 1>&2; exit 1; }
5140         
5141 fi
5142 done
5143
5144         LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5145       fi
5146     fi 
5147 fi
5148
5149     if test "x$withval" = "x"
5150     then
5151       for ac_hdr in directx.h
5152 do
5153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5155 echo "configure:5156: checking for $ac_hdr" >&5
5156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5157   echo $ac_n "(cached) $ac_c" 1>&6
5158 else
5159   cat > conftest.$ac_ext <<EOF
5160 #line 5161 "configure"
5161 #include "confdefs.h"
5162 #include <$ac_hdr>
5163 EOF
5164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5165 { (eval echo configure:5166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5167 if test -z "$ac_err"; then
5168   rm -rf conftest*
5169   eval "ac_cv_header_$ac_safe=yes"
5170 else
5171   echo "$ac_err" >&5
5172   echo "configure: failed program was:" >&5
5173   cat conftest.$ac_ext >&5
5174   rm -rf conftest*
5175   eval "ac_cv_header_$ac_safe=no"
5176 fi
5177 rm -f conftest*
5178 fi
5179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5180   echo "$ac_t""yes" 1>&6
5181     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5182   cat >> confdefs.h <<EOF
5183 #define $ac_tr_hdr 1
5184 EOF
5185  PLUGINS="${PLUGINS} directx"
5186        LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5187 else
5188   echo "$ac_t""no" 1>&6
5189 fi
5190 done
5191
5192     fi
5193
5194 # Check whether --with-glide or --without-glide was given.
5195 if test "${with_glide+set}" = set; then
5196   withval="$with_glide"
5197    if test "x$withval" != "xno"
5198     then
5199       PLUGINS="${PLUGINS} glide"
5200       if test "x$withval" != "xyes"
5201       then
5202         LIB_GLIDE="-l"$withval" -lm"
5203       else
5204         LIB_GLIDE="-lglide2x -lm"
5205       fi
5206     fi 
5207 fi
5208
5209
5210 # Check whether --enable-ncurses or --disable-ncurses was given.
5211 if test "${enable_ncurses+set}" = set; then
5212   enableval="$enable_ncurses"
5213   if test x$enable_ncurses = xyes; then
5214      PLUGINS="${PLUGINS} ncurses"
5215      LIB_NCURSES="-lncurses"
5216    fi
5217 fi
5218
5219
5220 # Check whether --enable-qt or --disable-qt was given.
5221 if test "${enable_qt+set}" = set; then
5222   enableval="$enable_qt"
5223   if test x$enable_qt = xyes; then
5224      PLUGINS="${PLUGINS} qt"
5225      ALIASES="${ALIASES} qvlc"
5226      LIB_QT="-lqt -L${QTDIR}/lib"
5227      if test -x ${QTDIR}/bin/moc
5228      then
5229        MOC=${QTDIR}/bin/moc
5230      else
5231        MOC=moc
5232      fi
5233    fi
5234 fi
5235
5236
5237 # Check whether --enable-kde or --disable-kde was given.
5238 if test "${enable_kde+set}" = set; then
5239   enableval="$enable_kde"
5240   if test x$enable_kde = xyes; then
5241      PLUGINS="${PLUGINS} kde"
5242      ALIASES="${ALIASES} kvlc"
5243      LIB_KDE="-L${KDEDIR}/lib -lkfile"
5244      if test -x ${QTDIR}/bin/moc
5245      then
5246        MOC=${QTDIR}/bin/moc
5247      else
5248        MOC=moc
5249      fi
5250    fi
5251 fi
5252
5253
5254 # Check whether --enable-gnome or --disable-gnome was given.
5255 if test "${enable_gnome+set}" = set; then
5256   enableval="$enable_gnome"
5257   if test x$enable_gnome = xyes; then
5258     # look for gnome-config
5259     # Extract the first word of "gnome-config", so it can be a program name with args.
5260 set dummy gnome-config; ac_word=$2
5261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5262 echo "configure:5263: checking for $ac_word" >&5
5263 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
5264   echo $ac_n "(cached) $ac_c" 1>&6
5265 else
5266   case "$GNOME_CONFIG" in
5267   /*)
5268   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
5269   ;;
5270   ?:/*)                  
5271   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
5272   ;;
5273   *)
5274   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5275   ac_dummy="$PATH"
5276   for ac_dir in $ac_dummy; do 
5277     test -z "$ac_dir" && ac_dir=.
5278     if test -f $ac_dir/$ac_word; then
5279       ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
5280       break
5281     fi
5282   done
5283   IFS="$ac_save_ifs"
5284   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
5285   ;;
5286 esac
5287 fi
5288 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
5289 if test -n "$GNOME_CONFIG"; then
5290   echo "$ac_t""$GNOME_CONFIG" 1>&6
5291 else
5292   echo "$ac_t""no" 1>&6
5293 fi
5294
5295     if test -x ${GNOME_CONFIG}
5296     then
5297        CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gnomeui`"
5298        LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
5299     fi
5300     # now look for the gnome.h header
5301     saved_CPPFLAGS=$CPPFLAGS
5302     CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
5303     for ac_hdr in gnome.h
5304 do
5305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5307 echo "configure:5308: checking for $ac_hdr" >&5
5308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5309   echo $ac_n "(cached) $ac_c" 1>&6
5310 else
5311   cat > conftest.$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5314 #include <$ac_hdr>
5315 EOF
5316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5317 { (eval echo configure:5318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5319 if test -z "$ac_err"; then
5320   rm -rf conftest*
5321   eval "ac_cv_header_$ac_safe=yes"
5322 else
5323   echo "$ac_err" >&5
5324   echo "configure: failed program was:" >&5
5325   cat conftest.$ac_ext >&5
5326   rm -rf conftest*
5327   eval "ac_cv_header_$ac_safe=no"
5328 fi
5329 rm -f conftest*
5330 fi
5331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5332   echo "$ac_t""yes" 1>&6
5333     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5334   cat >> confdefs.h <<EOF
5335 #define $ac_tr_hdr 1
5336 EOF
5337  
5338       PLUGINS="${PLUGINS} gnome"
5339       ALIASES="${ALIASES} gnome-vlc"
5340      
5341 else
5342   echo "$ac_t""no" 1>&6
5343 { echo "configure: error: Can't find gnome headers. Please install the gnome
5344 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
5345      
5346 fi
5347 done
5348
5349   
5350     CPPFLAGS=$saved_CPPFLAGS
5351   fi
5352 fi
5353
5354
5355 # Check whether --enable-gtk or --disable-gtk was given.
5356 if test "${enable_gtk+set}" = set; then
5357   enableval="$enable_gtk"
5358   :
5359 fi
5360
5361 if test x$enable_gtk != xno
5362 then
5363   # look for gtk-config
5364   # Extract the first word of "gtk-config", so it can be a program name with args.
5365 set dummy gtk-config; ac_word=$2
5366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5367 echo "configure:5368: checking for $ac_word" >&5
5368 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5369   echo $ac_n "(cached) $ac_c" 1>&6
5370 else
5371   case "$GTK_CONFIG" in
5372   /*)
5373   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5374   ;;
5375   ?:/*)                  
5376   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
5377   ;;
5378   *)
5379   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5380   ac_dummy="$PATH"
5381   for ac_dir in $ac_dummy; do 
5382     test -z "$ac_dir" && ac_dir=.
5383     if test -f $ac_dir/$ac_word; then
5384       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5385       break
5386     fi
5387   done
5388   IFS="$ac_save_ifs"
5389   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5390   ;;
5391 esac
5392 fi
5393 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5394 if test -n "$GTK_CONFIG"; then
5395   echo "$ac_t""$GTK_CONFIG" 1>&6
5396 else
5397   echo "$ac_t""no" 1>&6
5398 fi
5399
5400   if test -x ${GTK_CONFIG}
5401   then
5402     CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
5403     LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
5404   fi
5405   # now look for the gtk.h header
5406   saved_CPPFLAGS=$CPPFLAGS
5407   CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
5408   for ac_hdr in gtk/gtk.h
5409 do
5410 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5412 echo "configure:5413: checking for $ac_hdr" >&5
5413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5414   echo $ac_n "(cached) $ac_c" 1>&6
5415 else
5416   cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5419 #include <$ac_hdr>
5420 EOF
5421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5422 { (eval echo configure:5423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5424 if test -z "$ac_err"; then
5425   rm -rf conftest*
5426   eval "ac_cv_header_$ac_safe=yes"
5427 else
5428   echo "$ac_err" >&5
5429   echo "configure: failed program was:" >&5
5430   cat conftest.$ac_ext >&5
5431   rm -rf conftest*
5432   eval "ac_cv_header_$ac_safe=no"
5433 fi
5434 rm -f conftest*
5435 fi
5436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5437   echo "$ac_t""yes" 1>&6
5438     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5439   cat >> confdefs.h <<EOF
5440 #define $ac_tr_hdr 1
5441 EOF
5442  
5443     PLUGINS="${PLUGINS} gtk"
5444     ALIASES="${ALIASES} gvlc"
5445   
5446 else
5447   echo "$ac_t""no" 1>&6
5448 fi
5449 done
5450
5451   CPPFLAGS=$saved_CPPFLAGS
5452 fi
5453
5454 # Check whether --enable-x11 or --disable-x11 was given.
5455 if test "${enable_x11+set}" = set; then
5456   enableval="$enable_x11"
5457   :
5458 fi
5459
5460 if test x$enable_x11 != xno; then
5461   if test x$x_includes = xNONE; then
5462     x_includes=/usr/X11R6/include
5463   fi
5464   if test x$x_libraries = xNONE; then
5465     x_libraries=/usr/X11R6/lib
5466   fi
5467   saved_CPPFLAGS=$CPPFLAGS
5468   CPPFLAGS="$CPPFLAGS -I$x_includes"
5469   for ac_hdr in X11/Xlib.h
5470 do
5471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5473 echo "configure:5474: checking for $ac_hdr" >&5
5474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5475   echo $ac_n "(cached) $ac_c" 1>&6
5476 else
5477   cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 #include <$ac_hdr>
5481 EOF
5482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5483 { (eval echo configure:5484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5485 if test -z "$ac_err"; then
5486   rm -rf conftest*
5487   eval "ac_cv_header_$ac_safe=yes"
5488 else
5489   echo "$ac_err" >&5
5490   echo "configure: failed program was:" >&5
5491   cat conftest.$ac_ext >&5
5492   rm -rf conftest*
5493   eval "ac_cv_header_$ac_safe=no"
5494 fi
5495 rm -f conftest*
5496 fi
5497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5498   echo "$ac_t""yes" 1>&6
5499     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5500   cat >> confdefs.h <<EOF
5501 #define $ac_tr_hdr 1
5502 EOF
5503  
5504     PLUGINS="${PLUGINS} x11"
5505     LIB_X11="-L$x_libraries -lX11 -lXext"
5506     CFLAGS_X11="-I$x_includes"
5507   
5508   CPPFLAGS=$saved_CPPFLAGS
5509 else
5510   echo "$ac_t""no" 1>&6
5511 fi
5512 done
5513
5514 fi
5515
5516 # Check whether --enable-xvideo or --disable-xvideo was given.
5517 if test "${enable_xvideo+set}" = set; then
5518   enableval="$enable_xvideo"
5519   :
5520 fi
5521
5522 if test x$enable_xvideo != xno; then
5523   if test x$x_includes = xNONE; then
5524     x_includes=/usr/X11R6/include
5525   fi
5526   if test x$x_libraries = xNONE; then
5527     x_libraries=/usr/X11R6/lib
5528   fi
5529   saved_CPPFLAGS=$CPPFLAGS
5530   CPPFLAGS="$CPPFLAGS -I$x_includes"
5531   for ac_hdr in X11/extensions/Xv.h
5532 do
5533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5535 echo "configure:5536: checking for $ac_hdr" >&5
5536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5537   echo $ac_n "(cached) $ac_c" 1>&6
5538 else
5539   cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5542 #include <$ac_hdr>
5543 EOF
5544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5545 { (eval echo configure:5546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5547 if test -z "$ac_err"; then
5548   rm -rf conftest*
5549   eval "ac_cv_header_$ac_safe=yes"
5550 else
5551   echo "$ac_err" >&5
5552   echo "configure: failed program was:" >&5
5553   cat conftest.$ac_ext >&5
5554   rm -rf conftest*
5555   eval "ac_cv_header_$ac_safe=no"
5556 fi
5557 rm -f conftest*
5558 fi
5559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5560   echo "$ac_t""yes" 1>&6
5561     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5562   cat >> confdefs.h <<EOF
5563 #define $ac_tr_hdr 1
5564 EOF
5565  
5566     BUILTINS="${BUILTINS} xvideo"
5567     LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
5568     CFLAGS_X11="-I$x_includes"
5569   
5570   CPPFLAGS=$saved_CPPFLAGS
5571 else
5572   echo "$ac_t""no" 1>&6
5573 fi
5574 done
5575
5576 fi
5577
5578 # Check whether --enable-alsa or --disable-alsa was given.
5579 if test "${enable_alsa+set}" = set; then
5580   enableval="$enable_alsa"
5581   if test x$enable_alsa = xyes
5582    then
5583      ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
5584 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
5585 echo "configure:5586: checking for sys/asoundlib.h" >&5
5586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5587   echo $ac_n "(cached) $ac_c" 1>&6
5588 else
5589   cat > conftest.$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5592 #include <sys/asoundlib.h>
5593 EOF
5594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5595 { (eval echo configure:5596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5597 if test -z "$ac_err"; then
5598   rm -rf conftest*
5599   eval "ac_cv_header_$ac_safe=yes"
5600 else
5601   echo "$ac_err" >&5
5602   echo "configure: failed program was:" >&5
5603   cat conftest.$ac_ext >&5
5604   rm -rf conftest*
5605   eval "ac_cv_header_$ac_safe=no"
5606 fi
5607 rm -f conftest*
5608 fi
5609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5610   echo "$ac_t""yes" 1>&6
5611   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
5612 echo "configure:5613: checking for main in -lasound" >&5
5613 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
5614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5615   echo $ac_n "(cached) $ac_c" 1>&6
5616 else
5617   ac_save_LIBS="$LIBS"
5618 LIBS="-lasound  $LIBS"
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5622
5623 int main() {
5624 main()
5625 ; return 0; }
5626 EOF
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5628   rm -rf conftest*
5629   eval "ac_cv_lib_$ac_lib_var=yes"
5630 else
5631   echo "configure: failed program was:" >&5
5632   cat conftest.$ac_ext >&5
5633   rm -rf conftest*
5634   eval "ac_cv_lib_$ac_lib_var=no"
5635 fi
5636 rm -f conftest*
5637 LIBS="$ac_save_LIBS"
5638
5639 fi
5640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5641   echo "$ac_t""yes" 1>&6
5642   have_alsa="true"
5643 else
5644   echo "$ac_t""no" 1>&6
5645 have_alsa="false"
5646 fi
5647
5648 else
5649   echo "$ac_t""no" 1>&6
5650 have_alsa="false"
5651 fi
5652
5653      if test x$have_alsa = xtrue
5654      then
5655        PLUGINS="${PLUGINS} alsa"
5656        LIB_ALSA="-lasound"
5657      fi
5658    fi
5659 fi
5660
5661
5662 fi
5663
5664 # Check whether --enable-plugins or --disable-plugins was given.
5665 if test "${enable_plugins+set}" = set; then
5666   enableval="$enable_plugins"
5667   if test x$enable_plugins = xno
5668    then
5669      BUILTINS="${BUILTINS} ${PLUGINS}"
5670      PLUGINS=
5671    fi
5672 fi
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736 trap '' 1 2 15
5737 cat > confcache <<\EOF
5738 # This file is a shell script that caches the results of configure
5739 # tests run on this system so they can be shared between configure
5740 # scripts and configure runs.  It is not useful on other systems.
5741 # If it contains results you don't want to keep, you may remove or edit it.
5742 #
5743 # By default, configure uses ./config.cache as the cache file,
5744 # creating it if it does not exist already.  You can give configure
5745 # the --cache-file=FILE option to use a different cache file; that is
5746 # what configure does when it calls configure scripts in
5747 # subdirectories, so they share the cache.
5748 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5749 # config.status only pays attention to the cache file if you give it the
5750 # --recheck option to rerun configure.
5751 #
5752 EOF
5753 # The following way of writing the cache mishandles newlines in values,
5754 # but we know of no workaround that is simple, portable, and efficient.
5755 # So, don't put newlines in cache variables' values.
5756 # Ultrix sh set writes to stderr and can't be redirected directly,
5757 # and sets the high bit in the cache file unless we assign to the vars.
5758 (set) 2>&1 |
5759   case `(ac_space=' '; set | grep ac_space) 2>&1` in
5760   *ac_space=\ *)
5761     # `set' does not quote correctly, so add quotes (double-quote substitution
5762     # turns \\\\ into \\, and sed turns \\ into \).
5763     sed -n \
5764       -e "s/'/'\\\\''/g" \
5765       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5766     ;;
5767   *)
5768     # `set' quotes correctly as required by POSIX, so do not add quotes.
5769     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5770     ;;
5771   esac >> confcache
5772 if cmp -s $cache_file confcache; then
5773   :
5774 else
5775   if test -w $cache_file; then
5776     echo "updating cache $cache_file"
5777     cat confcache > $cache_file
5778   else
5779     echo "not updating unwritable cache $cache_file"
5780   fi
5781 fi
5782 rm -f confcache
5783
5784 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5785
5786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5787 # Let make expand exec_prefix.
5788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5789
5790 # Any assignment to VPATH causes Sun make to only execute
5791 # the first set of double-colon rules, so remove it if not needed.
5792 # If there is a colon in the path, we need to keep it.
5793 if test "x$srcdir" = x.; then
5794   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
5795 fi
5796
5797 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5798
5799 DEFS=-DHAVE_CONFIG_H
5800
5801 # Without the "./", some shells look in PATH for config.status.
5802 : ${CONFIG_STATUS=./config.status}
5803
5804 echo creating $CONFIG_STATUS
5805 rm -f $CONFIG_STATUS
5806 cat > $CONFIG_STATUS <<EOF
5807 #! /bin/sh
5808 # Generated automatically by configure.
5809 # Run this file to recreate the current configuration.
5810 # This directory was configured as follows,
5811 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5812 #
5813 # $0 $ac_configure_args
5814 #
5815 # Compiler output produced by configure, useful for debugging
5816 # configure, is in ./config.log if it exists.
5817
5818 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5819 for ac_option
5820 do
5821   case "\$ac_option" in
5822   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5823     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5824     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5825   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5826     echo "$CONFIG_STATUS generated by autoconf version 2.13"
5827     exit 0 ;;
5828   -help | --help | --hel | --he | --h)
5829     echo "\$ac_cs_usage"; exit 0 ;;
5830   *) echo "\$ac_cs_usage"; exit 1 ;;
5831   esac
5832 done
5833
5834 ac_given_srcdir=$srcdir
5835 ac_given_INSTALL="$INSTALL"
5836
5837 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5838 EOF
5839 cat >> $CONFIG_STATUS <<EOF
5840
5841 # Protect against being on the right side of a sed subst in config.status.
5842 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5843  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5844 $ac_vpsub
5845 $extrasub
5846 s%@SHELL@%$SHELL%g
5847 s%@CFLAGS@%$CFLAGS%g
5848 s%@CPPFLAGS@%$CPPFLAGS%g
5849 s%@CXXFLAGS@%$CXXFLAGS%g
5850 s%@FFLAGS@%$FFLAGS%g
5851 s%@DEFS@%$DEFS%g
5852 s%@LDFLAGS@%$LDFLAGS%g
5853 s%@LIBS@%$LIBS%g
5854 s%@exec_prefix@%$exec_prefix%g
5855 s%@prefix@%$prefix%g
5856 s%@program_transform_name@%$program_transform_name%g
5857 s%@bindir@%$bindir%g
5858 s%@sbindir@%$sbindir%g
5859 s%@libexecdir@%$libexecdir%g
5860 s%@datadir@%$datadir%g
5861 s%@sysconfdir@%$sysconfdir%g
5862 s%@sharedstatedir@%$sharedstatedir%g
5863 s%@localstatedir@%$localstatedir%g
5864 s%@libdir@%$libdir%g
5865 s%@includedir@%$includedir%g
5866 s%@oldincludedir@%$oldincludedir%g
5867 s%@infodir@%$infodir%g
5868 s%@mandir@%$mandir%g
5869 s%@host@%$host%g
5870 s%@host_alias@%$host_alias%g
5871 s%@host_cpu@%$host_cpu%g
5872 s%@host_vendor@%$host_vendor%g
5873 s%@host_os@%$host_os%g
5874 s%@target@%$target%g
5875 s%@target_alias@%$target_alias%g
5876 s%@target_cpu@%$target_cpu%g
5877 s%@target_vendor@%$target_vendor%g
5878 s%@target_os@%$target_os%g
5879 s%@build@%$build%g
5880 s%@build_alias@%$build_alias%g
5881 s%@build_cpu@%$build_cpu%g
5882 s%@build_vendor@%$build_vendor%g
5883 s%@build_os@%$build_os%g
5884 s%@VLC_VERSION@%$VLC_VERSION%g
5885 s%@VLC_CODENAME@%$VLC_CODENAME%g
5886 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
5887 s%@SET_MAKE@%$SET_MAKE%g
5888 s%@CC@%$CC%g
5889 s%@CPP@%$CPP%g
5890 s%@RANLIB@%$RANLIB%g
5891 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5892 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5893 s%@INSTALL_DATA@%$INSTALL_DATA%g
5894 s%@ESD_CONFIG@%$ESD_CONFIG%g
5895 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
5896 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
5897 s%@SDL_CONFIG@%$SDL_CONFIG%g
5898 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
5899 s%@GTK_CONFIG@%$GTK_CONFIG%g
5900 s%@SYS@%$SYS%g
5901 s%@ARCH@%$ARCH%g
5902 s%@PLUGINS@%$PLUGINS%g
5903 s%@BUILTINS@%$BUILTINS%g
5904 s%@ALIASES@%$ALIASES%g
5905 s%@DEFINE@%$DEFINE%g
5906 s%@INCLUDE@%$INCLUDE%g
5907 s%@DEBUG@%$DEBUG%g
5908 s%@ASM@%$ASM%g
5909 s%@TRACE@%$TRACE%g
5910 s%@CPROF@%$CPROF%g
5911 s%@GPROF@%$GPROF%g
5912 s%@OPTIMS@%$OPTIMS%g
5913 s%@TUNING@%$TUNING%g
5914 s%@NEED_GETOPT@%$NEED_GETOPT%g
5915 s%@MOC@%$MOC%g
5916 s%@WINDRES@%$WINDRES%g
5917 s%@LCFLAGS@%$LCFLAGS%g
5918 s%@PLCFLAGS@%$PLCFLAGS%g
5919 s%@SOFLAGS@%$SOFLAGS%g
5920 s%@LIB@%$LIB%g
5921 s%@LIB_ALSA@%$LIB_ALSA%g
5922 s%@LIB_ALTIVEC@%$LIB_ALTIVEC%g
5923 s%@LIB_BEOS@%$LIB_BEOS%g
5924 s%@LIB_DARWIN@%$LIB_DARWIN%g
5925 s%@LIB_DVD@%$LIB_DVD%g
5926 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
5927 s%@LIB_ESD@%$LIB_ESD%g
5928 s%@LIB_GGI@%$LIB_GGI%g
5929 s%@LIB_GLIDE@%$LIB_GLIDE%g
5930 s%@LIB_GNOME@%$LIB_GNOME%g
5931 s%@LIB_GTK@%$LIB_GTK%g
5932 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
5933 s%@LIB_KDE@%$LIB_KDE%g
5934 s%@LIB_MACOSX@%$LIB_MACOSX%g
5935 s%@LIB_QNX@%$LIB_QNX%g
5936 s%@LIB_NCURSES@%$LIB_NCURSES%g
5937 s%@LIB_QT@%$LIB_QT%g
5938 s%@LIB_TS@%$LIB_TS%g
5939 s%@LIB_SDL@%$LIB_SDL%g
5940 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
5941 s%@LIB_X11@%$LIB_X11%g
5942 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
5943 s%@LIB_YUV@%$LIB_YUV%g
5944 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
5945 s%@CFLAGS_ALTIVEC@%$CFLAGS_ALTIVEC%g
5946 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
5947 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
5948 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
5949 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
5950 s%@CFLAGS_X11@%$CFLAGS_X11%g
5951 s%@OBJ_DVD@%$OBJ_DVD%g
5952 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
5953 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
5954
5955 CEOF
5956 EOF
5957
5958 cat >> $CONFIG_STATUS <<\EOF
5959
5960 # Split the substitutions into bite-sized pieces for seds with
5961 # small command number limits, like on Digital OSF/1 and HP-UX.
5962 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5963 ac_file=1 # Number of current file.
5964 ac_beg=1 # First line for current file.
5965 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5966 ac_more_lines=:
5967 ac_sed_cmds=""
5968 while $ac_more_lines; do
5969   if test $ac_beg -gt 1; then
5970     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5971   else
5972     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5973   fi
5974   if test ! -s conftest.s$ac_file; then
5975     ac_more_lines=false
5976     rm -f conftest.s$ac_file
5977   else
5978     if test -z "$ac_sed_cmds"; then
5979       ac_sed_cmds="sed -f conftest.s$ac_file"
5980     else
5981       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5982     fi
5983     ac_file=`expr $ac_file + 1`
5984     ac_beg=$ac_end
5985     ac_end=`expr $ac_end + $ac_max_sed_cmds`
5986   fi
5987 done
5988 if test -z "$ac_sed_cmds"; then
5989   ac_sed_cmds=cat
5990 fi
5991 EOF
5992
5993 cat >> $CONFIG_STATUS <<EOF
5994
5995 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
5996 EOF
5997 cat >> $CONFIG_STATUS <<\EOF
5998 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5999   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6000   case "$ac_file" in
6001   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6002        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6003   *) ac_file_in="${ac_file}.in" ;;
6004   esac
6005
6006   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6007
6008   # Remove last slash and all that follows it.  Not all systems have dirname.
6009   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6010   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6011     # The file is in a subdirectory.
6012     test ! -d "$ac_dir" && mkdir "$ac_dir"
6013     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6014     # A "../" for each directory in $ac_dir_suffix.
6015     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6016   else
6017     ac_dir_suffix= ac_dots=
6018   fi
6019
6020   case "$ac_given_srcdir" in
6021   .)  srcdir=.
6022       if test -z "$ac_dots"; then top_srcdir=.
6023       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6024   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6025   *) # Relative path.
6026     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6027     top_srcdir="$ac_dots$ac_given_srcdir" ;;
6028   esac
6029
6030   case "$ac_given_INSTALL" in
6031   [/$]*) INSTALL="$ac_given_INSTALL" ;;
6032   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6033   esac
6034
6035   echo creating "$ac_file"
6036   rm -f "$ac_file"
6037   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6038   case "$ac_file" in
6039   *Makefile*) ac_comsub="1i\\
6040 # $configure_input" ;;
6041   *) ac_comsub= ;;
6042   esac
6043
6044   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6045   sed -e "$ac_comsub
6046 s%@configure_input@%$configure_input%g
6047 s%@srcdir@%$srcdir%g
6048 s%@top_srcdir@%$top_srcdir%g
6049 s%@INSTALL@%$INSTALL%g
6050 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6051 fi; done
6052 rm -f conftest.s*
6053
6054 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6055 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6056 #
6057 # ac_d sets the value in "#define NAME VALUE" lines.
6058 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6059 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
6060 ac_dC='\3'
6061 ac_dD='%g'
6062 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6063 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6064 ac_uB='\([      ]\)%\1#\2define\3'
6065 ac_uC=' '
6066 ac_uD='\4%g'
6067 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6068 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6069 ac_eB='$%\1#\2define\3'
6070 ac_eC=' '
6071 ac_eD='%g'
6072
6073 if test "${CONFIG_HEADERS+set}" != set; then
6074 EOF
6075 cat >> $CONFIG_STATUS <<EOF
6076   CONFIG_HEADERS="include/defs.h"
6077 EOF
6078 cat >> $CONFIG_STATUS <<\EOF
6079 fi
6080 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6081   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6082   case "$ac_file" in
6083   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6084        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6085   *) ac_file_in="${ac_file}.in" ;;
6086   esac
6087
6088   echo creating $ac_file
6089
6090   rm -f conftest.frag conftest.in conftest.out
6091   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6092   cat $ac_file_inputs > conftest.in
6093
6094 EOF
6095
6096 # Transform confdefs.h into a sed script conftest.vals that substitutes
6097 # the proper values into config.h.in to produce config.h.  And first:
6098 # Protect against being on the right side of a sed subst in config.status.
6099 # Protect against being in an unquoted here document in config.status.
6100 rm -f conftest.vals
6101 cat > conftest.hdr <<\EOF
6102 s/[\\&%]/\\&/g
6103 s%[\\$`]%\\&%g
6104 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6105 s%ac_d%ac_u%gp
6106 s%ac_u%ac_e%gp
6107 EOF
6108 sed -n -f conftest.hdr confdefs.h > conftest.vals
6109 rm -f conftest.hdr
6110
6111 # This sed command replaces #undef with comments.  This is necessary, for
6112 # example, in the case of _POSIX_SOURCE, which is predefined and required
6113 # on some systems where configure will not decide to define it.
6114 cat >> conftest.vals <<\EOF
6115 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6116 EOF
6117
6118 # Break up conftest.vals because some shells have a limit on
6119 # the size of here documents, and old seds have small limits too.
6120
6121 rm -f conftest.tail
6122 while :
6123 do
6124   ac_lines=`grep -c . conftest.vals`
6125   # grep -c gives empty output for an empty file on some AIX systems.
6126   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6127   # Write a limited-size here document to conftest.frag.
6128   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6129   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6130   echo 'CEOF
6131   sed -f conftest.frag conftest.in > conftest.out
6132   rm -f conftest.in
6133   mv conftest.out conftest.in
6134 ' >> $CONFIG_STATUS
6135   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6136   rm -f conftest.vals
6137   mv conftest.tail conftest.vals
6138 done
6139 rm -f conftest.vals
6140
6141 cat >> $CONFIG_STATUS <<\EOF
6142   rm -f conftest.frag conftest.h
6143   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
6144   cat conftest.in >> conftest.h
6145   rm -f conftest.in
6146   if cmp -s $ac_file conftest.h 2>/dev/null; then
6147     echo "$ac_file is unchanged"
6148     rm -f conftest.h
6149   else
6150     # Remove last slash and all that follows it.  Not all systems have dirname.
6151       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6152       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6153       # The file is in a subdirectory.
6154       test ! -d "$ac_dir" && mkdir "$ac_dir"
6155     fi
6156     rm -f $ac_file
6157     mv conftest.h $ac_file
6158   fi
6159 fi; done
6160
6161 EOF
6162 cat >> $CONFIG_STATUS <<EOF
6163
6164 EOF
6165 cat >> $CONFIG_STATUS <<\EOF
6166
6167 exit 0
6168 EOF
6169 chmod +x $CONFIG_STATUS
6170 rm -fr confdefs* $ac_clean_files
6171 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6172
6173
6174 echo "
6175 global configuration
6176 --------------------
6177 system                : ${SYS}
6178 architecture          : ${ARCH}
6179 optimizations         : ${OPTIMS}
6180 tuning:               : ${TUNING}"
6181
6182 if test x${HAVE_VLC} = x1
6183 then
6184   echo "
6185 vlc configuration
6186 -----------------
6187 vlc version           : ${VLC_VERSION}
6188 debug mode            : ${DEBUG}
6189 trace mode            : ${TRACE}
6190 cprof/gprof support   : ${CPROF}/${GPROF}
6191 need builtin getopt   : ${NEED_GETOPT}
6192 built-in modules      :${BUILTINS}
6193 plug-in modules       :${PLUGINS}
6194 vlc aliases           :${ALIASES}"
6195 fi
6196
6197 echo "
6198 libdvdcss configuration
6199 -----------------------
6200 can be built          : ${CAN_BUILD_LIBDVDCSS}
6201 will be built         : ${NEED_LIBDVDCSS}"
6202 if test x${NEED_LIBDVDCSS} = x1
6203 then
6204   echo "need BSDI libdvd      : ${NEED_BSDI_LIBDVD}"
6205   echo "link statically       : ${STATIC_LIBDVDCSS}"
6206 else
6207   echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
6208 fi
6209
6210 echo "
6211 You may now tune Makefile.opts at your convenience, for instance to choose
6212 which modules get compiled as plugins.
6213 "
6214 if test x${HAVE_VLC} = x1
6215 then
6216   echo "To build vlc and its plugins, type \`make vlc'."
6217 fi
6218 if test x${HAVE_LIBDVDCSS} = x1
6219 then
6220   echo "To build libdvdcss only, type \`make libdvdcss'."
6221 fi
6222 echo ""
6223