]> git.sesse.net Git - vlc/blob - configure
5273b7225f3bcdff402f3cff82180834bbd9fbf9
[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
2329 /* This mess was copied from the GNU getpagesize.h.  */
2330 #ifndef HAVE_GETPAGESIZE
2331 # ifdef HAVE_UNISTD_H
2332 #  include <unistd.h>
2333 # endif
2334
2335 /* Assume that all systems that can run configure have sys/param.h.  */
2336 # ifndef HAVE_SYS_PARAM_H
2337 #  define HAVE_SYS_PARAM_H 1
2338 # endif
2339
2340 # ifdef _SC_PAGESIZE
2341 #  define getpagesize() sysconf(_SC_PAGESIZE)
2342 # else /* no _SC_PAGESIZE */
2343 #  ifdef HAVE_SYS_PARAM_H
2344 #   include <sys/param.h>
2345 #   ifdef EXEC_PAGESIZE
2346 #    define getpagesize() EXEC_PAGESIZE
2347 #   else /* no EXEC_PAGESIZE */
2348 #    ifdef NBPG
2349 #     define getpagesize() NBPG * CLSIZE
2350 #     ifndef CLSIZE
2351 #      define CLSIZE 1
2352 #     endif /* no CLSIZE */
2353 #    else /* no NBPG */
2354 #     ifdef NBPC
2355 #      define getpagesize() NBPC
2356 #     else /* no NBPC */
2357 #      ifdef PAGESIZE
2358 #       define getpagesize() PAGESIZE
2359 #      endif /* PAGESIZE */
2360 #     endif /* no NBPC */
2361 #    endif /* no NBPG */
2362 #   endif /* no EXEC_PAGESIZE */
2363 #  else /* no HAVE_SYS_PARAM_H */
2364 #   define getpagesize() 8192   /* punt totally */
2365 #  endif /* no HAVE_SYS_PARAM_H */
2366 # endif /* no _SC_PAGESIZE */
2367
2368 #endif /* no HAVE_GETPAGESIZE */
2369
2370 #ifdef __cplusplus
2371 extern "C" { void *malloc(unsigned); }
2372 #else
2373 char *malloc();
2374 #endif
2375
2376 int
2377 main()
2378 {
2379         char *data, *data2, *data3;
2380         int i, pagesize;
2381         int fd;
2382
2383         pagesize = getpagesize();
2384
2385         /*
2386          * First, make a file with some known garbage in it.
2387          */
2388         data = malloc(pagesize);
2389         if (!data)
2390                 exit(1);
2391         for (i = 0; i < pagesize; ++i)
2392                 *(data + i) = rand();
2393         umask(0);
2394         fd = creat("conftestmmap", 0600);
2395         if (fd < 0)
2396                 exit(1);
2397         if (write(fd, data, pagesize) != pagesize)
2398                 exit(1);
2399         close(fd);
2400
2401         /*
2402          * Next, try to mmap the file at a fixed address which
2403          * already has something else allocated at it.  If we can,
2404          * also make sure that we see the same garbage.
2405          */
2406         fd = open("conftestmmap", O_RDWR);
2407         if (fd < 0)
2408                 exit(1);
2409         data2 = malloc(2 * pagesize);
2410         if (!data2)
2411                 exit(1);
2412         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2413         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2414             MAP_PRIVATE | MAP_FIXED, fd, 0L))
2415                 exit(1);
2416         for (i = 0; i < pagesize; ++i)
2417                 if (*(data + i) != *(data2 + i))
2418                         exit(1);
2419
2420         /*
2421          * Finally, make sure that changes to the mapped area
2422          * do not percolate back to the file as seen by read().
2423          * (This is a bug on some variants of i386 svr4.0.)
2424          */
2425         for (i = 0; i < pagesize; ++i)
2426                 *(data2 + i) = *(data2 + i) + 1;
2427         data3 = malloc(pagesize);
2428         if (!data3)
2429                 exit(1);
2430         if (read(fd, data3, pagesize) != pagesize)
2431                 exit(1);
2432         for (i = 0; i < pagesize; ++i)
2433                 if (*(data + i) != *(data3 + i))
2434                         exit(1);
2435         close(fd);
2436         unlink("conftestmmap");
2437         exit(0);
2438 }
2439
2440 EOF
2441 if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2442 then
2443   ac_cv_func_mmap_fixed_mapped=yes
2444 else
2445   echo "configure: failed program was:" >&5
2446   cat conftest.$ac_ext >&5
2447   rm -fr conftest*
2448   ac_cv_func_mmap_fixed_mapped=no
2449 fi
2450 rm -fr conftest*
2451 fi
2452
2453 fi
2454
2455 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2456 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2457   cat >> confdefs.h <<\EOF
2458 #define HAVE_MMAP 1
2459 EOF
2460
2461 fi
2462
2463 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2464 echo "configure:2465: checking return type of signal handlers" >&5
2465 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2466   echo $ac_n "(cached) $ac_c" 1>&6
2467 else
2468   cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 #include <sys/types.h>
2472 #include <signal.h>
2473 #ifdef signal
2474 #undef signal
2475 #endif
2476 #ifdef __cplusplus
2477 extern "C" void (*signal (int, void (*)(int)))(int);
2478 #else
2479 void (*signal ()) ();
2480 #endif
2481
2482 int main() {
2483 int i;
2484 ; return 0; }
2485 EOF
2486 if { (eval echo configure:2487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2487   rm -rf conftest*
2488   ac_cv_type_signal=void
2489 else
2490   echo "configure: failed program was:" >&5
2491   cat conftest.$ac_ext >&5
2492   rm -rf conftest*
2493   ac_cv_type_signal=int
2494 fi
2495 rm -f conftest*
2496 fi
2497
2498 echo "$ac_t""$ac_cv_type_signal" 1>&6
2499 cat >> confdefs.h <<EOF
2500 #define RETSIGTYPE $ac_cv_type_signal
2501 EOF
2502
2503
2504 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2505 echo "configure:2506: checking for dlopen in -ldl" >&5
2506 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2508   echo $ac_n "(cached) $ac_c" 1>&6
2509 else
2510   ac_save_LIBS="$LIBS"
2511 LIBS="-ldl  $LIBS"
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 /* Override any gcc2 internal prototype to avoid an error.  */
2516 /* We use char because int might match the return type of a gcc2
2517     builtin and then its argument prototype would still apply.  */
2518 char dlopen();
2519
2520 int main() {
2521 dlopen()
2522 ; return 0; }
2523 EOF
2524 if { (eval echo configure:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2525   rm -rf conftest*
2526   eval "ac_cv_lib_$ac_lib_var=yes"
2527 else
2528   echo "configure: failed program was:" >&5
2529   cat conftest.$ac_ext >&5
2530   rm -rf conftest*
2531   eval "ac_cv_lib_$ac_lib_var=no"
2532 fi
2533 rm -f conftest*
2534 LIBS="$ac_save_LIBS"
2535
2536 fi
2537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2538   echo "$ac_t""yes" 1>&6
2539   LIB="${LIB} -ldl"
2540 else
2541   echo "$ac_t""no" 1>&6
2542 fi
2543
2544 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2545 echo "configure:2546: checking for pow in -lm" >&5
2546 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2548   echo $ac_n "(cached) $ac_c" 1>&6
2549 else
2550   ac_save_LIBS="$LIBS"
2551 LIBS="-lm  $LIBS"
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 /* Override any gcc2 internal prototype to avoid an error.  */
2556 /* We use char because int might match the return type of a gcc2
2557     builtin and then its argument prototype would still apply.  */
2558 char pow();
2559
2560 int main() {
2561 pow()
2562 ; return 0; }
2563 EOF
2564 if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2565   rm -rf conftest*
2566   eval "ac_cv_lib_$ac_lib_var=yes"
2567 else
2568   echo "configure: failed program was:" >&5
2569   cat conftest.$ac_ext >&5
2570   rm -rf conftest*
2571   eval "ac_cv_lib_$ac_lib_var=no"
2572 fi
2573 rm -f conftest*
2574 LIBS="$ac_save_LIBS"
2575
2576 fi
2577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2578   echo "$ac_t""yes" 1>&6
2579   LIB_YUV="${LIB_YUV} -lm"
2580 else
2581   echo "$ac_t""no" 1>&6
2582 fi
2583
2584
2585 THREAD_LIB=error
2586 if test "x${THREAD_LIB}" = xerror; then
2587   echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2588 echo "configure:2589: checking for pthread_attr_init in -lpthread" >&5
2589 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2591   echo $ac_n "(cached) $ac_c" 1>&6
2592 else
2593   ac_save_LIBS="$LIBS"
2594 LIBS="-lpthread  $LIBS"
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 /* Override any gcc2 internal prototype to avoid an error.  */
2599 /* We use char because int might match the return type of a gcc2
2600     builtin and then its argument prototype would still apply.  */
2601 char pthread_attr_init();
2602
2603 int main() {
2604 pthread_attr_init()
2605 ; return 0; }
2606 EOF
2607 if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2608   rm -rf conftest*
2609   eval "ac_cv_lib_$ac_lib_var=yes"
2610 else
2611   echo "configure: failed program was:" >&5
2612   cat conftest.$ac_ext >&5
2613   rm -rf conftest*
2614   eval "ac_cv_lib_$ac_lib_var=no"
2615 fi
2616 rm -f conftest*
2617 LIBS="$ac_save_LIBS"
2618
2619 fi
2620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2621   echo "$ac_t""yes" 1>&6
2622   THREAD_LIB="-lpthread"
2623 else
2624   echo "$ac_t""no" 1>&6
2625 fi
2626
2627 fi
2628 if test "x${THREAD_LIB}" = xerror; then
2629   echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2630 echo "configure:2631: checking for pthread_attr_init in -lpthreads" >&5
2631 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2633   echo $ac_n "(cached) $ac_c" 1>&6
2634 else
2635   ac_save_LIBS="$LIBS"
2636 LIBS="-lpthreads  $LIBS"
2637 cat > conftest.$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2640 /* Override any gcc2 internal prototype to avoid an error.  */
2641 /* We use char because int might match the return type of a gcc2
2642     builtin and then its argument prototype would still apply.  */
2643 char pthread_attr_init();
2644
2645 int main() {
2646 pthread_attr_init()
2647 ; return 0; }
2648 EOF
2649 if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2650   rm -rf conftest*
2651   eval "ac_cv_lib_$ac_lib_var=yes"
2652 else
2653   echo "configure: failed program was:" >&5
2654   cat conftest.$ac_ext >&5
2655   rm -rf conftest*
2656   eval "ac_cv_lib_$ac_lib_var=no"
2657 fi
2658 rm -f conftest*
2659 LIBS="$ac_save_LIBS"
2660
2661 fi
2662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2663   echo "$ac_t""yes" 1>&6
2664   THREAD_LIB="-lpthreads"
2665 else
2666   echo "$ac_t""no" 1>&6
2667 fi
2668
2669 fi
2670 if test "x${THREAD_LIB}" = xerror; then
2671   echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2672 echo "configure:2673: checking for pthread_attr_init in -lc_r" >&5
2673 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2675   echo $ac_n "(cached) $ac_c" 1>&6
2676 else
2677   ac_save_LIBS="$LIBS"
2678 LIBS="-lc_r  $LIBS"
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2682 /* Override any gcc2 internal prototype to avoid an error.  */
2683 /* We use char because int might match the return type of a gcc2
2684     builtin and then its argument prototype would still apply.  */
2685 char pthread_attr_init();
2686
2687 int main() {
2688 pthread_attr_init()
2689 ; return 0; }
2690 EOF
2691 if { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2692   rm -rf conftest*
2693   eval "ac_cv_lib_$ac_lib_var=yes"
2694 else
2695   echo "configure: failed program was:" >&5
2696   cat conftest.$ac_ext >&5
2697   rm -rf conftest*
2698   eval "ac_cv_lib_$ac_lib_var=no"
2699 fi
2700 rm -f conftest*
2701 LIBS="$ac_save_LIBS"
2702
2703 fi
2704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2705   echo "$ac_t""yes" 1>&6
2706   THREAD_LIB="-lc_r"
2707 else
2708   echo "$ac_t""no" 1>&6
2709 fi
2710
2711 fi
2712 if test "x${THREAD_LIB}" = xerror; then
2713   echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2714 echo "configure:2715: checking for pthread_attr_init" >&5
2715 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2716   echo $ac_n "(cached) $ac_c" 1>&6
2717 else
2718   cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2721 /* System header to define __stub macros and hopefully few prototypes,
2722     which can conflict with char pthread_attr_init(); below.  */
2723 #include <assert.h>
2724 /* Override any gcc2 internal prototype to avoid an error.  */
2725 /* We use char because int might match the return type of a gcc2
2726     builtin and then its argument prototype would still apply.  */
2727 char pthread_attr_init();
2728
2729 int main() {
2730
2731 /* The GNU C library defines this for functions which it implements
2732     to always fail with ENOSYS.  Some functions are actually named
2733     something starting with __ and the normal name is an alias.  */
2734 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2735 choke me
2736 #else
2737 pthread_attr_init();
2738 #endif
2739
2740 ; return 0; }
2741 EOF
2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2743   rm -rf conftest*
2744   eval "ac_cv_func_pthread_attr_init=yes"
2745 else
2746   echo "configure: failed program was:" >&5
2747   cat conftest.$ac_ext >&5
2748   rm -rf conftest*
2749   eval "ac_cv_func_pthread_attr_init=no"
2750 fi
2751 rm -f conftest*
2752 fi
2753
2754 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2755   echo "$ac_t""yes" 1>&6
2756   :
2757 else
2758   echo "$ac_t""no" 1>&6
2759 fi
2760
2761   THREAD_LIB=""
2762 fi
2763
2764 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
2765 echo "configure:2766: checking for cthread_fork in -lthreads" >&5
2766 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
2767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2768   echo $ac_n "(cached) $ac_c" 1>&6
2769 else
2770   ac_save_LIBS="$LIBS"
2771 LIBS="-lthreads  $LIBS"
2772 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 /* Override any gcc2 internal prototype to avoid an error.  */
2776 /* We use char because int might match the return type of a gcc2
2777     builtin and then its argument prototype would still apply.  */
2778 char cthread_fork();
2779
2780 int main() {
2781 cthread_fork()
2782 ; return 0; }
2783 EOF
2784 if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2785   rm -rf conftest*
2786   eval "ac_cv_lib_$ac_lib_var=yes"
2787 else
2788   echo "configure: failed program was:" >&5
2789   cat conftest.$ac_ext >&5
2790   rm -rf conftest*
2791   eval "ac_cv_lib_$ac_lib_var=no"
2792 fi
2793 rm -f conftest*
2794 LIBS="$ac_save_LIBS"
2795
2796 fi
2797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2798   echo "$ac_t""yes" 1>&6
2799   THREAD_LIB="-lthreads"
2800 else
2801   echo "$ac_t""no" 1>&6
2802 fi
2803
2804
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 #include <pthread.h>
2809 EOF
2810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2811   egrep "pthread_cond_t" >/dev/null 2>&1; then
2812   rm -rf conftest*
2813   
2814   cat >> confdefs.h <<\EOF
2815 #define PTHREAD_COND_T_IN_PTHREAD_H 1
2816 EOF
2817
2818 fi
2819 rm -f conftest*
2820
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824 #include <strings.h>
2825 EOF
2826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2827   egrep "strncasecmp" >/dev/null 2>&1; then
2828   rm -rf conftest*
2829   
2830   cat >> confdefs.h <<\EOF
2831 #define STRNCASECMP_IN_STRINGS_H 1
2832 EOF
2833
2834 fi
2835 rm -f conftest*
2836
2837
2838 for ac_hdr in stddef.h getopt.h strings.h
2839 do
2840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2842 echo "configure:2843: checking for $ac_hdr" >&5
2843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2844   echo $ac_n "(cached) $ac_c" 1>&6
2845 else
2846   cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2849 #include <$ac_hdr>
2850 EOF
2851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2852 { (eval echo configure:2853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2854 if test -z "$ac_err"; then
2855   rm -rf conftest*
2856   eval "ac_cv_header_$ac_safe=yes"
2857 else
2858   echo "$ac_err" >&5
2859   echo "configure: failed program was:" >&5
2860   cat conftest.$ac_ext >&5
2861   rm -rf conftest*
2862   eval "ac_cv_header_$ac_safe=no"
2863 fi
2864 rm -f conftest*
2865 fi
2866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2867   echo "$ac_t""yes" 1>&6
2868     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2869   cat >> confdefs.h <<EOF
2870 #define $ac_tr_hdr 1
2871 EOF
2872  
2873 else
2874   echo "$ac_t""no" 1>&6
2875 fi
2876 done
2877
2878 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
2879 do
2880 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2881 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2882 echo "configure:2883: checking for $ac_hdr" >&5
2883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2884   echo $ac_n "(cached) $ac_c" 1>&6
2885 else
2886   cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2889 #include <$ac_hdr>
2890 EOF
2891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2892 { (eval echo configure:2893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2894 if test -z "$ac_err"; then
2895   rm -rf conftest*
2896   eval "ac_cv_header_$ac_safe=yes"
2897 else
2898   echo "$ac_err" >&5
2899   echo "configure: failed program was:" >&5
2900   cat conftest.$ac_ext >&5
2901   rm -rf conftest*
2902   eval "ac_cv_header_$ac_safe=no"
2903 fi
2904 rm -f conftest*
2905 fi
2906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2907   echo "$ac_t""yes" 1>&6
2908     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2909   cat >> confdefs.h <<EOF
2910 #define $ac_tr_hdr 1
2911 EOF
2912  
2913 else
2914   echo "$ac_t""no" 1>&6
2915 fi
2916 done
2917
2918 for ac_hdr in sys/soundcard.h machine/soundcard.h
2919 do
2920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2922 echo "configure:2923: checking for $ac_hdr" >&5
2923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2924   echo $ac_n "(cached) $ac_c" 1>&6
2925 else
2926   cat > conftest.$ac_ext <<EOF
2927 #line 2928 "configure"
2928 #include "confdefs.h"
2929 #include <$ac_hdr>
2930 EOF
2931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2932 { (eval echo configure:2933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2934 if test -z "$ac_err"; then
2935   rm -rf conftest*
2936   eval "ac_cv_header_$ac_safe=yes"
2937 else
2938   echo "$ac_err" >&5
2939   echo "configure: failed program was:" >&5
2940   cat conftest.$ac_ext >&5
2941   rm -rf conftest*
2942   eval "ac_cv_header_$ac_safe=no"
2943 fi
2944 rm -f conftest*
2945 fi
2946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2947   echo "$ac_t""yes" 1>&6
2948     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2949   cat >> confdefs.h <<EOF
2950 #define $ac_tr_hdr 1
2951 EOF
2952  
2953 else
2954   echo "$ac_t""no" 1>&6
2955 fi
2956 done
2957
2958 for ac_hdr in dlfcn.h image.h
2959 do
2960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2962 echo "configure:2963: checking for $ac_hdr" >&5
2963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2964   echo $ac_n "(cached) $ac_c" 1>&6
2965 else
2966   cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969 #include <$ac_hdr>
2970 EOF
2971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2972 { (eval echo configure:2973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2974 if test -z "$ac_err"; then
2975   rm -rf conftest*
2976   eval "ac_cv_header_$ac_safe=yes"
2977 else
2978   echo "$ac_err" >&5
2979   echo "configure: failed program was:" >&5
2980   cat conftest.$ac_ext >&5
2981   rm -rf conftest*
2982   eval "ac_cv_header_$ac_safe=no"
2983 fi
2984 rm -f conftest*
2985 fi
2986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2987   echo "$ac_t""yes" 1>&6
2988     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2989   cat >> confdefs.h <<EOF
2990 #define $ac_tr_hdr 1
2991 EOF
2992  
2993 else
2994   echo "$ac_t""no" 1>&6
2995 fi
2996 done
2997
2998 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2999 do
3000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3002 echo "configure:3003: checking for $ac_hdr" >&5
3003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3004   echo $ac_n "(cached) $ac_c" 1>&6
3005 else
3006   cat > conftest.$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3009 #include <$ac_hdr>
3010 EOF
3011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3012 { (eval echo configure:3013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3014 if test -z "$ac_err"; then
3015   rm -rf conftest*
3016   eval "ac_cv_header_$ac_safe=yes"
3017 else
3018   echo "$ac_err" >&5
3019   echo "configure: failed program was:" >&5
3020   cat conftest.$ac_ext >&5
3021   rm -rf conftest*
3022   eval "ac_cv_header_$ac_safe=no"
3023 fi
3024 rm -f conftest*
3025 fi
3026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3027   echo "$ac_t""yes" 1>&6
3028     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3029   cat >> confdefs.h <<EOF
3030 #define $ac_tr_hdr 1
3031 EOF
3032  
3033 else
3034   echo "$ac_t""no" 1>&6
3035 fi
3036 done
3037
3038 for ac_hdr in machine/param.h
3039 do
3040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3042 echo "configure:3043: checking for $ac_hdr" >&5
3043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3044   echo $ac_n "(cached) $ac_c" 1>&6
3045 else
3046   cat > conftest.$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3049 #include <$ac_hdr>
3050 EOF
3051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3052 { (eval echo configure:3053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3054 if test -z "$ac_err"; then
3055   rm -rf conftest*
3056   eval "ac_cv_header_$ac_safe=yes"
3057 else
3058   echo "$ac_err" >&5
3059   echo "configure: failed program was:" >&5
3060   cat conftest.$ac_ext >&5
3061   rm -rf conftest*
3062   eval "ac_cv_header_$ac_safe=no"
3063 fi
3064 rm -f conftest*
3065 fi
3066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3067   echo "$ac_t""yes" 1>&6
3068     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3069   cat >> confdefs.h <<EOF
3070 #define $ac_tr_hdr 1
3071 EOF
3072  
3073 else
3074   echo "$ac_t""no" 1>&6
3075 fi
3076 done
3077
3078
3079 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
3080 do
3081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3083 echo "configure:3084: checking for $ac_hdr" >&5
3084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3085   echo $ac_n "(cached) $ac_c" 1>&6
3086 else
3087   cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 #include <$ac_hdr>
3091 EOF
3092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3093 { (eval echo configure:3094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3095 if test -z "$ac_err"; then
3096   rm -rf conftest*
3097   eval "ac_cv_header_$ac_safe=yes"
3098 else
3099   echo "$ac_err" >&5
3100   echo "configure: failed program was:" >&5
3101   cat conftest.$ac_ext >&5
3102   rm -rf conftest*
3103   eval "ac_cv_header_$ac_safe=no"
3104 fi
3105 rm -f conftest*
3106 fi
3107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3108   echo "$ac_t""yes" 1>&6
3109     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3110   cat >> confdefs.h <<EOF
3111 #define $ac_tr_hdr 1
3112 EOF
3113  
3114 else
3115   echo "$ac_t""no" 1>&6
3116 fi
3117 done
3118
3119
3120 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
3121 echo "configure:3122: checking for ntohl in sys/param.h" >&5
3122 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
3123   echo $ac_n "(cached) $ac_c" 1>&6
3124 else
3125   CFLAGS="${save_CFLAGS} -Wall -Werror"
3126      cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3129 #include <sys/param.h>
3130 int main() {
3131 void foo() { int meuh; ntohl(meuh); }
3132 ; return 0; }
3133 EOF
3134 if { (eval echo configure:3135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3135   rm -rf conftest*
3136   ac_cv_c_ntohl_sys_param_h=yes
3137 else
3138   echo "configure: failed program was:" >&5
3139   cat conftest.$ac_ext >&5
3140   rm -rf conftest*
3141   ac_cv_c_ntohl_sys_param_h=no
3142 fi
3143 rm -f conftest*
3144 fi
3145
3146 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
3147 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
3148     cat >> confdefs.h <<\EOF
3149 #define NTOHL_IN_SYS_PARAM_H 1
3150 EOF
3151
3152 fi
3153
3154 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
3155 echo "configure:3156: checking if \$CC accepts -finline-limit" >&5
3156 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
3157   echo $ac_n "(cached) $ac_c" 1>&6
3158 else
3159   CFLAGS="${save_CFLAGS} -finline-limit-30000"
3160      cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3163
3164 int main() {
3165
3166 ; return 0; }
3167 EOF
3168 if { (eval echo configure:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169   rm -rf conftest*
3170   ac_cv_c_inline_limit=yes
3171 else
3172   echo "configure: failed program was:" >&5
3173   cat conftest.$ac_ext >&5
3174   rm -rf conftest*
3175   ac_cv_c_inline_limit=no
3176 fi
3177 rm -f conftest*
3178 fi
3179
3180 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
3181 if test x"$ac_cv_c_inline_limit" != x"no"; then
3182     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
3183 fi
3184
3185 echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6
3186 echo "configure:3187: checking if \$CC accepts -bundle -undefined error" >&5
3187 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
3188   echo $ac_n "(cached) $ac_c" 1>&6
3189 else
3190   CFLAGS="${save_CFLAGS} -bundle -undefined error"
3191      cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194
3195 int main() {
3196
3197 ; return 0; }
3198 EOF
3199 if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3200   rm -rf conftest*
3201   ac_cv_ld_darwin=yes
3202 else
3203   echo "configure: failed program was:" >&5
3204   cat conftest.$ac_ext >&5
3205   rm -rf conftest*
3206   ac_cv_ld_darwin=no
3207 fi
3208 rm -f conftest*
3209 fi
3210
3211 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
3212 if test x"$ac_cv_ld_darwin" != x"no"; then
3213     PLCFLAGS="${PLCFLAGS} -bundle -undefined error"
3214 fi
3215
3216 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
3217 echo "configure:3218: checking if \$CC accepts -shared" >&5
3218 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
3219   echo $ac_n "(cached) $ac_c" 1>&6
3220 else
3221   CFLAGS="${save_CFLAGS} -shared"
3222      cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225
3226 int main() {
3227
3228 ; return 0; }
3229 EOF
3230 if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3231   rm -rf conftest*
3232   ac_cv_ld_plugins=yes
3233 else
3234   echo "configure: failed program was:" >&5
3235   cat conftest.$ac_ext >&5
3236   rm -rf conftest*
3237   ac_cv_ld_plugins=no
3238 fi
3239 rm -f conftest*
3240 fi
3241
3242 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
3243 if test x"$ac_cv_ld_plugins" != x"no"; then
3244     PLCFLAGS="${PLCFLAGS} -shared"
3245 fi
3246         
3247 if test x"${SOFLAGS}" = x; then
3248     echo $ac_n "checking for soname setting""... $ac_c" 1>&6
3249 echo "configure:3250: checking for soname setting" >&5
3250 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
3251   echo $ac_n "(cached) $ac_c" 1>&6
3252 else
3253   
3254         # Standard
3255         try_SOFLAGS="-Wl,-soname -Wl,"
3256         LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3257         cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260
3261 int main() {
3262
3263 ; return 0; }
3264 EOF
3265 if { (eval echo configure:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3266   rm -rf conftest*
3267   ac_cv_ld_soname="${try_SOFLAGS}"
3268 else
3269   echo "configure: failed program was:" >&5
3270   cat conftest.$ac_ext >&5
3271   rm -rf conftest*
3272   
3273             # SunOS
3274             try_SOFLAGS="-Wl,-h -Wl,"
3275             LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
3276             cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279
3280 int main() {
3281
3282 ; return 0; }
3283 EOF
3284 if { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3285   rm -rf conftest*
3286   ac_cv_ld_soname="${try_SOFLAGS}"
3287 else
3288   echo "configure: failed program was:" >&5
3289   cat conftest.$ac_ext >&5
3290   rm -rf conftest*
3291   ac_cv_ld_soname=none
3292 fi
3293 rm -f conftest*
3294         
3295 fi
3296 rm -f conftest*
3297 fi
3298
3299 echo "$ac_t""$ac_cv_ld_soname" 1>&6
3300     if test x"$ac_cv_ld_soname" != x"none"; then
3301         SOFLAGS=$ac_cv_ld_soname
3302     else
3303         echo "
3304 ------------
3305 Your system doesn't seem to have support for dynamic linking. You may
3306 have problems using libdvdcss.
3307 ------------
3308 "
3309     fi
3310 fi
3311
3312 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
3313 echo "configure:3314: checking __attribute__ ((aligned ())) support" >&5
3314 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
3315   echo $ac_n "(cached) $ac_c" 1>&6
3316 else
3317   ac_cv_c_attribute_aligned=0
3318         CFLAGS="${save_CFLAGS} -Werror"
3319     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
3320         cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323
3324 int main() {
3325 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
3326 ; return 0; }
3327 EOF
3328 if { (eval echo configure:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3329   rm -rf conftest*
3330   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
3331 else
3332   echo "configure: failed program was:" >&5
3333   cat conftest.$ac_ext >&5
3334 fi
3335 rm -f conftest*
3336     done
3337 fi
3338
3339 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
3340 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
3341     cat >> confdefs.h <<EOF
3342 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
3343 EOF
3344
3345 fi
3346
3347 CFLAGS="${save_CFLAGS}"
3348 LDFLAGS="${save_LDFLAGS}"
3349
3350 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
3351 echo "configure:3352: checking for boolean_t in sys/types.h" >&5
3352 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
3353   echo $ac_n "(cached) $ac_c" 1>&6
3354 else
3355   cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 #include <sys/types.h>
3359 int main() {
3360 void quux() { boolean_t foo; }
3361 ; return 0; }
3362 EOF
3363 if { (eval echo configure:3364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3364   rm -rf conftest*
3365   ac_cv_c_boolean_t_sys_types_h=yes
3366 else
3367   echo "configure: failed program was:" >&5
3368   cat conftest.$ac_ext >&5
3369   rm -rf conftest*
3370   ac_cv_c_boolean_t_sys_types_h=no
3371 fi
3372 rm -f conftest*
3373 fi
3374
3375 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
3376 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
3377     cat >> confdefs.h <<\EOF
3378 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3379 EOF
3380
3381 fi
3382
3383 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3384 echo "configure:3385: checking for boolean_t in pthread.h" >&5
3385 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
3386   echo $ac_n "(cached) $ac_c" 1>&6
3387 else
3388   cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <pthread.h>
3392 int main() {
3393 void quux() { boolean_t foo; }
3394 ; return 0; }
3395 EOF
3396 if { (eval echo configure:3397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3397   rm -rf conftest*
3398   ac_cv_c_boolean_t_pthread_h=yes
3399 else
3400   echo "configure: failed program was:" >&5
3401   cat conftest.$ac_ext >&5
3402   rm -rf conftest*
3403   ac_cv_c_boolean_t_pthread_h=no
3404 fi
3405 rm -f conftest*
3406 fi
3407
3408 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
3409 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
3410     cat >> confdefs.h <<\EOF
3411 #define BOOLEAN_T_IN_PTHREAD_H 1
3412 EOF
3413
3414 fi
3415
3416 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
3417 echo "configure:3418: checking for boolean_t in cthreads.h" >&5
3418 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
3419   echo $ac_n "(cached) $ac_c" 1>&6
3420 else
3421   cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 #include <cthreads.h>
3425 int main() {
3426 void quux() { boolean_t foo; }
3427 ; return 0; }
3428 EOF
3429 if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3430   rm -rf conftest*
3431   ac_cv_c_boolean_t_cthreads_h=yes
3432 else
3433   echo "configure: failed program was:" >&5
3434   cat conftest.$ac_ext >&5
3435   rm -rf conftest*
3436   ac_cv_c_boolean_t_cthreads_h=no
3437 fi
3438 rm -f conftest*
3439 fi
3440
3441 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
3442 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
3443     cat >> confdefs.h <<\EOF
3444 #define BOOLEAN_T_IN_CTHREADS_H 1
3445 EOF
3446
3447 fi
3448
3449 echo $ac_n "checking for working const""... $ac_c" 1>&6
3450 echo "configure:3451: checking for working const" >&5
3451 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3452   echo $ac_n "(cached) $ac_c" 1>&6
3453 else
3454   cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457
3458 int main() {
3459
3460 /* Ultrix mips cc rejects this.  */
3461 typedef int charset[2]; const charset x;
3462 /* SunOS 4.1.1 cc rejects this.  */
3463 char const *const *ccp;
3464 char **p;
3465 /* NEC SVR4.0.2 mips cc rejects this.  */
3466 struct point {int x, y;};
3467 static struct point const zero = {0,0};
3468 /* AIX XL C 1.02.0.0 rejects this.
3469    It does not let you subtract one const X* pointer from another in an arm
3470    of an if-expression whose if-part is not a constant expression */
3471 const char *g = "string";
3472 ccp = &g + (g ? g-g : 0);
3473 /* HPUX 7.0 cc rejects these. */
3474 ++ccp;
3475 p = (char**) ccp;
3476 ccp = (char const *const *) p;
3477 { /* SCO 3.2v4 cc rejects this.  */
3478   char *t;
3479   char const *s = 0 ? (char *) 0 : (char const *) 0;
3480
3481   *t++ = 0;
3482 }
3483 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3484   int x[] = {25, 17};
3485   const int *foo = &x[0];
3486   ++foo;
3487 }
3488 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3489   typedef const int *iptr;
3490   iptr p = 0;
3491   ++p;
3492 }
3493 { /* AIX XL C 1.02.0.0 rejects this saying
3494      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3495   struct s { int j; const int *ap[3]; };
3496   struct s *b; b->j = 5;
3497 }
3498 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3499   const int foo = 10;
3500 }
3501
3502 ; return 0; }
3503 EOF
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505   rm -rf conftest*
3506   ac_cv_c_const=yes
3507 else
3508   echo "configure: failed program was:" >&5
3509   cat conftest.$ac_ext >&5
3510   rm -rf conftest*
3511   ac_cv_c_const=no
3512 fi
3513 rm -f conftest*
3514 fi
3515
3516 echo "$ac_t""$ac_cv_c_const" 1>&6
3517 if test $ac_cv_c_const = no; then
3518   cat >> confdefs.h <<\EOF
3519 #define const 
3520 EOF
3521
3522 fi
3523
3524 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3525 echo "configure:3526: checking for ANSI C header files" >&5
3526 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3527   echo $ac_n "(cached) $ac_c" 1>&6
3528 else
3529   cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 #include <stdlib.h>
3533 #include <stdarg.h>
3534 #include <string.h>
3535 #include <float.h>
3536 EOF
3537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3538 { (eval echo configure:3539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3540 if test -z "$ac_err"; then
3541   rm -rf conftest*
3542   ac_cv_header_stdc=yes
3543 else
3544   echo "$ac_err" >&5
3545   echo "configure: failed program was:" >&5
3546   cat conftest.$ac_ext >&5
3547   rm -rf conftest*
3548   ac_cv_header_stdc=no
3549 fi
3550 rm -f conftest*
3551
3552 if test $ac_cv_header_stdc = yes; then
3553   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 #include <string.h>
3558 EOF
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560   egrep "memchr" >/dev/null 2>&1; then
3561   :
3562 else
3563   rm -rf conftest*
3564   ac_cv_header_stdc=no
3565 fi
3566 rm -f conftest*
3567
3568 fi
3569
3570 if test $ac_cv_header_stdc = yes; then
3571   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3575 #include <stdlib.h>
3576 EOF
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578   egrep "free" >/dev/null 2>&1; then
3579   :
3580 else
3581   rm -rf conftest*
3582   ac_cv_header_stdc=no
3583 fi
3584 rm -f conftest*
3585
3586 fi
3587
3588 if test $ac_cv_header_stdc = yes; then
3589   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3590 if test "$cross_compiling" = yes; then
3591   :
3592 else
3593   cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <ctype.h>
3597 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3598 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3600 int main () { int i; for (i = 0; i < 256; i++)
3601 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3602 exit (0); }
3603
3604 EOF
3605 if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3606 then
3607   :
3608 else
3609   echo "configure: failed program was:" >&5
3610   cat conftest.$ac_ext >&5
3611   rm -fr conftest*
3612   ac_cv_header_stdc=no
3613 fi
3614 rm -fr conftest*
3615 fi
3616
3617 fi
3618 fi
3619
3620 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3621 if test $ac_cv_header_stdc = yes; then
3622   cat >> confdefs.h <<\EOF
3623 #define STDC_HEADERS 1
3624 EOF
3625
3626 fi
3627
3628 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3629 echo "configure:3630: checking for size_t" >&5
3630 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3631   echo $ac_n "(cached) $ac_c" 1>&6
3632 else
3633   cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 #include <sys/types.h>
3637 #if STDC_HEADERS
3638 #include <stdlib.h>
3639 #include <stddef.h>
3640 #endif
3641 EOF
3642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3643   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3644   rm -rf conftest*
3645   ac_cv_type_size_t=yes
3646 else
3647   rm -rf conftest*
3648   ac_cv_type_size_t=no
3649 fi
3650 rm -f conftest*
3651
3652 fi
3653 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3654 if test $ac_cv_type_size_t = no; then
3655   cat >> confdefs.h <<\EOF
3656 #define size_t unsigned
3657 EOF
3658
3659 fi
3660
3661 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3662 echo "configure:3663: checking whether time.h and sys/time.h may both be included" >&5
3663 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3664   echo $ac_n "(cached) $ac_c" 1>&6
3665 else
3666   cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3669 #include <sys/types.h>
3670 #include <sys/time.h>
3671 #include <time.h>
3672 int main() {
3673 struct tm *tp;
3674 ; return 0; }
3675 EOF
3676 if { (eval echo configure:3677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3677   rm -rf conftest*
3678   ac_cv_header_time=yes
3679 else
3680   echo "configure: failed program was:" >&5
3681   cat conftest.$ac_ext >&5
3682   rm -rf conftest*
3683   ac_cv_header_time=no
3684 fi
3685 rm -f conftest*
3686 fi
3687
3688 echo "$ac_t""$ac_cv_header_time" 1>&6
3689 if test $ac_cv_header_time = yes; then
3690   cat >> confdefs.h <<\EOF
3691 #define TIME_WITH_SYS_TIME 1
3692 EOF
3693
3694 fi
3695
3696
3697
3698 ARCH=${target_cpu}
3699
3700 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
3701 PLUGINS="${PLUGINS}"
3702
3703 MMX_MODULES="yuvmmx idctmmx motionmmx"
3704 MMXEXT_MODULES="idctmmxext motionmmxext"
3705 THREEDNOW_MODULES="imdct3dn downmix3dn"
3706 SSE_MODULES="imdctsse downmixsse"
3707 ALTIVEC_MODULES="idctaltivec motionaltivec"
3708
3709 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
3710 echo "configure:3711: checking if \$CC groks MMX inline assembly" >&5
3711 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
3712   echo $ac_n "(cached) $ac_c" 1>&6
3713 else
3714   cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3717
3718 int main() {
3719 void quux(){void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));}
3720 ; return 0; }
3721 EOF
3722 if { (eval echo configure:3723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3723   rm -rf conftest*
3724   ac_cv_mmx_inline=yes
3725 else
3726   echo "configure: failed program was:" >&5
3727   cat conftest.$ac_ext >&5
3728   rm -rf conftest*
3729   ac_cv_mmx_inline=no
3730 fi
3731 rm -f conftest*
3732 fi
3733
3734 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
3735 if test x"$ac_cv_mmx_inline" != x"no"; then
3736   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
3737 fi
3738
3739 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
3740 echo "configure:3741: checking if \$CC groks MMX EXT inline assembly" >&5
3741 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
3742   echo $ac_n "(cached) $ac_c" 1>&6
3743 else
3744   cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3747
3748 int main() {
3749 void quux(){void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));}
3750 ; return 0; }
3751 EOF
3752 if { (eval echo configure:3753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3753   rm -rf conftest*
3754   ac_cv_mmxext_inline=yes
3755 else
3756   echo "configure: failed program was:" >&5
3757   cat conftest.$ac_ext >&5
3758   rm -rf conftest*
3759   ac_cv_mmxext_inline=no
3760 fi
3761 rm -f conftest*
3762 fi
3763
3764 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
3765 if test x"$ac_cv_mmxext_inline" != x"no"; then
3766   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
3767 fi
3768
3769 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
3770 echo "configure:3771: checking if \$CC groks 3D Now! inline assembly" >&5
3771 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
3772   echo $ac_n "(cached) $ac_c" 1>&6
3773 else
3774   cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777
3778 int main() {
3779 void quux(){void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));}
3780 ; return 0; }
3781 EOF
3782 if { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3783   rm -rf conftest*
3784   ac_cv_3dnow_inline=yes
3785 else
3786   echo "configure: failed program was:" >&5
3787   cat conftest.$ac_ext >&5
3788   rm -rf conftest*
3789   ac_cv_3dnow_inline=no
3790 fi
3791 rm -f conftest*
3792 fi
3793
3794 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
3795 if test x"$ac_cv_3dnow_inline" != x"no"; then
3796   cat >> confdefs.h <<\EOF
3797 #define HAVE_3DNOW 1
3798 EOF
3799
3800   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
3801 fi
3802
3803 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
3804 echo "configure:3805: checking if \$CC groks SSE inline assembly" >&5
3805 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
3806   echo $ac_n "(cached) $ac_c" 1>&6
3807 else
3808   cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3811
3812 int main() {
3813 void quux(){void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));}
3814 ; return 0; }
3815 EOF
3816 if { (eval echo configure:3817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3817   rm -rf conftest*
3818   ac_cv_sse_inline=yes
3819 else
3820   echo "configure: failed program was:" >&5
3821   cat conftest.$ac_ext >&5
3822   rm -rf conftest*
3823   ac_cv_sse_inline=no
3824 fi
3825 rm -f conftest*
3826 fi
3827
3828 echo "$ac_t""$ac_cv_sse_inline" 1>&6
3829 if test x"$ac_cv_sse_inline" != x"no"; then
3830   cat >> confdefs.h <<\EOF
3831 #define HAVE_SSE 1
3832 EOF
3833
3834   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
3835 fi
3836
3837 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
3838 echo "configure:3839: checking if \$CC groks Altivec inline assembly" >&5
3839 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
3840   echo $ac_n "(cached) $ac_c" 1>&6
3841 else
3842   cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3845
3846 int main() {
3847 void quux(){asm volatile("vperm 0,1,2,3");}
3848 ; return 0; }
3849 EOF
3850 if { (eval echo configure:3851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3851   rm -rf conftest*
3852   ac_cv_altivec_inline=yes
3853 else
3854   echo "configure: failed program was:" >&5
3855   cat conftest.$ac_ext >&5
3856   rm -rf conftest*
3857   save_CFLAGS=$CFLAGS
3858           CFLAGS="$CFLAGS -Wa,-m7400"
3859           cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862
3863 int main() {
3864 void quux(){asm volatile("vperm 0,1,2,3");}
3865 ; return 0; }
3866 EOF
3867 if { (eval echo configure:3868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3868   rm -rf conftest*
3869   ac_cv_altivec_inline=yes; CFLAGS_ALTIVEC="-Wa,-m7400"
3870 else
3871   echo "configure: failed program was:" >&5
3872   cat conftest.$ac_ext >&5
3873   rm -rf conftest*
3874   ac_cv_altivec_inline=no
3875 fi
3876 rm -f conftest*
3877           CFLAGS=$save_CFLAGS
3878          
3879 fi
3880 rm -f conftest*
3881 fi
3882
3883 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
3884 if test x"$ac_cv_altivec_inline" != x"no"; then
3885   cat >> confdefs.h <<\EOF
3886 #define HAVE_ALTIVEC 1
3887 EOF
3888
3889   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
3890 fi
3891
3892 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
3893 echo "configure:3894: checking if \$CC groks Altivec C extensions" >&5
3894 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
3895   echo $ac_n "(cached) $ac_c" 1>&6
3896 else
3897   save_CFLAGS=$CFLAGS
3898      CFLAGS="$CFLAGS -faltivec"
3899      # Darwin test
3900      cat > conftest.$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3903
3904 int main() {
3905 void quux(){vec_mtvscr((vector unsigned int)(0));}
3906 ; return 0; }
3907 EOF
3908 if { (eval echo configure:3909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3909   rm -rf conftest*
3910   ac_cv_c_altivec=-faltivec
3911 else
3912   echo "configure: failed program was:" >&5
3913   cat conftest.$ac_ext >&5
3914   rm -rf conftest*
3915   
3916         # Linux/PPC test
3917         CFLAGS="$save_CFLAGS $CFLAGS_ALTIVEC -fvec"
3918         cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3921
3922 int main() {
3923 void quux(){vec_mtvscr((vector unsigned int)(0));}
3924 ; return 0; }
3925 EOF
3926 if { (eval echo configure:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3927   rm -rf conftest*
3928   ac_cv_c_altivec="-fvec"
3929 else
3930   echo "configure: failed program was:" >&5
3931   cat conftest.$ac_ext >&5
3932   rm -rf conftest*
3933   ac_cv_c_altivec=no
3934 fi
3935 rm -f conftest*
3936         
3937 fi
3938 rm -f conftest*
3939      CFLAGS=$save_CFLAGS
3940     
3941 fi
3942
3943 echo "$ac_t""$ac_cv_c_altivec" 1>&6
3944 if test x"$ac_cv_c_altivec" != x"no"; then
3945   cat >> confdefs.h <<\EOF
3946 #define HAVE_C_ALTIVEC 1
3947 EOF
3948
3949   CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec"
3950 fi
3951
3952 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
3953 echo "configure:3954: checking if linker needs -framework vecLib" >&5
3954 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
3955   echo $ac_n "(cached) $ac_c" 1>&6
3956 else
3957   save_LDFLAGS=$LDFLAGS
3958      LDFLAGS="$LDFLAGS -framework vecLib"
3959      cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962
3963 int main() {
3964
3965 ; return 0; }
3966 EOF
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3968   rm -rf conftest*
3969   ac_cv_ld_altivec=yes
3970 else
3971   echo "configure: failed program was:" >&5
3972   cat conftest.$ac_ext >&5
3973   rm -rf conftest*
3974   ac_cv_ld_altivec=no
3975 fi
3976 rm -f conftest*
3977      LDFLAGS=$save_LDFLAGS
3978     
3979 fi
3980
3981 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
3982 if test x"$ac_cv_ld_altivec" != x"no"; then
3983   LIB_ALTIVEC="-framework vecLib"
3984 fi
3985
3986
3987 CAN_BUILD_LIBDVDCSS=0
3988
3989 for ac_hdr in winioctl.h
3990 do
3991 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3992 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3993 echo "configure:3994: checking for $ac_hdr" >&5
3994 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3995   echo $ac_n "(cached) $ac_c" 1>&6
3996 else
3997   cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4000 #include <$ac_hdr>
4001 EOF
4002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4003 { (eval echo configure:4004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4005 if test -z "$ac_err"; then
4006   rm -rf conftest*
4007   eval "ac_cv_header_$ac_safe=yes"
4008 else
4009   echo "$ac_err" >&5
4010   echo "configure: failed program was:" >&5
4011   cat conftest.$ac_ext >&5
4012   rm -rf conftest*
4013   eval "ac_cv_header_$ac_safe=no"
4014 fi
4015 rm -f conftest*
4016 fi
4017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4018   echo "$ac_t""yes" 1>&6
4019     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4020   cat >> confdefs.h <<EOF
4021 #define $ac_tr_hdr 1
4022 EOF
4023  
4024   CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4025
4026 else
4027   echo "$ac_t""no" 1>&6
4028 fi
4029 done
4030
4031
4032 for ac_hdr in sys/ioctl.h
4033 do
4034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4036 echo "configure:4037: checking for $ac_hdr" >&5
4037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4038   echo $ac_n "(cached) $ac_c" 1>&6
4039 else
4040   cat > conftest.$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4043 #include <$ac_hdr>
4044 EOF
4045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4046 { (eval echo configure:4047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4048 if test -z "$ac_err"; then
4049   rm -rf conftest*
4050   eval "ac_cv_header_$ac_safe=yes"
4051 else
4052   echo "$ac_err" >&5
4053   echo "configure: failed program was:" >&5
4054   cat conftest.$ac_ext >&5
4055   rm -rf conftest*
4056   eval "ac_cv_header_$ac_safe=no"
4057 fi
4058 rm -f conftest*
4059 fi
4060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4061   echo "$ac_t""yes" 1>&6
4062     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4063   cat >> confdefs.h <<EOF
4064 #define $ac_tr_hdr 1
4065 EOF
4066  
4067   CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
4068   for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
4069 do
4070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4072 echo "configure:4073: checking for $ac_hdr" >&5
4073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4074   echo $ac_n "(cached) $ac_c" 1>&6
4075 else
4076   cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 #include <$ac_hdr>
4080 EOF
4081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4082 { (eval echo configure:4083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4084 if test -z "$ac_err"; then
4085   rm -rf conftest*
4086   eval "ac_cv_header_$ac_safe=yes"
4087 else
4088   echo "$ac_err" >&5
4089   echo "configure: failed program was:" >&5
4090   cat conftest.$ac_ext >&5
4091   rm -rf conftest*
4092   eval "ac_cv_header_$ac_safe=no"
4093 fi
4094 rm -f conftest*
4095 fi
4096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4097   echo "$ac_t""yes" 1>&6
4098     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4099   cat >> confdefs.h <<EOF
4100 #define $ac_tr_hdr 1
4101 EOF
4102  
4103 else
4104   echo "$ac_t""no" 1>&6
4105 fi
4106 done
4107
4108   BSD_DVD_STRUCT=0
4109   LINUX_DVD_STRUCT=0
4110         cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 #include <sys/cdio.h>
4114 EOF
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116   egrep "dvd_struct" >/dev/null 2>&1; then
4117   rm -rf conftest*
4118   
4119     cat >> confdefs.h <<\EOF
4120 #define DVD_STRUCT_IN_SYS_CDIO_H 1
4121 EOF
4122
4123     cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <sys/cdio.h>
4127 EOF
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129   egrep "struct dvd_struct" >/dev/null 2>&1; then
4130   rm -rf conftest*
4131   
4132                     BSD_DVD_STRUCT=1
4133 else
4134   rm -rf conftest*
4135   LINUX_DVD_STRUCT=1
4136 fi
4137 rm -f conftest*
4138
4139   
4140 fi
4141 rm -f conftest*
4142
4143         cat > conftest.$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
4146 #include <sys/dvdio.h>
4147 EOF
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149   egrep "dvd_struct" >/dev/null 2>&1; then
4150   rm -rf conftest*
4151   
4152     cat >> confdefs.h <<\EOF
4153 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
4154 EOF
4155
4156     cat > conftest.$ac_ext <<EOF
4157 #line 4158 "configure"
4158 #include "confdefs.h"
4159 #include <sys/dvdio.h>
4160 EOF
4161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162   egrep "struct dvd_struct" >/dev/null 2>&1; then
4163   rm -rf conftest*
4164   
4165                     BSD_DVD_STRUCT=1
4166 else
4167   rm -rf conftest*
4168   LINUX_DVD_STRUCT=1
4169 fi
4170 rm -f conftest*
4171
4172   
4173 fi
4174 rm -f conftest*
4175
4176         cat > conftest.$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4179 #include <linux/cdrom.h>
4180 EOF
4181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4182   egrep "dvd_struct" >/dev/null 2>&1; then
4183   rm -rf conftest*
4184   
4185     cat >> confdefs.h <<\EOF
4186 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
4187 EOF
4188
4189     LINUX_DVD_STRUCT=1
4190   
4191 fi
4192 rm -f conftest*
4193
4194         NEED_BSDI_LIBDVD=0
4195   cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4198 #include <dvd.h>
4199 EOF
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201   egrep "dvd_struct" >/dev/null 2>&1; then
4202   rm -rf conftest*
4203   
4204     cat >> confdefs.h <<\EOF
4205 #define DVD_STRUCT_IN_DVD_H 1
4206 EOF
4207
4208     LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
4209     LINUX_DVD_STRUCT=1
4210   
4211 else
4212   rm -rf conftest*
4213   
4214                 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
4215 do
4216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4218 echo "configure:4219: checking for $ac_hdr" >&5
4219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4220   echo $ac_n "(cached) $ac_c" 1>&6
4221 else
4222   cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 #include <$ac_hdr>
4226 EOF
4227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4228 { (eval echo configure:4229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4230 if test -z "$ac_err"; then
4231   rm -rf conftest*
4232   eval "ac_cv_header_$ac_safe=yes"
4233 else
4234   echo "$ac_err" >&5
4235   echo "configure: failed program was:" >&5
4236   cat conftest.$ac_ext >&5
4237   rm -rf conftest*
4238   eval "ac_cv_header_$ac_safe=no"
4239 fi
4240 rm -f conftest*
4241 fi
4242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4243   echo "$ac_t""yes" 1>&6
4244     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4245   cat >> confdefs.h <<EOF
4246 #define $ac_tr_hdr 1
4247 EOF
4248  
4249       NEED_BSDI_LIBDVD=1
4250       cat >> confdefs.h <<\EOF
4251 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
4252 EOF
4253
4254       OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o"
4255       LINUX_DVD_STRUCT=1
4256     
4257 else
4258   echo "$ac_t""no" 1>&6
4259 fi
4260 done
4261
4262   
4263 fi
4264 rm -f conftest*
4265
4266         ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
4267 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
4268 echo "configure:4269: checking for sys/scsi/scsi_types.h" >&5
4269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4270   echo $ac_n "(cached) $ac_c" 1>&6
4271 else
4272   cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 #include <sys/scsi/scsi_types.h>
4276 EOF
4277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4278 { (eval echo configure:4279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4280 if test -z "$ac_err"; then
4281   rm -rf conftest*
4282   eval "ac_cv_header_$ac_safe=yes"
4283 else
4284   echo "$ac_err" >&5
4285   echo "configure: failed program was:" >&5
4286   cat conftest.$ac_ext >&5
4287   rm -rf conftest*
4288   eval "ac_cv_header_$ac_safe=no"
4289 fi
4290 rm -f conftest*
4291 fi
4292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4293   echo "$ac_t""yes" 1>&6
4294   
4295     ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
4296 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
4297 echo "configure:4298: checking for sys/scsi/impl/uscsi.h" >&5
4298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4299   echo $ac_n "(cached) $ac_c" 1>&6
4300 else
4301   cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4304 #include <sys/scsi/impl/uscsi.h>
4305 EOF
4306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4307 { (eval echo configure:4308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4309 if test -z "$ac_err"; then
4310   rm -rf conftest*
4311   eval "ac_cv_header_$ac_safe=yes"
4312 else
4313   echo "$ac_err" >&5
4314   echo "configure: failed program was:" >&5
4315   cat conftest.$ac_ext >&5
4316   rm -rf conftest*
4317   eval "ac_cv_header_$ac_safe=no"
4318 fi
4319 rm -f conftest*
4320 fi
4321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4322   echo "$ac_t""yes" 1>&6
4323   
4324       cat >> confdefs.h <<\EOF
4325 #define SOLARIS_USCSI 1
4326 EOF
4327
4328     
4329 else
4330   echo "$ac_t""no" 1>&6
4331 fi
4332
4333   
4334 else
4335   echo "$ac_t""no" 1>&6
4336 fi
4337
4338         if test x$LINUX_DVD_STRUCT = x1; then
4339     cat >> confdefs.h <<\EOF
4340 #define HAVE_LINUX_DVD_STRUCT 1
4341 EOF
4342
4343   else
4344     if test x$BSD_DVD_STRUCT = x1; then
4345       cat >> confdefs.h <<\EOF
4346 #define HAVE_BSD_DVD_STRUCT 1
4347 EOF
4348
4349     fi
4350   fi
4351
4352 else
4353   echo "$ac_t""no" 1>&6
4354 fi
4355 done
4356
4357
4358
4359 case ${target_os} in
4360   bsdi*)
4361     SYS=bsdi
4362     ;;
4363   darwin*)
4364     SYS=darwin
4365     ;;
4366   *)
4367     SYS=${target_os}
4368     ;;
4369 esac
4370
4371 # Check whether --with-tuning or --without-tuning was given.
4372 if test "${with_tuning+set}" = set; then
4373   withval="$with_tuning"
4374   :
4375 fi
4376
4377 if test "x$withval" != "x"; then
4378     TUNING=$withval
4379 else
4380     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
4381     else
4382         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
4383     fi
4384 fi
4385
4386 # Check whether --enable-mmx or --disable-mmx was given.
4387 if test "${enable_mmx+set}" = set; then
4388   enableval="$enable_mmx"
4389    if test x$enableval = xyes; then ARCH="${ARCH} mmx";
4390     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
4391 else
4392    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";
4393     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
4394 fi
4395
4396
4397 # Check whether --enable-altivec or --disable-altivec was given.
4398 if test "${enable_altivec+set}" = set; then
4399   enableval="$enable_altivec"
4400    if test x$enableval = xyes; then ARCH="${ARCH} altivec";
4401     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
4402 else
4403    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
4404     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
4405 fi
4406
4407
4408 DEBUG=0
4409 # Check whether --enable-debug or --disable-debug was given.
4410 if test "${enable_debug+set}" = set; then
4411   enableval="$enable_debug"
4412    if test x$enableval = xyes; then DEBUG=1; fi 
4413 fi
4414
4415
4416 TRACE=0
4417 # Check whether --enable-trace or --disable-trace was given.
4418 if test "${enable_trace+set}" = set; then
4419   enableval="$enable_trace"
4420    if test x$enableval = xyes; then TRACE=1; fi 
4421 fi
4422
4423
4424 GPROF=0
4425 # Check whether --enable-gprof or --disable-gprof was given.
4426 if test "${enable_gprof+set}" = set; then
4427   enableval="$enable_gprof"
4428    if test x$enableval = xyes; then GPROF=1; fi 
4429 fi
4430
4431
4432 CPROF=0
4433 # Check whether --enable-cprof or --disable-cprof was given.
4434 if test "${enable_cprof+set}" = set; then
4435   enableval="$enable_cprof"
4436    if test x$enableval = xyes;
4437   then
4438     LIB="${LIB} -lcprof"
4439     CPROF=1
4440   fi
4441
4442 fi
4443
4444
4445 # Check whether --enable-optimizations or --disable-optimizations was given.
4446 if test "${enable_optimizations+set}" = set; then
4447   enableval="$enable_optimizations"
4448    if test x$enableval = xno; then OPTIMS=0; fi 
4449 else
4450    OPTIMS=1 
4451 fi
4452
4453
4454 # Check whether --enable-pth or --disable-pth was given.
4455 if test "${enable_pth+set}" = set; then
4456   enableval="$enable_pth"
4457    if test x$enableval = xyes; then
4458     echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
4459 echo "configure:4460: checking for pth_init in -lpth" >&5
4460 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
4461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4462   echo $ac_n "(cached) $ac_c" 1>&6
4463 else
4464   ac_save_LIBS="$LIBS"
4465 LIBS="-lpth  $LIBS"
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4469 /* Override any gcc2 internal prototype to avoid an error.  */
4470 /* We use char because int might match the return type of a gcc2
4471     builtin and then its argument prototype would still apply.  */
4472 char pth_init();
4473
4474 int main() {
4475 pth_init()
4476 ; return 0; }
4477 EOF
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4479   rm -rf conftest*
4480   eval "ac_cv_lib_$ac_lib_var=yes"
4481 else
4482   echo "configure: failed program was:" >&5
4483   cat conftest.$ac_ext >&5
4484   rm -rf conftest*
4485   eval "ac_cv_lib_$ac_lib_var=no"
4486 fi
4487 rm -f conftest*
4488 LIBS="$ac_save_LIBS"
4489
4490 fi
4491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4492   echo "$ac_t""yes" 1>&6
4493     ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4494     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4495   cat >> confdefs.h <<EOF
4496 #define $ac_tr_lib 1
4497 EOF
4498
4499   LIBS="-lpth $LIBS"
4500
4501 else
4502   echo "$ac_t""no" 1>&6
4503 fi
4504
4505     cat > conftest.$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4508 #include <pth.h>
4509 EOF
4510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511   egrep "pth_init" >/dev/null 2>&1; then
4512   rm -rf conftest*
4513   
4514       cat >> confdefs.h <<\EOF
4515 #define PTH_INIT_IN_PTH_H 1
4516 EOF
4517
4518     THREAD_LIB="-lpth"
4519     fi
4520 fi
4521 rm -f conftest*
4522
4523
4524 fi
4525
4526
4527 LIB="${LIB} ${THREAD_LIB}"
4528
4529 NEED_LIBDVDCSS=0
4530 STATIC_LIBDVDCSS=0
4531 DUMMY_LIBDVDCSS=0
4532 # Check whether --with-dvdcss or --without-dvdcss was given.
4533 if test "${with_dvdcss+set}" = set; then
4534   withval="$with_dvdcss"
4535    case "x${withval}" in
4536     xlocal-static|xyes)
4537       # local libdvdcss, statically linked
4538       if test x${CAN_BUILD_LIBDVDCSS} = x1
4539       then
4540         NEED_LIBDVDCSS=1
4541         STATIC_LIBDVDCSS=1
4542         BUILTINS="${BUILTINS} dvd"
4543         CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4544         LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4545         LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4546       fi
4547     ;;
4548     xlocal-shared)
4549       # local libdvdcss, dynamically linked
4550       if test x${CAN_BUILD_LIBDVDCSS} = x1
4551       then
4552         NEED_LIBDVDCSS=1
4553         BUILTINS="${BUILTINS} dvd"
4554         CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4555         LIB_DVD="${LIB_DVD} -Llib -ldvdcss"
4556         LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss"
4557       fi
4558     ;;
4559     xno)
4560       # don't use libdvdcss at all, build a DVD module that can dlopen() it
4561       DUMMY_LIBDVDCSS=1
4562       BUILTINS="${BUILTINS} dvd"
4563       OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4564       CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4565       CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
4566       LIB_DVD="${LIB_DVD} -ldl"
4567       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4568     ;;
4569     *)
4570       # existing libdvdcss
4571       BUILTINS="${BUILTINS} dvd"
4572       if test "x$withval" != "xyes"
4573       then
4574         LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib"
4575         CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
4576       fi
4577       LIB_DVD="${LIB_DVD} -ldvdcss"
4578       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss"
4579     esac 
4580 else
4581   # user didn't decide, we choose to use local libdvdcss and link statically
4582   # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
4583    if test x${CAN_BUILD_LIBDVDCSS} = x1
4584     then
4585       NEED_LIBDVDCSS=1
4586       STATIC_LIBDVDCSS=1
4587       BUILTINS="${BUILTINS} dvd"
4588       CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
4589       LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4590       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}"
4591     else
4592       # XXX: no check for libdl is done, don't try this at home !
4593       DUMMY_LIBDVDCSS=1
4594       BUILTINS="${BUILTINS} dvd"
4595       OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o"
4596       CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
4597       LIB_DVD="${LIB_DVD} -ldl"
4598       LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl"
4599     fi 
4600 fi
4601
4602
4603 # Check whether --enable-vcd or --disable-vcd was given.
4604 if test "${enable_vcd+set}" = set; then
4605   enableval="$enable_vcd"
4606   :
4607 fi
4608
4609
4610 if test x$enable_vcd != xno
4611 then
4612   cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 #include <linux/cdrom.h>
4616 EOF
4617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618   egrep "cdrom_msf0" >/dev/null 2>&1; then
4619   rm -rf conftest*
4620   
4621     BUILTINS="${BUILTINS} vcd"
4622   
4623 fi
4624 rm -f conftest*
4625
4626 fi
4627
4628 # Check whether --enable-dummy or --disable-dummy was given.
4629 if test "${enable_dummy+set}" = set; then
4630   enableval="$enable_dummy"
4631   :
4632 fi
4633
4634
4635 if test x$enable_dummy != xno
4636 then
4637   BUILTINS="${BUILTINS} dummy"
4638 fi
4639
4640 # Check whether --enable-null or --disable-null was given.
4641 if test "${enable_null+set}" = set; then
4642   enableval="$enable_null"
4643   :
4644 fi
4645
4646
4647 if test x$enable_null != xno
4648 then
4649   BUILTINS="${BUILTINS} null"
4650 fi
4651
4652 # Check whether --enable-rc or --disable-rc was given.
4653 if test "${enable_rc+set}" = set; then
4654   enableval="$enable_rc"
4655   :
4656 fi
4657
4658
4659 if test x$enable_rc != xno
4660 then
4661   BUILTINS="${BUILTINS} rc"
4662 fi
4663
4664 if test x$SYS = xbeos
4665 then
4666     BUILTINS="${BUILTINS} beos"
4667     LIB_BEOS="-lbe -lgame -lroot -ltracker"
4668     PLCFLAGS="${PLCFLAGS} -nostart"
4669
4670 else
4671
4672 # Check whether --enable-dsp or --disable-dsp was given.
4673 if test "${enable_dsp+set}" = set; then
4674   enableval="$enable_dsp"
4675   :
4676 fi
4677
4678
4679 if test x$enable_dsp != xno
4680 then
4681   if test -c /dev/dsp
4682   then
4683     PLUGINS="${PLUGINS} dsp"
4684   fi
4685 fi
4686
4687 # Check whether --enable-esd or --disable-esd was given.
4688 if test "${enable_esd+set}" = set; then
4689   enableval="$enable_esd"
4690   if test x$enable_esd = xyes
4691    then
4692      # Extract the first word of "esd-config", so it can be a program name with args.
4693 set dummy esd-config; ac_word=$2
4694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4695 echo "configure:4696: checking for $ac_word" >&5
4696 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
4697   echo $ac_n "(cached) $ac_c" 1>&6
4698 else
4699   case "$ESD_CONFIG" in
4700   /*)
4701   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
4702   ;;
4703   ?:/*)                  
4704   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
4705   ;;
4706   *)
4707   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4708   ac_dummy="$PATH"
4709   for ac_dir in $ac_dummy; do 
4710     test -z "$ac_dir" && ac_dir=.
4711     if test -f $ac_dir/$ac_word; then
4712       ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
4713       break
4714     fi
4715   done
4716   IFS="$ac_save_ifs"
4717   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
4718   ;;
4719 esac
4720 fi
4721 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
4722 if test -n "$ESD_CONFIG"; then
4723   echo "$ac_t""$ESD_CONFIG" 1>&6
4724 else
4725   echo "$ac_t""no" 1>&6
4726 fi
4727
4728      if test x${ESD_CONFIG} != xno
4729      then
4730        PLUGINS="${PLUGINS} esd"
4731        LIB_ESD="`${ESD_CONFIG} --libs`"
4732      fi
4733    fi
4734 fi
4735
4736
4737 # Check whether --enable-darwin or --disable-darwin was given.
4738 if test "${enable_darwin+set}" = set; then
4739   enableval="$enable_darwin"
4740   if test x$enable_darwin = xyes; then
4741      PLUGINS="${PLUGINS} darwin"
4742      LIB_DARWIN="-framework CoreAudio"
4743    fi
4744 fi
4745
4746
4747 # Check whether --enable-macosx or --disable-macosx was given.
4748 if test "${enable_macosx+set}" = set; then
4749   enableval="$enable_macosx"
4750   if test x$enable_macosx = xyes
4751    then
4752      BUILTINS="${BUILTINS} macosx macosx_qt"
4753      LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL -framework QuickTime"
4754      LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
4755      LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
4756    fi
4757 else
4758   for ac_hdr in Carbon/Carbon.h
4759 do
4760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4762 echo "configure:4763: checking for $ac_hdr" >&5
4763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4764   echo $ac_n "(cached) $ac_c" 1>&6
4765 else
4766   cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4769 #include <$ac_hdr>
4770 EOF
4771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4772 { (eval echo configure:4773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4774 if test -z "$ac_err"; then
4775   rm -rf conftest*
4776   eval "ac_cv_header_$ac_safe=yes"
4777 else
4778   echo "$ac_err" >&5
4779   echo "configure: failed program was:" >&5
4780   cat conftest.$ac_ext >&5
4781   rm -rf conftest*
4782   eval "ac_cv_header_$ac_safe=no"
4783 fi
4784 rm -f conftest*
4785 fi
4786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4787   echo "$ac_t""yes" 1>&6
4788     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4789   cat >> confdefs.h <<EOF
4790 #define $ac_tr_hdr 1
4791 EOF
4792  BUILTINS="${BUILTINS} macosx macosx_qt"
4793      LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL -framework QuickTime"
4794      LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
4795      LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
4796    
4797 else
4798   echo "$ac_t""no" 1>&6
4799 fi
4800 done
4801
4802 fi
4803
4804
4805 # Check whether --enable-qnx or --disable-qnx was given.
4806 if test "${enable_qnx+set}" = set; then
4807   enableval="$enable_qnx"
4808   :
4809 fi
4810
4811     if test x$enable_qnx != xno
4812     then
4813       for ac_hdr in Ph.h
4814 do
4815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4817 echo "configure:4818: checking for $ac_hdr" >&5
4818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4819   echo $ac_n "(cached) $ac_c" 1>&6
4820 else
4821   cat > conftest.$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4824 #include <$ac_hdr>
4825 EOF
4826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4827 { (eval echo configure:4828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4829 if test -z "$ac_err"; then
4830   rm -rf conftest*
4831   eval "ac_cv_header_$ac_safe=yes"
4832 else
4833   echo "$ac_err" >&5
4834   echo "configure: failed program was:" >&5
4835   cat conftest.$ac_ext >&5
4836   rm -rf conftest*
4837   eval "ac_cv_header_$ac_safe=no"
4838 fi
4839 rm -f conftest*
4840 fi
4841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4842   echo "$ac_t""yes" 1>&6
4843     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4844   cat >> confdefs.h <<EOF
4845 #define $ac_tr_hdr 1
4846 EOF
4847  
4848         PLUGINS="${PLUGINS} qnx"
4849         LIB_QNX="-lasound -lph"
4850       
4851 else
4852   echo "$ac_t""no" 1>&6
4853 fi
4854 done
4855
4856     fi
4857
4858 # Check whether --enable-fb or --disable-fb was given.
4859 if test "${enable_fb+set}" = set; then
4860   enableval="$enable_fb"
4861    if test x$enable_fb = xyes
4862     then
4863       PLUGINS="${PLUGINS} fb"
4864     fi 
4865 fi
4866
4867
4868 # Check whether --with-ggi or --without-ggi was given.
4869 if test "${with_ggi+set}" = set; then
4870   withval="$with_ggi"
4871    if test "x$withval" != "xno"
4872     then
4873       PLUGINS="${PLUGINS} ggi"
4874       if test "x$withval" != "xyes"
4875       then
4876         LIB_GGI="-l"$withval
4877       else
4878         LIB_GGI="-lggi"
4879       fi
4880     fi 
4881 fi
4882
4883
4884 # Check whether --enable-sdl or --disable-sdl was given.
4885 if test "${enable_sdl+set}" = set; then
4886   enableval="$enable_sdl"
4887   :
4888 fi
4889
4890 if test "x$enable_sdl" != "xno"
4891 then
4892   SDL_PATH=$PATH
4893   # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
4894 if test "${with_sdl_config_path+set}" = set; then
4895   withval="$with_sdl_config_path"
4896    if test "x$withval" != "xno"
4897       then
4898         SDL_PATH=$withval:$PATH
4899       fi 
4900 fi
4901
4902   # Extract the first word of "sdl12-config", so it can be a program name with args.
4903 set dummy sdl12-config; ac_word=$2
4904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4905 echo "configure:4906: checking for $ac_word" >&5
4906 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
4907   echo $ac_n "(cached) $ac_c" 1>&6
4908 else
4909   case "$SDL12_CONFIG" in
4910   /*)
4911   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
4912   ;;
4913   ?:/*)                  
4914   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
4915   ;;
4916   *)
4917   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4918   ac_dummy="$SDL_PATH"
4919   for ac_dir in $ac_dummy; do 
4920     test -z "$ac_dir" && ac_dir=.
4921     if test -f $ac_dir/$ac_word; then
4922       ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
4923       break
4924     fi
4925   done
4926   IFS="$ac_save_ifs"
4927   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
4928   ;;
4929 esac
4930 fi
4931 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
4932 if test -n "$SDL12_CONFIG"; then
4933   echo "$ac_t""$SDL12_CONFIG" 1>&6
4934 else
4935   echo "$ac_t""no" 1>&6
4936 fi
4937
4938   SDL_CONFIG=${SDL12_CONFIG}
4939   SDL_HEADER="SDL12/SDL.h"
4940   if test x${SDL_CONFIG} = xno
4941   then
4942     # Extract the first word of "sdl11-config", so it can be a program name with args.
4943 set dummy sdl11-config; ac_word=$2
4944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4945 echo "configure:4946: checking for $ac_word" >&5
4946 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
4947   echo $ac_n "(cached) $ac_c" 1>&6
4948 else
4949   case "$SDL11_CONFIG" in
4950   /*)
4951   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
4952   ;;
4953   ?:/*)                  
4954   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
4955   ;;
4956   *)
4957   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4958   ac_dummy="$SDL_PATH"
4959   for ac_dir in $ac_dummy; do 
4960     test -z "$ac_dir" && ac_dir=.
4961     if test -f $ac_dir/$ac_word; then
4962       ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
4963       break
4964     fi
4965   done
4966   IFS="$ac_save_ifs"
4967   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
4968   ;;
4969 esac
4970 fi
4971 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
4972 if test -n "$SDL11_CONFIG"; then
4973   echo "$ac_t""$SDL11_CONFIG" 1>&6
4974 else
4975   echo "$ac_t""no" 1>&6
4976 fi
4977
4978     SDL_CONFIG=${SDL11_CONFIG}
4979     SDL_HEADER="SDL11/SDL.h"
4980   fi
4981   if test x${SDL_CONFIG} = xno
4982   then
4983     # Extract the first word of "sdl-config", so it can be a program name with args.
4984 set dummy sdl-config; ac_word=$2
4985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4986 echo "configure:4987: checking for $ac_word" >&5
4987 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
4988   echo $ac_n "(cached) $ac_c" 1>&6
4989 else
4990   case "$SDL_CONFIG" in
4991   /*)
4992   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4993   ;;
4994   ?:/*)                  
4995   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
4996   ;;
4997   *)
4998   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4999   ac_dummy="$SDL_PATH"
5000   for ac_dir in $ac_dummy; do 
5001     test -z "$ac_dir" && ac_dir=.
5002     if test -f $ac_dir/$ac_word; then
5003       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
5004       break
5005     fi
5006   done
5007   IFS="$ac_save_ifs"
5008   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
5009   ;;
5010 esac
5011 fi
5012 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
5013 if test -n "$SDL_CONFIG"; then
5014   echo "$ac_t""$SDL_CONFIG" 1>&6
5015 else
5016   echo "$ac_t""no" 1>&6
5017 fi
5018
5019     SDL_HEADER="SDL/SDL.h"
5020   fi
5021   if test x${SDL_CONFIG} != xno
5022   then
5023     PLUGINS="${PLUGINS} sdl"
5024     CFLAGS_SDL="`${SDL_CONFIG} --cflags`"
5025     LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
5026     save_CPPFLAGS=$CPPFLAGS
5027     CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
5028     for ac_hdr in ${SDL_HEADER}
5029 do
5030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5032 echo "configure:5033: checking for $ac_hdr" >&5
5033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5034   echo $ac_n "(cached) $ac_c" 1>&6
5035 else
5036   cat > conftest.$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5039 #include <$ac_hdr>
5040 EOF
5041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5042 { (eval echo configure:5043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5044 if test -z "$ac_err"; then
5045   rm -rf conftest*
5046   eval "ac_cv_header_$ac_safe=yes"
5047 else
5048   echo "$ac_err" >&5
5049   echo "configure: failed program was:" >&5
5050   cat conftest.$ac_ext >&5
5051   rm -rf conftest*
5052   eval "ac_cv_header_$ac_safe=no"
5053 fi
5054 rm -f conftest*
5055 fi
5056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5057   echo "$ac_t""yes" 1>&6
5058     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5059   cat >> confdefs.h <<EOF
5060 #define $ac_tr_hdr 1
5061 EOF
5062  cat >> confdefs.h <<EOF
5063 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
5064 EOF
5065
5066 else
5067   echo "$ac_t""no" 1>&6
5068 { echo "configure: error: The development package for SDL is not installed. 
5069 Please install it and try again. Alternatively you can also configure with 
5070 --disable-sdl." 1>&2; exit 1; }
5071       
5072 fi
5073 done
5074
5075     CPPFLAGS=$save_CPPFLAGS
5076     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
5077     then
5078       { echo "configure: error: The development package for SDL is not installed.
5079 Please install it and try again. Alternatively you can also configure with
5080 --disable-sdl." 1>&2; exit 1; }
5081     fi
5082   elif test "x$enable_sdl" =  "xyes"
5083   then
5084     { echo "configure: error: I couldn't find the SDL package. You can download libSDL
5085 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
5086     " 1>&2; exit 1; }
5087   fi
5088 fi
5089
5090 # Check whether --with-directx or --without-directx was given.
5091 if test "${with_directx+set}" = set; then
5092   withval="$with_directx"
5093    if test "x$withval" != "xno"
5094     then
5095       PLUGINS="${PLUGINS} directx"
5096       if test "x$withval" != "xyes"
5097       then
5098         LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
5099         INCLUDE="${INCLUDE} -I"$withval"/include"
5100       else
5101         for ac_hdr in directx.h
5102 do
5103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5105 echo "configure:5106: checking for $ac_hdr" >&5
5106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5107   echo $ac_n "(cached) $ac_c" 1>&6
5108 else
5109   cat > conftest.$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5112 #include <$ac_hdr>
5113 EOF
5114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5115 { (eval echo configure:5116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5117 if test -z "$ac_err"; then
5118   rm -rf conftest*
5119   eval "ac_cv_header_$ac_safe=yes"
5120 else
5121   echo "$ac_err" >&5
5122   echo "configure: failed program was:" >&5
5123   cat conftest.$ac_ext >&5
5124   rm -rf conftest*
5125   eval "ac_cv_header_$ac_safe=no"
5126 fi
5127 rm -f conftest*
5128 fi
5129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5130   echo "$ac_t""yes" 1>&6
5131     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5132   cat >> confdefs.h <<EOF
5133 #define $ac_tr_hdr 1
5134 EOF
5135  
5136 else
5137   echo "$ac_t""no" 1>&6
5138 { echo "configure: error: Cannot find DirectX headers !" 1>&2; exit 1; }
5139         
5140 fi
5141 done
5142
5143         LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5144       fi
5145     fi 
5146 fi
5147
5148     if test "x$withval" = "x"
5149     then
5150       for ac_hdr in directx.h
5151 do
5152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5154 echo "configure:5155: checking for $ac_hdr" >&5
5155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5156   echo $ac_n "(cached) $ac_c" 1>&6
5157 else
5158   cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5161 #include <$ac_hdr>
5162 EOF
5163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5164 { (eval echo configure:5165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5166 if test -z "$ac_err"; then
5167   rm -rf conftest*
5168   eval "ac_cv_header_$ac_safe=yes"
5169 else
5170   echo "$ac_err" >&5
5171   echo "configure: failed program was:" >&5
5172   cat conftest.$ac_ext >&5
5173   rm -rf conftest*
5174   eval "ac_cv_header_$ac_safe=no"
5175 fi
5176 rm -f conftest*
5177 fi
5178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5179   echo "$ac_t""yes" 1>&6
5180     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5181   cat >> confdefs.h <<EOF
5182 #define $ac_tr_hdr 1
5183 EOF
5184  PLUGINS="${PLUGINS} directx"
5185        LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid"
5186 else
5187   echo "$ac_t""no" 1>&6
5188 fi
5189 done
5190
5191     fi
5192
5193 # Check whether --with-glide or --without-glide was given.
5194 if test "${with_glide+set}" = set; then
5195   withval="$with_glide"
5196    if test "x$withval" != "xno"
5197     then
5198       PLUGINS="${PLUGINS} glide"
5199       if test "x$withval" != "xyes"
5200       then
5201         LIB_GLIDE="-l"$withval" -lm"
5202       else
5203         LIB_GLIDE="-lglide2x -lm"
5204       fi
5205     fi 
5206 fi
5207
5208
5209 # Check whether --enable-ncurses or --disable-ncurses was given.
5210 if test "${enable_ncurses+set}" = set; then
5211   enableval="$enable_ncurses"
5212   if test x$enable_ncurses = xyes; then
5213      PLUGINS="${PLUGINS} ncurses"
5214      LIB_NCURSES="-lncurses"
5215    fi
5216 fi
5217
5218
5219 # Check whether --enable-qt or --disable-qt was given.
5220 if test "${enable_qt+set}" = set; then
5221   enableval="$enable_qt"
5222   if test x$enable_qt = xyes; then
5223      PLUGINS="${PLUGINS} qt"
5224      ALIASES="${ALIASES} qvlc"
5225      LIB_QT="-lqt -L${QTDIR}/lib"
5226      if test -x ${QTDIR}/bin/moc
5227      then
5228        MOC=${QTDIR}/bin/moc
5229      else
5230        MOC=moc
5231      fi
5232    fi
5233 fi
5234
5235
5236 # Check whether --enable-kde or --disable-kde was given.
5237 if test "${enable_kde+set}" = set; then
5238   enableval="$enable_kde"
5239   if test x$enable_kde = xyes; then
5240      PLUGINS="${PLUGINS} kde"
5241      ALIASES="${ALIASES} kvlc"
5242      LIB_KDE="-L${KDEDIR}/lib -lkfile"
5243      if test -x ${QTDIR}/bin/moc
5244      then
5245        MOC=${QTDIR}/bin/moc
5246      else
5247        MOC=moc
5248      fi
5249    fi
5250 fi
5251
5252
5253 # Check whether --enable-gnome or --disable-gnome was given.
5254 if test "${enable_gnome+set}" = set; then
5255   enableval="$enable_gnome"
5256   if test x$enable_gnome = xyes; then
5257     # look for gnome-config
5258     # Extract the first word of "gnome-config", so it can be a program name with args.
5259 set dummy gnome-config; ac_word=$2
5260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5261 echo "configure:5262: checking for $ac_word" >&5
5262 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
5263   echo $ac_n "(cached) $ac_c" 1>&6
5264 else
5265   case "$GNOME_CONFIG" in
5266   /*)
5267   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
5268   ;;
5269   ?:/*)                  
5270   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
5271   ;;
5272   *)
5273   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5274   ac_dummy="$PATH"
5275   for ac_dir in $ac_dummy; do 
5276     test -z "$ac_dir" && ac_dir=.
5277     if test -f $ac_dir/$ac_word; then
5278       ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
5279       break
5280     fi
5281   done
5282   IFS="$ac_save_ifs"
5283   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
5284   ;;
5285 esac
5286 fi
5287 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
5288 if test -n "$GNOME_CONFIG"; then
5289   echo "$ac_t""$GNOME_CONFIG" 1>&6
5290 else
5291   echo "$ac_t""no" 1>&6
5292 fi
5293
5294     if test -x ${GNOME_CONFIG}
5295     then
5296        CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gnomeui`"
5297        LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
5298     fi
5299     # now look for the gnome.h header
5300     saved_CPPFLAGS=$CPPFLAGS
5301     CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
5302     for ac_hdr in gnome.h
5303 do
5304 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5306 echo "configure:5307: checking for $ac_hdr" >&5
5307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5308   echo $ac_n "(cached) $ac_c" 1>&6
5309 else
5310   cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5313 #include <$ac_hdr>
5314 EOF
5315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5316 { (eval echo configure:5317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5318 if test -z "$ac_err"; then
5319   rm -rf conftest*
5320   eval "ac_cv_header_$ac_safe=yes"
5321 else
5322   echo "$ac_err" >&5
5323   echo "configure: failed program was:" >&5
5324   cat conftest.$ac_ext >&5
5325   rm -rf conftest*
5326   eval "ac_cv_header_$ac_safe=no"
5327 fi
5328 rm -f conftest*
5329 fi
5330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5331   echo "$ac_t""yes" 1>&6
5332     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5333   cat >> confdefs.h <<EOF
5334 #define $ac_tr_hdr 1
5335 EOF
5336  
5337       PLUGINS="${PLUGINS} gnome"
5338       ALIASES="${ALIASES} gnome-vlc"
5339      
5340 else
5341   echo "$ac_t""no" 1>&6
5342 { echo "configure: error: Can't find gnome headers. Please install the gnome
5343 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
5344      
5345 fi
5346 done
5347
5348   
5349     CPPFLAGS=$saved_CPPFLAGS
5350   fi
5351 fi
5352
5353
5354 # Check whether --enable-gtk or --disable-gtk was given.
5355 if test "${enable_gtk+set}" = set; then
5356   enableval="$enable_gtk"
5357   :
5358 fi
5359
5360 if test x$enable_gtk != xno
5361 then
5362   # look for gtk-config
5363   # Extract the first word of "gtk-config", so it can be a program name with args.
5364 set dummy gtk-config; ac_word=$2
5365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5366 echo "configure:5367: checking for $ac_word" >&5
5367 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5368   echo $ac_n "(cached) $ac_c" 1>&6
5369 else
5370   case "$GTK_CONFIG" in
5371   /*)
5372   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5373   ;;
5374   ?:/*)                  
5375   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
5376   ;;
5377   *)
5378   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5379   ac_dummy="$PATH"
5380   for ac_dir in $ac_dummy; do 
5381     test -z "$ac_dir" && ac_dir=.
5382     if test -f $ac_dir/$ac_word; then
5383       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5384       break
5385     fi
5386   done
5387   IFS="$ac_save_ifs"
5388   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5389   ;;
5390 esac
5391 fi
5392 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5393 if test -n "$GTK_CONFIG"; then
5394   echo "$ac_t""$GTK_CONFIG" 1>&6
5395 else
5396   echo "$ac_t""no" 1>&6
5397 fi
5398
5399   if test -x ${GTK_CONFIG}
5400   then
5401     CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
5402     LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
5403   fi
5404   # now look for the gtk.h header
5405   saved_CPPFLAGS=$CPPFLAGS
5406   CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
5407   for ac_hdr in gtk/gtk.h
5408 do
5409 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5410 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5411 echo "configure:5412: checking for $ac_hdr" >&5
5412 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5413   echo $ac_n "(cached) $ac_c" 1>&6
5414 else
5415   cat > conftest.$ac_ext <<EOF
5416 #line 5417 "configure"
5417 #include "confdefs.h"
5418 #include <$ac_hdr>
5419 EOF
5420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5421 { (eval echo configure:5422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5423 if test -z "$ac_err"; then
5424   rm -rf conftest*
5425   eval "ac_cv_header_$ac_safe=yes"
5426 else
5427   echo "$ac_err" >&5
5428   echo "configure: failed program was:" >&5
5429   cat conftest.$ac_ext >&5
5430   rm -rf conftest*
5431   eval "ac_cv_header_$ac_safe=no"
5432 fi
5433 rm -f conftest*
5434 fi
5435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5436   echo "$ac_t""yes" 1>&6
5437     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5438   cat >> confdefs.h <<EOF
5439 #define $ac_tr_hdr 1
5440 EOF
5441  
5442     PLUGINS="${PLUGINS} gtk"
5443     ALIASES="${ALIASES} gvlc"
5444   
5445 else
5446   echo "$ac_t""no" 1>&6
5447 fi
5448 done
5449
5450   CPPFLAGS=$saved_CPPFLAGS
5451 fi
5452
5453 # Check whether --enable-x11 or --disable-x11 was given.
5454 if test "${enable_x11+set}" = set; then
5455   enableval="$enable_x11"
5456   :
5457 fi
5458
5459 if test x$enable_x11 != xno; then
5460   if test x$x_includes = xNONE; then
5461     x_includes=/usr/X11R6/include
5462   fi
5463   if test x$x_libraries = xNONE; then
5464     x_libraries=/usr/X11R6/lib
5465   fi
5466   saved_CPPFLAGS=$CPPFLAGS
5467   CPPFLAGS="$CPPFLAGS -I$x_includes"
5468   for ac_hdr in X11/Xlib.h
5469 do
5470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5472 echo "configure:5473: checking for $ac_hdr" >&5
5473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5474   echo $ac_n "(cached) $ac_c" 1>&6
5475 else
5476   cat > conftest.$ac_ext <<EOF
5477 #line 5478 "configure"
5478 #include "confdefs.h"
5479 #include <$ac_hdr>
5480 EOF
5481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5482 { (eval echo configure:5483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5484 if test -z "$ac_err"; then
5485   rm -rf conftest*
5486   eval "ac_cv_header_$ac_safe=yes"
5487 else
5488   echo "$ac_err" >&5
5489   echo "configure: failed program was:" >&5
5490   cat conftest.$ac_ext >&5
5491   rm -rf conftest*
5492   eval "ac_cv_header_$ac_safe=no"
5493 fi
5494 rm -f conftest*
5495 fi
5496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5497   echo "$ac_t""yes" 1>&6
5498     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5499   cat >> confdefs.h <<EOF
5500 #define $ac_tr_hdr 1
5501 EOF
5502  
5503     PLUGINS="${PLUGINS} x11"
5504     LIB_X11="-L$x_libraries -lX11 -lXext"
5505     CFLAGS_X11="-I$x_includes"
5506   
5507   CPPFLAGS=$saved_CPPFLAGS
5508 else
5509   echo "$ac_t""no" 1>&6
5510 fi
5511 done
5512
5513 fi
5514
5515 # Check whether --enable-xvideo or --disable-xvideo was given.
5516 if test "${enable_xvideo+set}" = set; then
5517   enableval="$enable_xvideo"
5518   :
5519 fi
5520
5521 if test x$enable_xvideo != xno; then
5522   if test x$x_includes = xNONE; then
5523     x_includes=/usr/X11R6/include
5524   fi
5525   if test x$x_libraries = xNONE; then
5526     x_libraries=/usr/X11R6/lib
5527   fi
5528   saved_CPPFLAGS=$CPPFLAGS
5529   CPPFLAGS="$CPPFLAGS -I$x_includes"
5530   for ac_hdr in X11/extensions/Xv.h
5531 do
5532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5534 echo "configure:5535: checking for $ac_hdr" >&5
5535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5536   echo $ac_n "(cached) $ac_c" 1>&6
5537 else
5538   cat > conftest.$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5541 #include <$ac_hdr>
5542 EOF
5543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5544 { (eval echo configure:5545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5546 if test -z "$ac_err"; then
5547   rm -rf conftest*
5548   eval "ac_cv_header_$ac_safe=yes"
5549 else
5550   echo "$ac_err" >&5
5551   echo "configure: failed program was:" >&5
5552   cat conftest.$ac_ext >&5
5553   rm -rf conftest*
5554   eval "ac_cv_header_$ac_safe=no"
5555 fi
5556 rm -f conftest*
5557 fi
5558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5559   echo "$ac_t""yes" 1>&6
5560     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5561   cat >> confdefs.h <<EOF
5562 #define $ac_tr_hdr 1
5563 EOF
5564  
5565     BUILTINS="${BUILTINS} xvideo"
5566     LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
5567     CFLAGS_X11="-I$x_includes"
5568   
5569   CPPFLAGS=$saved_CPPFLAGS
5570 else
5571   echo "$ac_t""no" 1>&6
5572 fi
5573 done
5574
5575 fi
5576
5577 # Check whether --enable-alsa or --disable-alsa was given.
5578 if test "${enable_alsa+set}" = set; then
5579   enableval="$enable_alsa"
5580   if test x$enable_alsa = xyes
5581    then
5582      ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
5583 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
5584 echo "configure:5585: checking for sys/asoundlib.h" >&5
5585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5586   echo $ac_n "(cached) $ac_c" 1>&6
5587 else
5588   cat > conftest.$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5591 #include <sys/asoundlib.h>
5592 EOF
5593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5594 { (eval echo configure:5595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5596 if test -z "$ac_err"; then
5597   rm -rf conftest*
5598   eval "ac_cv_header_$ac_safe=yes"
5599 else
5600   echo "$ac_err" >&5
5601   echo "configure: failed program was:" >&5
5602   cat conftest.$ac_ext >&5
5603   rm -rf conftest*
5604   eval "ac_cv_header_$ac_safe=no"
5605 fi
5606 rm -f conftest*
5607 fi
5608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5609   echo "$ac_t""yes" 1>&6
5610   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
5611 echo "configure:5612: checking for main in -lasound" >&5
5612 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
5613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5614   echo $ac_n "(cached) $ac_c" 1>&6
5615 else
5616   ac_save_LIBS="$LIBS"
5617 LIBS="-lasound  $LIBS"
5618 cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5621
5622 int main() {
5623 main()
5624 ; return 0; }
5625 EOF
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5627   rm -rf conftest*
5628   eval "ac_cv_lib_$ac_lib_var=yes"
5629 else
5630   echo "configure: failed program was:" >&5
5631   cat conftest.$ac_ext >&5
5632   rm -rf conftest*
5633   eval "ac_cv_lib_$ac_lib_var=no"
5634 fi
5635 rm -f conftest*
5636 LIBS="$ac_save_LIBS"
5637
5638 fi
5639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5640   echo "$ac_t""yes" 1>&6
5641   have_alsa="true"
5642 else
5643   echo "$ac_t""no" 1>&6
5644 have_alsa="false"
5645 fi
5646
5647 else
5648   echo "$ac_t""no" 1>&6
5649 have_alsa="false"
5650 fi
5651
5652      if test x$have_alsa = xtrue
5653      then
5654        PLUGINS="${PLUGINS} alsa"
5655        LIB_ALSA="-lasound"
5656      fi
5657    fi
5658 fi
5659
5660
5661 fi
5662
5663 # Check whether --enable-plugins or --disable-plugins was given.
5664 if test "${enable_plugins+set}" = set; then
5665   enableval="$enable_plugins"
5666   if test x$enable_plugins = xno
5667    then
5668      BUILTINS="${BUILTINS} ${PLUGINS}"
5669      PLUGINS=
5670    fi
5671 fi
5672
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 trap '' 1 2 15
5736 cat > confcache <<\EOF
5737 # This file is a shell script that caches the results of configure
5738 # tests run on this system so they can be shared between configure
5739 # scripts and configure runs.  It is not useful on other systems.
5740 # If it contains results you don't want to keep, you may remove or edit it.
5741 #
5742 # By default, configure uses ./config.cache as the cache file,
5743 # creating it if it does not exist already.  You can give configure
5744 # the --cache-file=FILE option to use a different cache file; that is
5745 # what configure does when it calls configure scripts in
5746 # subdirectories, so they share the cache.
5747 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5748 # config.status only pays attention to the cache file if you give it the
5749 # --recheck option to rerun configure.
5750 #
5751 EOF
5752 # The following way of writing the cache mishandles newlines in values,
5753 # but we know of no workaround that is simple, portable, and efficient.
5754 # So, don't put newlines in cache variables' values.
5755 # Ultrix sh set writes to stderr and can't be redirected directly,
5756 # and sets the high bit in the cache file unless we assign to the vars.
5757 (set) 2>&1 |
5758   case `(ac_space=' '; set | grep ac_space) 2>&1` in
5759   *ac_space=\ *)
5760     # `set' does not quote correctly, so add quotes (double-quote substitution
5761     # turns \\\\ into \\, and sed turns \\ into \).
5762     sed -n \
5763       -e "s/'/'\\\\''/g" \
5764       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5765     ;;
5766   *)
5767     # `set' quotes correctly as required by POSIX, so do not add quotes.
5768     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5769     ;;
5770   esac >> confcache
5771 if cmp -s $cache_file confcache; then
5772   :
5773 else
5774   if test -w $cache_file; then
5775     echo "updating cache $cache_file"
5776     cat confcache > $cache_file
5777   else
5778     echo "not updating unwritable cache $cache_file"
5779   fi
5780 fi
5781 rm -f confcache
5782
5783 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5784
5785 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5786 # Let make expand exec_prefix.
5787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5788
5789 # Any assignment to VPATH causes Sun make to only execute
5790 # the first set of double-colon rules, so remove it if not needed.
5791 # If there is a colon in the path, we need to keep it.
5792 if test "x$srcdir" = x.; then
5793   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
5794 fi
5795
5796 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5797
5798 DEFS=-DHAVE_CONFIG_H
5799
5800 # Without the "./", some shells look in PATH for config.status.
5801 : ${CONFIG_STATUS=./config.status}
5802
5803 echo creating $CONFIG_STATUS
5804 rm -f $CONFIG_STATUS
5805 cat > $CONFIG_STATUS <<EOF
5806 #! /bin/sh
5807 # Generated automatically by configure.
5808 # Run this file to recreate the current configuration.
5809 # This directory was configured as follows,
5810 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5811 #
5812 # $0 $ac_configure_args
5813 #
5814 # Compiler output produced by configure, useful for debugging
5815 # configure, is in ./config.log if it exists.
5816
5817 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5818 for ac_option
5819 do
5820   case "\$ac_option" in
5821   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5822     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5823     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5824   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5825     echo "$CONFIG_STATUS generated by autoconf version 2.13"
5826     exit 0 ;;
5827   -help | --help | --hel | --he | --h)
5828     echo "\$ac_cs_usage"; exit 0 ;;
5829   *) echo "\$ac_cs_usage"; exit 1 ;;
5830   esac
5831 done
5832
5833 ac_given_srcdir=$srcdir
5834 ac_given_INSTALL="$INSTALL"
5835
5836 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5837 EOF
5838 cat >> $CONFIG_STATUS <<EOF
5839
5840 # Protect against being on the right side of a sed subst in config.status.
5841 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5842  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5843 $ac_vpsub
5844 $extrasub
5845 s%@SHELL@%$SHELL%g
5846 s%@CFLAGS@%$CFLAGS%g
5847 s%@CPPFLAGS@%$CPPFLAGS%g
5848 s%@CXXFLAGS@%$CXXFLAGS%g
5849 s%@FFLAGS@%$FFLAGS%g
5850 s%@DEFS@%$DEFS%g
5851 s%@LDFLAGS@%$LDFLAGS%g
5852 s%@LIBS@%$LIBS%g
5853 s%@exec_prefix@%$exec_prefix%g
5854 s%@prefix@%$prefix%g
5855 s%@program_transform_name@%$program_transform_name%g
5856 s%@bindir@%$bindir%g
5857 s%@sbindir@%$sbindir%g
5858 s%@libexecdir@%$libexecdir%g
5859 s%@datadir@%$datadir%g
5860 s%@sysconfdir@%$sysconfdir%g
5861 s%@sharedstatedir@%$sharedstatedir%g
5862 s%@localstatedir@%$localstatedir%g
5863 s%@libdir@%$libdir%g
5864 s%@includedir@%$includedir%g
5865 s%@oldincludedir@%$oldincludedir%g
5866 s%@infodir@%$infodir%g
5867 s%@mandir@%$mandir%g
5868 s%@host@%$host%g
5869 s%@host_alias@%$host_alias%g
5870 s%@host_cpu@%$host_cpu%g
5871 s%@host_vendor@%$host_vendor%g
5872 s%@host_os@%$host_os%g
5873 s%@target@%$target%g
5874 s%@target_alias@%$target_alias%g
5875 s%@target_cpu@%$target_cpu%g
5876 s%@target_vendor@%$target_vendor%g
5877 s%@target_os@%$target_os%g
5878 s%@build@%$build%g
5879 s%@build_alias@%$build_alias%g
5880 s%@build_cpu@%$build_cpu%g
5881 s%@build_vendor@%$build_vendor%g
5882 s%@build_os@%$build_os%g
5883 s%@VLC_VERSION@%$VLC_VERSION%g
5884 s%@VLC_CODENAME@%$VLC_CODENAME%g
5885 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
5886 s%@SET_MAKE@%$SET_MAKE%g
5887 s%@CC@%$CC%g
5888 s%@CPP@%$CPP%g
5889 s%@RANLIB@%$RANLIB%g
5890 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5891 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5892 s%@INSTALL_DATA@%$INSTALL_DATA%g
5893 s%@ESD_CONFIG@%$ESD_CONFIG%g
5894 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
5895 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
5896 s%@SDL_CONFIG@%$SDL_CONFIG%g
5897 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
5898 s%@GTK_CONFIG@%$GTK_CONFIG%g
5899 s%@SYS@%$SYS%g
5900 s%@ARCH@%$ARCH%g
5901 s%@PLUGINS@%$PLUGINS%g
5902 s%@BUILTINS@%$BUILTINS%g
5903 s%@ALIASES@%$ALIASES%g
5904 s%@DEFINE@%$DEFINE%g
5905 s%@INCLUDE@%$INCLUDE%g
5906 s%@DEBUG@%$DEBUG%g
5907 s%@ASM@%$ASM%g
5908 s%@TRACE@%$TRACE%g
5909 s%@CPROF@%$CPROF%g
5910 s%@GPROF@%$GPROF%g
5911 s%@OPTIMS@%$OPTIMS%g
5912 s%@TUNING@%$TUNING%g
5913 s%@NEED_GETOPT@%$NEED_GETOPT%g
5914 s%@MOC@%$MOC%g
5915 s%@WINDRES@%$WINDRES%g
5916 s%@LCFLAGS@%$LCFLAGS%g
5917 s%@PLCFLAGS@%$PLCFLAGS%g
5918 s%@SOFLAGS@%$SOFLAGS%g
5919 s%@LIB@%$LIB%g
5920 s%@LIB_ALSA@%$LIB_ALSA%g
5921 s%@LIB_ALTIVEC@%$LIB_ALTIVEC%g
5922 s%@LIB_BEOS@%$LIB_BEOS%g
5923 s%@LIB_DARWIN@%$LIB_DARWIN%g
5924 s%@LIB_DVD@%$LIB_DVD%g
5925 s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g
5926 s%@LIB_ESD@%$LIB_ESD%g
5927 s%@LIB_GGI@%$LIB_GGI%g
5928 s%@LIB_GLIDE@%$LIB_GLIDE%g
5929 s%@LIB_GNOME@%$LIB_GNOME%g
5930 s%@LIB_GTK@%$LIB_GTK%g
5931 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
5932 s%@LIB_KDE@%$LIB_KDE%g
5933 s%@LIB_MACOSX@%$LIB_MACOSX%g
5934 s%@LIB_QNX@%$LIB_QNX%g
5935 s%@LIB_NCURSES@%$LIB_NCURSES%g
5936 s%@LIB_QT@%$LIB_QT%g
5937 s%@LIB_TS@%$LIB_TS%g
5938 s%@LIB_SDL@%$LIB_SDL%g
5939 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
5940 s%@LIB_X11@%$LIB_X11%g
5941 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
5942 s%@LIB_YUV@%$LIB_YUV%g
5943 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
5944 s%@CFLAGS_ALTIVEC@%$CFLAGS_ALTIVEC%g
5945 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
5946 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
5947 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
5948 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
5949 s%@CFLAGS_X11@%$CFLAGS_X11%g
5950 s%@OBJ_DVD@%$OBJ_DVD%g
5951 s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g
5952 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
5953
5954 CEOF
5955 EOF
5956
5957 cat >> $CONFIG_STATUS <<\EOF
5958
5959 # Split the substitutions into bite-sized pieces for seds with
5960 # small command number limits, like on Digital OSF/1 and HP-UX.
5961 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5962 ac_file=1 # Number of current file.
5963 ac_beg=1 # First line for current file.
5964 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5965 ac_more_lines=:
5966 ac_sed_cmds=""
5967 while $ac_more_lines; do
5968   if test $ac_beg -gt 1; then
5969     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5970   else
5971     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5972   fi
5973   if test ! -s conftest.s$ac_file; then
5974     ac_more_lines=false
5975     rm -f conftest.s$ac_file
5976   else
5977     if test -z "$ac_sed_cmds"; then
5978       ac_sed_cmds="sed -f conftest.s$ac_file"
5979     else
5980       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5981     fi
5982     ac_file=`expr $ac_file + 1`
5983     ac_beg=$ac_end
5984     ac_end=`expr $ac_end + $ac_max_sed_cmds`
5985   fi
5986 done
5987 if test -z "$ac_sed_cmds"; then
5988   ac_sed_cmds=cat
5989 fi
5990 EOF
5991
5992 cat >> $CONFIG_STATUS <<EOF
5993
5994 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
5995 EOF
5996 cat >> $CONFIG_STATUS <<\EOF
5997 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5998   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5999   case "$ac_file" in
6000   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6001        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6002   *) ac_file_in="${ac_file}.in" ;;
6003   esac
6004
6005   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6006
6007   # Remove last slash and all that follows it.  Not all systems have dirname.
6008   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6009   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6010     # The file is in a subdirectory.
6011     test ! -d "$ac_dir" && mkdir "$ac_dir"
6012     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6013     # A "../" for each directory in $ac_dir_suffix.
6014     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6015   else
6016     ac_dir_suffix= ac_dots=
6017   fi
6018
6019   case "$ac_given_srcdir" in
6020   .)  srcdir=.
6021       if test -z "$ac_dots"; then top_srcdir=.
6022       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6023   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6024   *) # Relative path.
6025     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6026     top_srcdir="$ac_dots$ac_given_srcdir" ;;
6027   esac
6028
6029   case "$ac_given_INSTALL" in
6030   [/$]*) INSTALL="$ac_given_INSTALL" ;;
6031   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6032   esac
6033
6034   echo creating "$ac_file"
6035   rm -f "$ac_file"
6036   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6037   case "$ac_file" in
6038   *Makefile*) ac_comsub="1i\\
6039 # $configure_input" ;;
6040   *) ac_comsub= ;;
6041   esac
6042
6043   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6044   sed -e "$ac_comsub
6045 s%@configure_input@%$configure_input%g
6046 s%@srcdir@%$srcdir%g
6047 s%@top_srcdir@%$top_srcdir%g
6048 s%@INSTALL@%$INSTALL%g
6049 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6050 fi; done
6051 rm -f conftest.s*
6052
6053 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6054 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6055 #
6056 # ac_d sets the value in "#define NAME VALUE" lines.
6057 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6058 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
6059 ac_dC='\3'
6060 ac_dD='%g'
6061 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6062 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6063 ac_uB='\([      ]\)%\1#\2define\3'
6064 ac_uC=' '
6065 ac_uD='\4%g'
6066 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6067 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6068 ac_eB='$%\1#\2define\3'
6069 ac_eC=' '
6070 ac_eD='%g'
6071
6072 if test "${CONFIG_HEADERS+set}" != set; then
6073 EOF
6074 cat >> $CONFIG_STATUS <<EOF
6075   CONFIG_HEADERS="include/defs.h"
6076 EOF
6077 cat >> $CONFIG_STATUS <<\EOF
6078 fi
6079 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6080   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6081   case "$ac_file" in
6082   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6083        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6084   *) ac_file_in="${ac_file}.in" ;;
6085   esac
6086
6087   echo creating $ac_file
6088
6089   rm -f conftest.frag conftest.in conftest.out
6090   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6091   cat $ac_file_inputs > conftest.in
6092
6093 EOF
6094
6095 # Transform confdefs.h into a sed script conftest.vals that substitutes
6096 # the proper values into config.h.in to produce config.h.  And first:
6097 # Protect against being on the right side of a sed subst in config.status.
6098 # Protect against being in an unquoted here document in config.status.
6099 rm -f conftest.vals
6100 cat > conftest.hdr <<\EOF
6101 s/[\\&%]/\\&/g
6102 s%[\\$`]%\\&%g
6103 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6104 s%ac_d%ac_u%gp
6105 s%ac_u%ac_e%gp
6106 EOF
6107 sed -n -f conftest.hdr confdefs.h > conftest.vals
6108 rm -f conftest.hdr
6109
6110 # This sed command replaces #undef with comments.  This is necessary, for
6111 # example, in the case of _POSIX_SOURCE, which is predefined and required
6112 # on some systems where configure will not decide to define it.
6113 cat >> conftest.vals <<\EOF
6114 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6115 EOF
6116
6117 # Break up conftest.vals because some shells have a limit on
6118 # the size of here documents, and old seds have small limits too.
6119
6120 rm -f conftest.tail
6121 while :
6122 do
6123   ac_lines=`grep -c . conftest.vals`
6124   # grep -c gives empty output for an empty file on some AIX systems.
6125   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6126   # Write a limited-size here document to conftest.frag.
6127   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6128   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6129   echo 'CEOF
6130   sed -f conftest.frag conftest.in > conftest.out
6131   rm -f conftest.in
6132   mv conftest.out conftest.in
6133 ' >> $CONFIG_STATUS
6134   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6135   rm -f conftest.vals
6136   mv conftest.tail conftest.vals
6137 done
6138 rm -f conftest.vals
6139
6140 cat >> $CONFIG_STATUS <<\EOF
6141   rm -f conftest.frag conftest.h
6142   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
6143   cat conftest.in >> conftest.h
6144   rm -f conftest.in
6145   if cmp -s $ac_file conftest.h 2>/dev/null; then
6146     echo "$ac_file is unchanged"
6147     rm -f conftest.h
6148   else
6149     # Remove last slash and all that follows it.  Not all systems have dirname.
6150       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6151       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6152       # The file is in a subdirectory.
6153       test ! -d "$ac_dir" && mkdir "$ac_dir"
6154     fi
6155     rm -f $ac_file
6156     mv conftest.h $ac_file
6157   fi
6158 fi; done
6159
6160 EOF
6161 cat >> $CONFIG_STATUS <<EOF
6162
6163 EOF
6164 cat >> $CONFIG_STATUS <<\EOF
6165
6166 exit 0
6167 EOF
6168 chmod +x $CONFIG_STATUS
6169 rm -fr confdefs* $ac_clean_files
6170 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6171
6172
6173 echo "
6174 global configuration
6175 --------------------
6176 system                : ${SYS}
6177 architecture          : ${ARCH}
6178 optimizations         : ${OPTIMS}
6179 tuning:               : ${TUNING}"
6180
6181 if test x${HAVE_VLC} = x1
6182 then
6183   echo "
6184 vlc configuration
6185 -----------------
6186 vlc version           : ${VLC_VERSION}
6187 debug mode            : ${DEBUG}
6188 trace mode            : ${TRACE}
6189 cprof/gprof support   : ${CPROF}/${GPROF}
6190 need builtin getopt   : ${NEED_GETOPT}
6191 built-in modules      :${BUILTINS}
6192 plug-in modules       :${PLUGINS}
6193 vlc aliases           :${ALIASES}"
6194 fi
6195
6196 echo "
6197 libdvdcss configuration
6198 -----------------------
6199 can be built          : ${CAN_BUILD_LIBDVDCSS}
6200 will be built         : ${NEED_LIBDVDCSS}"
6201 if test x${NEED_LIBDVDCSS} = x1
6202 then
6203   echo "need BSDI libdvd      : ${NEED_BSDI_LIBDVD}"
6204   echo "link statically       : ${STATIC_LIBDVDCSS}"
6205 else
6206   echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
6207 fi
6208
6209 echo "
6210 You may now tune Makefile.opts at your convenience, for instance to choose
6211 which modules get compiled as plugins.
6212 "
6213 if test x${HAVE_VLC} = x1
6214 then
6215   echo "To build vlc and its plugins, type \`make vlc'."
6216 fi
6217 if test x${HAVE_LIBDVDCSS} = x1
6218 then
6219   echo "To build libdvdcss only, type \`make libdvdcss'."
6220 fi
6221 echo ""
6222